[Piglit] [PATCH 2/2] all.tests: textureLod and textureLodOffset added to all.tests

Steve Miller dervishx at gmail.com
Mon Sep 16 10:26:30 PDT 2013


sampler types supported for textureLod and textureLodOffset:
 sampler1D
 sampler2D
 sampler3D
 sampler1DArray
 sampler2DArray
 isampler1D
 isampler2D
 isampler3D
 isampler1DArray
 isampler2DArray
 usampler1D
 usampler2D
 usampler3D
 usampler1DArray
 usampler2DArray
---
 tests/all.tests | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/tests/all.tests b/tests/all.tests
index d06ec00..c623f1b 100644
--- a/tests/all.tests
+++ b/tests/all.tests
@@ -862,10 +862,11 @@ for stage in ['vs', 'gs', 'fs']:
                 version, stage, sampler)] = concurrent_test(
                 'textureSize {0} {1}'.format(stage, sampler))
     # texelFetch():
-    for sampler in ['sampler1D', 'sampler2D', 'sampler3D', 'sampler1DArray', 'sampler2DArray', 'isampler1D', 'isampler2D', 'isampler3D', 'isampler1DArray', 'isampler2DArray', 'usampler1D', 'usampler2D', 'usampler3D', 'usampler1DArray', 'usampler2DArray']:
+    for sampler in ['sampler1D', 'sampler2D', 'sampler3D', 'sampler2DRect', 'sampler1DArray', 'sampler2DArray', 'isampler1D', 'isampler2D', 'isampler3D', 'isampler2DRect', 'isampler1DArray', 'isampler2DArray', 'usampler1D', 'usampler2D', 'usampler3D', 'usampler2DRect', 'usampler1DArray', 'usampler2DArray']:
         spec['glsl-{0}/execution/texelFetch/{1}-texelFetch-{2}'.format(
                 version, stage, sampler)] = concurrent_test(
                 'texelFetch {0} {1}'.format(stage, sampler))
+    for sampler in ['sampler1D', 'sampler2D', 'sampler3D', 'sampler1DArray', 'sampler2DArray', 'isampler1D', 'isampler2D', 'isampler3D', 'isampler1DArray', 'isampler2DArray', 'usampler1D', 'usampler2D', 'usampler3D', 'usampler1DArray', 'usampler2DArray']:
         spec['glsl-{0}/execution/texelFetchOffset/{1}-texelFetch-{2}'.format(
                 version, stage, sampler)] = concurrent_test(
                 'texelFetch offset {0} {1}'.format(stage, sampler))
@@ -877,9 +878,14 @@ for stage in ['vs', 'gs', 'fs']:
                         stage, type))
 
     # textureLod():
-    # XXX: samplerCube
     for sampler in ['sampler1D', 'sampler2D', 'sampler3D', 'sampler1DArray', 'sampler2DArray', 'isampler1D', 'isampler2D', 'isampler3D', 'isampler1DArray', 'isampler2DArray', 'usampler1D', 'usampler2D', 'usampler3D', 'usampler1DArray', 'usampler2DArray']:
-        profile.test_list['glsl-1.30/execution/textureLod/' + stage + '-textureLod-' + sampler] = PlainExecTest(['textureLod', stage, sampler, '-auto', '-fbo'])
+        spec['glsl-{0}/execution/textureLod/{1}-textureLod-{2}'.format(
+                version, stage, sampler)] = concurrent_test(
+                'textureLod {0} {1}'.format(stage, sampler))
+    for sampler in ['sampler1D', 'sampler2D', 'sampler3D', 'sampler1DArray', 'sampler2DArray', 'isampler1D', 'isampler2D', 'isampler3D', 'isampler1DArray', 'isampler2DArray', 'usampler1D', 'usampler2D', 'usampler3D', 'usampler1DArray', 'usampler2DArray']:
+        spec['glsl-{0}/execution/textureLodOffset/{1}-textureLod-{2}'.format(
+                version, stage, sampler)] = concurrent_test(
+                'textureLod offset {0} {1}'.format(stage, sampler))
     # textureLod() with EXT_texture_swizzle mode "b0r1":
     for type in ['i', 'u', '']:
         profile.test_list['glsl-1.30/execution/textureLod/' + stage + '-textureLod-' + type + 'sampler2DArray-swizzle'] = PlainExecTest(['textureLod', stage, type + 'sampler2DArray', 'b0r1', '-auto', '-fbo'])
-- 
1.8.3.1



More information about the Piglit mailing list