[Piglit] [PATCH V2] arb_gpu_shader5: add output varying to stream compile test

Timothy Arceri timothy.arceri at collabora.com
Wed Oct 21 19:20:23 PDT 2015


When arb_enhanced_layouts is added to mesa this validation will be
moved to the checks on each variable it is applied to rather than on the global
itself so we need to add an output.

V2: don't change emit function stream as this is tested in another piglit, add
additional spec quote.
---
 .../arb_gpu_shader5/compiler/stream-qualifier/stream_value_too_large.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/spec/arb_gpu_shader5/compiler/stream-qualifier/stream_value_too_large.c b/tests/spec/arb_gpu_shader5/compiler/stream-qualifier/stream_value_too_large.c
index 32d3bd3..ec2390b 100644
--- a/tests/spec/arb_gpu_shader5/compiler/stream-qualifier/stream_value_too_large.c
+++ b/tests/spec/arb_gpu_shader5/compiler/stream-qualifier/stream_value_too_large.c
@@ -33,6 +33,8 @@
  * "If an implementation supports <N> vertex streams, the
  *  individual streams are numbered 0 through <N>-1"
  *
+ * "If any stream declaration specifies a non-existent stream number,
+ *  the shader will fail to compile."
  */
 
 #include "piglit-util-gl.h"
@@ -68,6 +70,7 @@ static const char *gs_template =
 	"\n"
 	"layout(points) in;\n"
 	"layout(points, stream = %d, max_vertices=1) out;\n"
+	"out vec4 streamout;\n"
 	"\n"
 	"void main()\n"
 	"{\n"
-- 
2.4.3



More information about the Piglit mailing list