From 6c5735e5ae4669ec4303e894cac19f99189e4910 Mon Sep 17 00:00:00 2001 From: Caio Marcelo de Oliveira Filho Date: Wed, 19 Jun 2019 20:59:12 -0700 Subject: util: Assemble SPIR-V with the correct target environment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In the future we should consider decide this based on the shader_test requirements. For now allow us to generate SPIR-V binary in the expected version -- useful for adding validation later. Reviewed-by: Alejandro PiƱeiro --- tests/util/piglit-shader.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/util/piglit-shader.c b/tests/util/piglit-shader.c index 1938b1576..4ba2c4dc5 100644 --- a/tests/util/piglit-shader.c +++ b/tests/util/piglit-shader.c @@ -472,6 +472,7 @@ piglit_assemble_spirv(GLenum target, { char *arguments[] = { getenv("PIGLIT_SPIRV_AS_BINARY"), + "--target-env", "opengl4.5", "-o", "-", NULL }; -- cgit v1.2.3