[Piglit] [PATCH] arb_gpu_shader_fp64: add basic uniform fs test with constant initializer
Abdiel Janulgue
abdiel.janulgue at linux.intel.com
Mon Sep 1 05:13:36 PDT 2014
Passes on Nvidia hardware but crashes on Intel
Signed-off-by: Abdiel Janulgue <abdiel.janulgue at linux.intel.com>
---
.../execution/fs-uniform.shader_test | 26 ++++++++++++++++++++
1 file changed, 26 insertions(+)
create mode 100644 tests/spec/arb_gpu_shader_fp64/execution/fs-uniform.shader_test
diff --git a/tests/spec/arb_gpu_shader_fp64/execution/fs-uniform.shader_test b/tests/spec/arb_gpu_shader_fp64/execution/fs-uniform.shader_test
new file mode 100644
index 0000000..daeda37
--- /dev/null
+++ b/tests/spec/arb_gpu_shader_fp64/execution/fs-uniform.shader_test
@@ -0,0 +1,26 @@
+[require]
+GLSL >= 1.50
+GL_ARB_gpu_shader_fp64
+
+[vertex shader passthrough]
+
+[fragment shader]
+#extension GL_ARB_gpu_shader_fp64 : enable
+
+uniform double arg1;
+uniform double arg2;
+uniform double arg3;
+void main()
+{
+ double res = 3.0lf;
+ if ((arg1 * arg2) == res)
+ gl_FragColor = vec4(0.0, 1.0, 0.0, 0.0);
+ else
+ gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0);
+}
+
+[test]
+uniform double arg1 1.5
+uniform double arg2 2.0
+draw rect -1 -1 2 2
+probe rgb 1 1 0.0 1.0 0.0
--
1.7.9.5
More information about the Piglit
mailing list