aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Forbes <chrisforbes@google.com>2016-09-09 11:26:20 +1200
committerChris Forbes <chrisforbes@google.com>2016-09-13 11:20:17 +1200
commitfcdf38a0f61ec9b1e692aeb4643ecde67db11f7a (patch)
tree9fd30db8bf573d7444bbe811ebb33d2b2e9c1c27
parentbcf8c5ee8f92c1b51b5c6808df935095f7d0e4c1 (diff)
downloadusermoji-fcdf38a0f61ec9b1e692aeb4643ecde67db11f7a.tar.xz
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 <chrisforbes@google.com>
-rw-r--r--layers/core_validation.cpp5
1 files changed, 5 insertions, 0 deletions
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) {