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

Chris Forbes chrisf at ijw.co.nz
Fri Aug 22 20:25:12 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 0bfe2c1..bb6281d 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.0.4



More information about the Piglit mailing list