From fcdf38a0f61ec9b1e692aeb4643ecde67db11f7a Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Fri, 9 Sep 2016 11:26:20 +1200 Subject: layers: Don't do cross-stage validation if individual stages failed There are only crashes and nonsense down this path. Signed-off-by: Chris Forbes --- layers/core_validation.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'layers') diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 288ec36c..c17ca3e4 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -2855,6 +2855,11 @@ static bool validate_and_capture_pipeline_shader_state(debug_report_data *report enabledFeatures, shaderModuleMap); } + // if the shader stages are no good individually, cross-stage validation is + // pointless. + if (!pass) + return false; + vi = pCreateInfo->pVertexInputState; if (vi) { -- cgit v1.2.3