[Piglit] [PATCH] arb_gpu_shader_fp64: vs-out-fs-in-double.shader_test fix
Tapani Pälli
tapani.palli at intel.com
Thu Sep 18 22:55:18 PDT 2014
Set 'flat' interpolation qualifier for double precision input
variable as defined by the GL_ARB_gpu_shader_fp64 spec:
"This extension does not support interpolation of double-precision
values; doubles used as fragment shader inputs must be qualified
as "flat"."
Also modified vertex output side, as the test uses GLSL 1.50 where
interpolation qualifier must match between stages.
(This test still fails on Nvidia binary driver (319.32) which would
additionally require GLSL >= 4.00 and GL_NV_gpu_shader5 for it to
work.)
Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
---
.../arb_gpu_shader_fp64/execution/vs-out-fs-in-double.shader_test | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/tests/spec/arb_gpu_shader_fp64/execution/vs-out-fs-in-double.shader_test b/tests/spec/arb_gpu_shader_fp64/execution/vs-out-fs-in-double.shader_test
index e0198d3..c01db72 100644
--- a/tests/spec/arb_gpu_shader_fp64/execution/vs-out-fs-in-double.shader_test
+++ b/tests/spec/arb_gpu_shader_fp64/execution/vs-out-fs-in-double.shader_test
@@ -8,7 +8,7 @@ GL_ARB_gpu_shader_fp64
#extension GL_ARB_gpu_shader_fp64 : require
uniform double arg0;
in vec4 vertex;
-out dvec4 dout1;
+flat out dvec4 dout1;
void main()
{
gl_Position = vertex;
@@ -19,10 +19,9 @@ void main()
#version 150
#extension GL_ARB_gpu_shader_fp64 : require
#
-in dvec4 dout1;
+flat in dvec4 dout1;
uniform double tolerance;
uniform double expected;
-
void main()
{
dvec4 result = trunc(dout1);
--
1.9.3
More information about the Piglit
mailing list