[Piglit] [PATCH] glsl-1.40: Expect shadow comparison alpha to be 1.0

Ian Romanick idr at freedesktop.org
Wed Feb 20 15:54:01 PST 2013


From: Ian Romanick <ian.d.romanick at intel.com>

Appendix E.1 (Profiles and Deprecated Features of OpenGL 3.0) of the
OpenGL 3.1 spec says:

    • Depth texture mode - DEPTH TEXTURE MODE. Section 3.9.14 is to be
      changed so that r is returned to texture samplers directly, and
      the OpenGL Shading Language 1.30 Specification is to be changed so
      that (r, r, r, 1) is always returned from depth texture samplers
      in this case.

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=57437
---
 tests/spec/glsl-1.40/execution/glsl-fs-shadow2DRect.shader_test     | 6 +++---
 tests/spec/glsl-1.40/execution/glsl-fs-shadow2DRectProj.shader_test | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/tests/spec/glsl-1.40/execution/glsl-fs-shadow2DRect.shader_test b/tests/spec/glsl-1.40/execution/glsl-fs-shadow2DRect.shader_test
index d091784..cd8e5e1 100644
--- a/tests/spec/glsl-1.40/execution/glsl-fs-shadow2DRect.shader_test
+++ b/tests/spec/glsl-1.40/execution/glsl-fs-shadow2DRect.shader_test
@@ -37,6 +37,6 @@ relative probe rgba (0.0, 0.1) (1.0, 1.0, 1.0, 1.0)
 relative probe rgba (0.0, 1.0) (1.0, 1.0, 1.0, 1.0)
 relative probe rgba (0.9, 1.0) (1.0, 1.0, 1.0, 1.0)
 
-relative probe rgba (0.1, 0.0) (0.0, 0.0, 0.0, 0.0)
-relative probe rgba (1.0, 0.0) (0.0, 0.0, 0.0, 0.0)
-relative probe rgba (1.0, 0.9) (0.0, 0.0, 0.0, 0.0)
+relative probe rgba (0.1, 0.0) (0.0, 0.0, 0.0, 1.0)
+relative probe rgba (1.0, 0.0) (0.0, 0.0, 0.0, 1.0)
+relative probe rgba (1.0, 0.9) (0.0, 0.0, 0.0, 1.0)
diff --git a/tests/spec/glsl-1.40/execution/glsl-fs-shadow2DRectProj.shader_test b/tests/spec/glsl-1.40/execution/glsl-fs-shadow2DRectProj.shader_test
index aeeb1fd..c961cb9 100644
--- a/tests/spec/glsl-1.40/execution/glsl-fs-shadow2DRectProj.shader_test
+++ b/tests/spec/glsl-1.40/execution/glsl-fs-shadow2DRectProj.shader_test
@@ -38,6 +38,6 @@ relative probe rgba (0.0, 0.1) (1.0, 1.0, 1.0, 1.0)
 relative probe rgba (0.0, 1.0) (1.0, 1.0, 1.0, 1.0)
 relative probe rgba (0.9, 1.0) (1.0, 1.0, 1.0, 1.0)
 
-relative probe rgba (0.1, 0.0) (0.0, 0.0, 0.0, 0.0)
-relative probe rgba (1.0, 0.0) (0.0, 0.0, 0.0, 0.0)
-relative probe rgba (1.0, 0.9) (0.0, 0.0, 0.0, 0.0)
+relative probe rgba (0.1, 0.0) (0.0, 0.0, 0.0, 1.0)
+relative probe rgba (1.0, 0.0) (0.0, 0.0, 0.0, 1.0)
+relative probe rgba (1.0, 0.9) (0.0, 0.0, 0.0, 1.0)
-- 
1.7.11.7



More information about the Piglit mailing list