projects
/
platform
/
upstream
/
Vulkan-LoaderAndValidationLayers.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0cfa9c3
)
layers: Don't do cross-stage validation if individual stages failed
author
Chris Forbes
<chrisforbes@google.com>
Thu, 8 Sep 2016 23:26:20 +0000
(11:26 +1200)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/layers/core_validation.cpp
b/layers/core_validation.cpp
index
288ec36
..
c17ca3e
100644
(file)
--- 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) {