[Piglit] [PATCH 23/23] tex-miplevel-selection: test all functions from ARB_texture_rectangle
Marek Olšák
maraeo at gmail.com
Fri Jul 4 07:10:10 PDT 2014
From: Marek Olšák <marek.olsak at amd.com>
---
tests/all.py | 5 +++++
tests/texturing/tex-miplevel-selection.c | 13 +++++++++++++
2 files changed, 18 insertions(+)
diff --git a/tests/all.py b/tests/all.py
index f369952..418bc9e 100644
--- a/tests/all.py
+++ b/tests/all.py
@@ -2184,6 +2184,11 @@ add_concurrent_test(arb_texture_rectangle, 'getteximage-targets RECT')
add_plain_test(arb_texture_rectangle, 'texrect_simple_arb_texrect')
add_plain_test(arb_texture_rectangle, 'arb_texrect-texture-base-level-error')
add_plain_test(arb_texture_rectangle, 'fbo-blit rect')
+add_concurrent_test(spec['ARB_texture_rectangle'], 'tex-miplevel-selection GL2:texture() 2DRect')
+add_concurrent_test(spec['ARB_texture_rectangle'], 'tex-miplevel-selection GL2:texture() 2DRectShadow')
+add_concurrent_test(spec['ARB_texture_rectangle'], 'tex-miplevel-selection GL2:textureProj 2DRect')
+add_concurrent_test(spec['ARB_texture_rectangle'], 'tex-miplevel-selection GL2:textureProj 2DRect_ProjVec4')
+add_concurrent_test(spec['ARB_texture_rectangle'], 'tex-miplevel-selection GL2:textureProj 2DRectShadow')
arb_texture_storage = {}
spec['ARB_texture_storage'] = arb_texture_storage
diff --git a/tests/texturing/tex-miplevel-selection.c b/tests/texturing/tex-miplevel-selection.c
index 18dfeea..aff8e52 100644
--- a/tests/texturing/tex-miplevel-selection.c
+++ b/tests/texturing/tex-miplevel-selection.c
@@ -521,6 +521,12 @@ piglit_init(int argc, char **argv)
case TEX_2D_SHADOW:
instruction = "shadow2D";
break;
+ case TEX_RECT:
+ instruction = "texture2DRect";
+ break;
+ case TEX_RECT_SHADOW:
+ instruction = "shadow2DRect";
+ break;
default:
assert(0);
}
@@ -548,6 +554,13 @@ piglit_init(int argc, char **argv)
case TEX_2D_SHADOW:
instruction = "shadow2DProj";
break;
+ case TEX_RECT:
+ case TEX_RECT_PROJ_VEC4:
+ instruction = "texture2DRectProj";
+ break;
+ case TEX_RECT_SHADOW:
+ instruction = "shadow2DRectProj";
+ break;
default:
assert(0);
}
--
1.9.1
More information about the Piglit
mailing list