diff options
| author | Petr Kraus <petr_kraus@email.cz> | 2017-09-10 02:26:33 +0200 |
|---|---|---|
| committer | Mark Lobodzinski <mark@lunarg.com> | 2017-09-12 08:35:17 -0600 |
| commit | 9efb8af92de180ea85ee8062ddcd4aee00dbd2c0 (patch) | |
| tree | e5da3e56f172b56d0c4b2fdd927dcd1c7e15ac40 /layers/core_validation.cpp | |
| parent | dcf124b1ec4b84e57e0fa408bd99a6b2a2de5aa3 (diff) | |
| download | usermoji-9efb8af92de180ea85ee8062ddcd4aee00dbd2c0.tar.xz | |
layers: Fix Graphics Pipeline pointers not ignored
Some VkGraphicsPipelineCreateInfo pointers must be ignored under some
conditions, but were not in the layers.
Add relevant tests.
Fix tests found broken (using depth or color without attachment in
subpass)
Change-Id: I3e2a3f61a52c72ce3a11483ff8b031189f4c61c9
Diffstat (limited to 'layers/core_validation.cpp')
| -rw-r--r-- | layers/core_validation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 78e72aaf..b210f8f9 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -4514,8 +4514,8 @@ VKAPI_ATTR VkResult VKAPI_CALL CreateGraphicsPipelines(VkDevice device, VkPipeli for (i = 0; i < count; i++) { pipe_state.push_back(std::unique_ptr<PIPELINE_STATE>(new PIPELINE_STATE)); - pipe_state[i]->initGraphicsPipeline(&pCreateInfos[i]); pipe_state[i]->render_pass_ci.initialize(GetRenderPassState(dev_data, pCreateInfos[i].renderPass)->createInfo.ptr()); + pipe_state[i]->initGraphicsPipeline(&pCreateInfos[i]); pipe_state[i]->pipeline_layout = *getPipelineLayout(dev_data, pCreateInfos[i].layout); } |
