aboutsummaryrefslogtreecommitdiff
path: root/layers/core_validation.cpp
diff options
context:
space:
mode:
authorChris Forbes <chrisforbes@google.com>2017-06-21 13:21:13 -0700
committerChris Forbes <chrisf@ijw.co.nz>2017-06-21 17:49:25 -0700
commit3b412cad8970cb2933f294d9a1648274938c04de (patch)
treea7dfb0516d86d1a02146a7a9509653aa2409f1b6 /layers/core_validation.cpp
parent30da5f4cdb53e88e8ea4e9a05728fb5d4a0a8299 (diff)
downloadusermoji-3b412cad8970cb2933f294d9a1648274938c04de.tar.xz
layers: Inline pre-validate into CreateGraphicsPipelines
All this did was loop over the pipelines and call a function.
Diffstat (limited to 'layers/core_validation.cpp')
-rw-r--r--layers/core_validation.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp
index f55c3c3b..a20db67e 100644
--- a/layers/core_validation.cpp
+++ b/layers/core_validation.cpp
@@ -4405,15 +4405,6 @@ bool validate_dual_src_blend_feature(layer_data *device_data, PIPELINE_STATE *pi
return skip;
}
-static bool PreCallCreateGraphicsPipelines(layer_data *device_data, uint32_t count,
- const VkGraphicsPipelineCreateInfo *create_infos, vector<PIPELINE_STATE *> const &pipe_state) {
- bool skip = false;
- for (uint32_t i = 0; i < count; i++) {
- skip |= verifyPipelineCreateState(device_data, pipe_state, i);
- }
- return skip;
-}
-
VKAPI_ATTR VkResult VKAPI_CALL CreateGraphicsPipelines(VkDevice device, VkPipelineCache pipelineCache, uint32_t count,
const VkGraphicsPipelineCreateInfo *pCreateInfos,
const VkAllocationCallbacks *pAllocator, VkPipeline *pPipelines) {
@@ -4436,7 +4427,10 @@ VKAPI_ATTR VkResult VKAPI_CALL CreateGraphicsPipelines(VkDevice device, VkPipeli
pipe_state[i]->render_pass_ci.initialize(GetRenderPassState(dev_data, pCreateInfos[i].renderPass)->createInfo.ptr());
pipe_state[i]->pipeline_layout = *getPipelineLayout(dev_data, pCreateInfos[i].layout);
}
- skip |= PreCallCreateGraphicsPipelines(dev_data, count, pCreateInfos, pipe_state);
+
+ for (i = 0; i < count; i++) {
+ skip |= verifyPipelineCreateState(dev_data, pipe_state, i);
+ }
lock.unlock();