layers: Don't do cross-stage validation if individual stages failed
authorChris Forbes <chrisforbes@google.com>
Thu, 8 Sep 2016 23:26:20 +0000 (11:26 +1200)
committerChris Forbes <chrisforbes@google.com>
Mon, 12 Sep 2016 23:20:17 +0000 (11:20 +1200)
There are only crashes and nonsense down this path.

Signed-off-by: Chris Forbes <chrisforbes@google.com>
layers/core_validation.cpp

index 288ec36..c17ca3e 100644 (file)
@@ -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) {