aboutsummaryrefslogtreecommitdiff
path: root/layers/shader_checker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'layers/shader_checker.cpp')
-rw-r--r--layers/shader_checker.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/layers/shader_checker.cpp b/layers/shader_checker.cpp
index 94b39845..a8bfaed0 100644
--- a/layers/shader_checker.cpp
+++ b/layers/shader_checker.cpp
@@ -887,9 +887,8 @@ shader_stage_attribs[VK_SHADER_STAGE_FRAGMENT + 1] = {
};
-//TODO handle count > 1
static bool
-validate_graphics_pipeline(VkDevice dev, uint32_t count, VkGraphicsPipelineCreateInfo const *pCreateInfo)
+validate_graphics_pipeline(VkDevice dev, VkGraphicsPipelineCreateInfo const *pCreateInfo)
{
/* We seem to allow pipeline stages to be specified out of order, so collect and identify them
* before trying to do anything more: */
@@ -969,7 +968,10 @@ vkCreateGraphicsPipelines(VkDevice device,
const VkGraphicsPipelineCreateInfo *pCreateInfos,
VkPipeline *pPipelines)
{
- bool pass = validate_graphics_pipeline(device, count, pCreateInfos);
+ bool pass = true;
+ for (uint32_t i = 0; i < count; i++) {
+ pass = validate_graphics_pipeline(device, &pCreateInfos[i]) && pass;
+ }
if (pass) {
/* The driver is allowed to crash if passed junk. Only actually create the