[06/24] shader_runner: debug prints if running on SPIR-V mode.

Submitted by apinheiro on June 20, 2018, 12:40 p.m.


Message ID 20180620124059.25917-7-apinheiro@igalia.com
State New
Headers show
Series "ARB_gl_spirv: support for loading SPIR-V binaries, plus first set of tests" ( rev: 2 ) in Piglit

Not browsing as part of any series.

Commit Message

apinheiro June 20, 2018, 12:40 p.m.
Fancy to be sure that shader_runner is trying to run in SPIR-V
mode. Didn't print if it is running on GLSL mode as that is the
default. Initially only some small amount of tests will run on SPIR-V
 tests/shaders/shader_runner.c | 3 +++
 1 file changed, 3 insertions(+)

Patch hide | download patch | download mbox

diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index bffc444d7..2c6837fb6 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -1273,6 +1273,9 @@  leave_state(enum states state, const char *line, const char *script_name)
 	case requirements:
+		if (spirv_replaces_glsl) {
+			printf("Running on SPIR-V mode\n");
+		}
 	case vertex_shader: