[Piglit] [PATCH piglit] Don't test floats with the form ‘1f’
Neil Roberts
neil at linux.intel.com
Wed Nov 26 10:43:24 PST 2014
There is nothing in the GLSL spec which says you can have a float
literal without an exponent or a decimal point even if you add the ‘f’
suffix. This patch replaces that literal with some other variations
that should be accepted according to the spec.
---
tests/shaders/glsl-floating-constant-120.shader_test | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/tests/shaders/glsl-floating-constant-120.shader_test b/tests/shaders/glsl-floating-constant-120.shader_test
index 6695f79..5c7ec92 100644
--- a/tests/shaders/glsl-floating-constant-120.shader_test
+++ b/tests/shaders/glsl-floating-constant-120.shader_test
@@ -12,12 +12,14 @@ void main()
void main()
{
- float f1 = 1f;
- float f2 = 0.5F;
+ float f1 = 1.0f;
+ float f2 = 0.F;
+ float f3 = .2f;
+ float f4 = 5e-1F;
- gl_FragColor = vec4(f2, f1, 0.0, 0.0);
+ gl_FragColor = vec4(f1, f2, f3, f4);
}
[test]
draw rect -1 -1 2 2
-probe rgba 1 1 0.5 1.0 0.0 0.0
+probe rgba 1 1 1.0 0.0 0.2 0.5
--
1.9.3
More information about the Piglit
mailing list