From 338db9da918a917478cd3a55d23fde38d8ebbcd8 Mon Sep 17 00:00:00 2001 From: Mark Lobodzinski Date: Wed, 16 Dec 2015 14:25:22 -0700 Subject: layers: Work around Windows release build crash in cube DrawState validate_pipeline_shaders is doing something uncool. --- layers/draw_state.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'layers/draw_state.cpp') diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp index b3173ff6..9b999b7e 100644 --- a/layers/draw_state.cpp +++ b/layers/draw_state.cpp @@ -1305,10 +1305,15 @@ static VkBool32 validate_draw_state(layer_data* my_data, GLOBAL_CB_NODE* pCB, Vk static VkBool32 verifyPipelineCreateState(layer_data* my_data, const VkDevice device, PIPELINE_NODE* pPipeline) { VkBool32 skipCall = VK_FALSE; - //if (!validate_pipeline_shaders(my_data, device, &(pPipeline->graphicsPipelineCI))) { + +#if 0 + // TODO: This call is causing a crash on Windows Release builds running the cube demo with DrawState enabled + // Root cause and fix. if (!validate_pipeline_shaders(my_data, device, pPipeline)) { skipCall = VK_TRUE; } +#endif + // VS is required if (!(pPipeline->active_shaders & VK_SHADER_STAGE_VERTEX_BIT)) { skipCall |= log_msg(my_data->report_data, VK_DEBUG_REPORT_ERROR_BIT, (VkDebugReportObjectTypeLUNARG) 0, 0, 0, DRAWSTATE_INVALID_PIPELINE_CREATE_STATE, "DS", -- cgit v1.2.3