diff options
| author | Chris Forbes <chrisforbes@google.com> | 2016-09-09 11:26:20 +1200 |
|---|---|---|
| committer | Chris Forbes <chrisforbes@google.com> | 2016-09-13 11:20:17 +1200 |
| commit | fcdf38a0f61ec9b1e692aeb4643ecde67db11f7a (patch) | |
| tree | 9fd30db8bf573d7444bbe811ebb33d2b2e9c1c27 /layers | |
| parent | bcf8c5ee8f92c1b51b5c6808df935095f7d0e4c1 (diff) | |
| download | usermoji-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>
Diffstat (limited to 'layers')
| -rw-r--r-- | layers/core_validation.cpp | 5 |
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) { |
