[Piglit] [PATCH 07/12] built-in-constants: Fix shader template for TCS.

Chris Forbes chrisf at ijw.co.nz
Wed Sep 17 00:42:20 PDT 2014


Previously this tried to assign vec4 to float, and would fail there
rather than testing anything useful.

Signed-off-by: Chris Forbes <chrisf at ijw.co.nz>
---
 tests/shaders/built-in-constants.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/shaders/built-in-constants.c b/tests/shaders/built-in-constants.c
index 5d4bc69..869908c 100644
--- a/tests/shaders/built-in-constants.c
+++ b/tests/shaders/built-in-constants.c
@@ -71,7 +71,7 @@ static const char *const vertex_shader_body =
 
 static const char *const tessellation_control_shader_body =
 	"layout(vertices = 1) out;\n"
-	"void main() { gl_TessLevelInner[0] = vec4(f[0]); }\n"
+	"void main() { gl_TessLevelInner[0] = f[0]; }\n"
 	;
 
 static const char *const tessellation_evaluation_shader_body =
-- 
2.1.0



More information about the Piglit mailing list