[Piglit] [PATCH 1/2] arb_gpu_shader5: Test ldexp(0.0f, non-zero-exp).

Matt Turner mattst88 at gmail.com
Wed Apr 13 19:07:47 UTC 2016


---
 .../execution/built-in-functions/fs-ldexp.shader_test              | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tests/spec/arb_gpu_shader5/execution/built-in-functions/fs-ldexp.shader_test b/tests/spec/arb_gpu_shader5/execution/built-in-functions/fs-ldexp.shader_test
index 0b07b2b..785eee5 100644
--- a/tests/spec/arb_gpu_shader5/execution/built-in-functions/fs-ldexp.shader_test
+++ b/tests/spec/arb_gpu_shader5/execution/built-in-functions/fs-ldexp.shader_test
@@ -47,6 +47,13 @@ uniform ivec4 given_exponent 0 0 0 0
 draw arrays GL_TRIANGLE_FAN 0 4
 probe all rgba 0.0 1.0 0.0 1.0
 
+# Basic tests with x = 0.
+uniform vec4 expected_float 0.0 0.0 0.0 0.0
+uniform vec4 given_float 0.0 0.0 0.0 0.0
+uniform ivec4 given_exponent 1 100 -1 -100
+draw arrays GL_TRIANGLE_FAN 0 4
+probe all rgba 0.0 1.0 0.0 1.0
+
 # Basic tests.
 uniform vec4 expected_float 0.49 1.0 25.0 100
 uniform vec4 given_float 0.98 0.5 0.78125 0.78125
-- 
2.7.3



More information about the Piglit mailing list