[Piglit] [PATCH 13/13] arb_shading_language_420pack: Verify the limits in section 7.4

Ian Romanick idr at freedesktop.org
Mon Aug 26 10:33:15 PDT 2013


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

The GL_ARB_shading_language_420pack says:

    "This is a language feature only extension formed from changes made
    to version 4.20 of GLSL.  It includes:

    ...

    * Built-in constants for gl_MinProgramTexelOffset and
      gl_MaxProgramTexelOffset."

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
 tests/all.tests                                              | 1 +
 tests/spec/arb_shading_language_420pack/minimum-maximums.txt | 4 ++++
 2 files changed, 5 insertions(+)
 create mode 100644 tests/spec/arb_shading_language_420pack/minimum-maximums.txt

diff --git a/tests/all.tests b/tests/all.tests
index e1936dd..be9402a 100644
--- a/tests/all.tests
+++ b/tests/all.tests
@@ -1279,6 +1279,7 @@ arb_shading_language_420pack['execution'] = Group()
 add_shader_test_dir(arb_shading_language_420pack['execution'],
 	            os.path.join(testsDir, 'spec', 'arb_shading_language_420pack', 'execution'),
 		    recursive=True)
+spec['ARB_shading_language_420pack']['built-in constants'] = concurrent_test('built-in-constants tests/spec/arb_shading_language_420pack/minimum-maximums.txt')
 
 # Group ARB_explicit_attrib_location
 arb_explicit_attrib_location = Group()
diff --git a/tests/spec/arb_shading_language_420pack/minimum-maximums.txt b/tests/spec/arb_shading_language_420pack/minimum-maximums.txt
new file mode 100644
index 0000000..15650c0
--- /dev/null
+++ b/tests/spec/arb_shading_language_420pack/minimum-maximums.txt
@@ -0,0 +1,4 @@
+1.30
+GL_ARB_shading_language_420pack
+gl_MinProgramTexelOffset -8
+gl_MaxProgramTexelOffset 7
-- 
1.8.1.4



More information about the Piglit mailing list