aboutsummaryrefslogtreecommitdiff
path: root/layers/core_validation.cpp
diff options
context:
space:
mode:
authorChris Forbes <chrisforbes@google.com>2016-05-13 13:35:20 +1200
committerChris Forbes <chrisforbes@google.com>2016-05-16 09:54:39 +1200
commit15546e0b6b9732520c18789a520245c0e3524a18 (patch)
tree94944e445b3f9067a9a8a6eed59c12271749bc1e /layers/core_validation.cpp
parent14f1e5611b4df40f783263edf99de13104a41ab4 (diff)
downloadusermoji-15546e0b6b9732520c18789a520245c0e3524a18.tar.xz
layers: Add PIPELINE_LAYOUT_NODE * to PIPELINE_NODE
Signed-off-by: Chris Forbes <chrisforbes@google.com>
Diffstat (limited to 'layers/core_validation.cpp')
-rw-r--r--layers/core_validation.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp
index 557727a2..85dc0e31 100644
--- a/layers/core_validation.cpp
+++ b/layers/core_validation.cpp
@@ -5703,6 +5703,11 @@ CreateGraphicsPipelines(VkDevice device, VkPipelineCache pipelineCache, uint32_t
pPipeNode[i]->renderPass = renderpass_it->second;
}
+ auto pipeline_layout_it = dev_data->pipelineLayoutMap.find(pCreateInfos[i].layout);
+ if (pipeline_layout_it != dev_data->pipelineLayoutMap.end()) {
+ pPipeNode[i]->pipelineLayout = &pipeline_layout_it->second;
+ }
+
skipCall |= verifyPipelineCreateState(dev_data, device, pPipeNode, i);
}
@@ -5745,6 +5750,11 @@ CreateComputePipelines(VkDevice device, VkPipelineCache pipelineCache, uint32_t
// Create and initialize internal tracking data structure
pPipeNode[i] = new PIPELINE_NODE;
pPipeNode[i]->initComputePipeline(&pCreateInfos[i]);
+
+ auto pipeline_layout_it = dev_data->pipelineLayoutMap.find(pCreateInfos[i].layout);
+ if (pipeline_layout_it != dev_data->pipelineLayoutMap.end()) {
+ pPipeNode[i]->pipelineLayout = &pipeline_layout_it->second;
+ }
// memcpy(&pPipeNode[i]->computePipelineCI, (const void *)&pCreateInfos[i], sizeof(VkComputePipelineCreateInfo));
// TODO: Add Compute Pipeline Verification