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

Alejandro PiƱeiro apinheiro at igalia.com
Tue Apr 17 14:37:12 UTC 2018


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
mode.
---
 tests/shaders/shader_runner.c | 3 +++
 1 file changed, 3 insertions(+)

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



More information about the Piglit mailing list