Signed-off-by: Tapani Pälli <[email protected]>
---
 ...sl-double-conversion-constructor-01.shader_test | 22 ++++++++++++++++++++++
 ...sl-double-conversion-constructor-02.shader_test | 22 ++++++++++++++++++++++
 2 files changed, 44 insertions(+)
 create mode 100644 
tests/spec/arb_gpu_shader_fp64/execution/built-in-functions/glsl-double-conversion-constructor-01.shader_test
 create mode 100644 
tests/spec/arb_gpu_shader_fp64/execution/built-in-functions/glsl-double-conversion-constructor-02.shader_test

diff --git 
a/tests/spec/arb_gpu_shader_fp64/execution/built-in-functions/glsl-double-conversion-constructor-01.shader_test
 
b/tests/spec/arb_gpu_shader_fp64/execution/built-in-functions/glsl-double-conversion-constructor-01.shader_test
new file mode 100644
index 0000000..d730a6f
--- /dev/null
+++ 
b/tests/spec/arb_gpu_shader_fp64/execution/built-in-functions/glsl-double-conversion-constructor-01.shader_test
@@ -0,0 +1,22 @@
+#
+# Test that we can construct vec4 from 2nd column of dmat4
+#
+[require]
+GLSL >= 1.50
+GL_ARB_gpu_shader_fp64
+
+[vertex shader passthrough]
+
+[fragment shader]
+#version 150
+#extension GL_ARB_gpu_shader_fp64 : enable
+void main()
+{
+       double one = 1.0lf;
+       dmat4 mat = dmat4(one);
+       gl_FragColor = vec4(mat[1]);
+}
+
+[test]
+draw rect -1 -1 2 2
+probe all rgba 0.0 1.0 0.0 0.0
diff --git 
a/tests/spec/arb_gpu_shader_fp64/execution/built-in-functions/glsl-double-conversion-constructor-02.shader_test
 
b/tests/spec/arb_gpu_shader_fp64/execution/built-in-functions/glsl-double-conversion-constructor-02.shader_test
new file mode 100644
index 0000000..1e5925a
--- /dev/null
+++ 
b/tests/spec/arb_gpu_shader_fp64/execution/built-in-functions/glsl-double-conversion-constructor-02.shader_test
@@ -0,0 +1,22 @@
+#
+# Test that we can construct vec4 from dmat4 (1st column)
+#
+[require]
+GLSL >= 1.50
+GL_ARB_gpu_shader_fp64
+
+[vertex shader passthrough]
+
+[fragment shader]
+#version 150
+#extension GL_ARB_gpu_shader_fp64 : enable
+void main()
+{
+       double one = 1.0lf;
+       dmat4 mat = dmat4(one);
+       gl_FragColor = vec4(mat);
+}
+
+[test]
+draw rect -1 -1 2 2
+probe all rgba 1.0 0.0 0.0 0.0
-- 
1.9.3

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to