summaryrefslogtreecommitdiff
path: root/tests/spec/arb_gpu_shader5/execution
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2014-05-29 22:53:49 -0400
committerIlia Mirkin <imirkin@alum.mit.edu>2014-06-01 18:58:00 -0400
commit685e44b8e083f2aa270ae5b2f4d4a003bb1b11fe (patch)
tree29b1e1374dd51b3019cc8749a50d1eeac0b369c4 /tests/spec/arb_gpu_shader5/execution
parent57f07fc843cf08e4b9f0bb5a9b21e3e7cb02477a (diff)
arb_gpu_shader5: add a very basic gl_SampleMaskIn test
Just ensures that without any MS set up, the coverage mask is 1. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Diffstat (limited to 'tests/spec/arb_gpu_shader5/execution')
-rw-r--r--tests/spec/arb_gpu_shader5/execution/samplemaskin-basic.shader_test24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/spec/arb_gpu_shader5/execution/samplemaskin-basic.shader_test b/tests/spec/arb_gpu_shader5/execution/samplemaskin-basic.shader_test
new file mode 100644
index 000000000..a5fb2c5d2
--- /dev/null
+++ b/tests/spec/arb_gpu_shader5/execution/samplemaskin-basic.shader_test
@@ -0,0 +1,24 @@
+[require]
+GLSL >= 1.50
+GL_ARB_gpu_shader5
+
+[vertex shader passthrough]
+
+[fragment shader]
+#extension GL_ARB_gpu_shader5 : enable
+
+out vec4 color;
+
+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[0] == 1) {
+ color.rg = vec2(0.0, 1.0);
+ }
+}
+
+[test]
+draw rect -1 -1 2 2
+probe all rgba 0.0 1.0 0.0 1.0