From 72db2cf8ed223058623943abb345225cd80f3e89 Mon Sep 17 00:00:00 2001 From: Tobin Ehlis Date: Mon, 23 May 2016 16:02:29 -0600 Subject: layers: Handle static arrays in codegen Update safe_struct codegen to handle the case of a static array in a struct. This removes exceptions for VkDebugMarkerMarkerInfoEXT and VkPipelineColorBlendStateCreateInfo so they can be treated as all other structs. --- layers/core_validation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layers/core_validation.cpp') diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index e0d04c29..73a318e1 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -2696,7 +2696,7 @@ static bool validatePipelineDrawtimeState(layer_data const *my_data, const GLOBA VkSampleCountFlagBits subpass_num_samples = VkSampleCountFlagBits(0); uint32_t i; - const VkPipelineColorBlendStateCreateInfo *color_blend_state = pPipeline->graphicsPipelineCI.pColorBlendState; + const safe_VkPipelineColorBlendStateCreateInfo *color_blend_state = pPipeline->graphicsPipelineCI.pColorBlendState; if ((color_blend_state != NULL) && (pCB->activeSubpass == pPipeline->graphicsPipelineCI.subpass) && (color_blend_state->attachmentCount != subpass_desc->colorAttachmentCount)) { skip_call |= -- cgit v1.2.3