[Piglit] [PATCH] Add a copy of samplemaskin-basic that uses a non-const array index.
Kenneth Graunke
kenneth at whitecape.org
Mon Apr 4 07:32:45 UTC 2016
Currently triggers an assert fail in Mesa's GLSL compiler.
---
.../execution/samplemaskin-indirect.shader_test | 27 ++++++++++++++++++++++
1 file changed, 27 insertions(+)
create mode 100644 tests/spec/arb_gpu_shader5/execution/samplemaskin-indirect.shader_test
diff --git a/tests/spec/arb_gpu_shader5/execution/samplemaskin-indirect.shader_test b/tests/spec/arb_gpu_shader5/execution/samplemaskin-indirect.shader_test
new file mode 100644
index 0000000..6dc7bc9
--- /dev/null
+++ b/tests/spec/arb_gpu_shader5/execution/samplemaskin-indirect.shader_test
@@ -0,0 +1,27 @@
+[require]
+GLSL >= 1.50
+GL_ARB_gpu_shader5
+
+[vertex shader passthrough]
+
+[fragment shader]
+#extension GL_ARB_gpu_shader5 : enable
+
+out vec4 color;
+
+uniform int zero;
+
+void main()
+{
+ color = vec4(1.0, 0.0, 0.0, 1.0);
+
+ /* No MS set up, should just be the current fragment. */
+ if (gl_SampleMaskIn[zero] == 1) {
+ color.rg = vec2(0.0, 1.0);
+ }
+}
+
+[test]
+uniform int zero 0
+draw rect -1 -1 2 2
+probe all rgba 0.0 1.0 0.0 1.0
--
2.7.4
More information about the Piglit
mailing list