[Piglit] [PATCH] Allow testing of generic compressed texture formats with 1D/3D textures

Anuj Phogat anuj.phogat at gmail.com
Tue Aug 21 12:12:06 PDT 2012


The generic texture formats are allowed in the <internalformat>
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D,
and CopyTexImage2D functions.

Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
---
 tests/texturing/copyteximage.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/tests/texturing/copyteximage.c b/tests/texturing/copyteximage.c
index a0bf228..c8a8492 100644
--- a/tests/texturing/copyteximage.c
+++ b/tests/texturing/copyteximage.c
@@ -328,14 +328,6 @@ supported_format(GLenum format)
 static bool
 supported_target_format(GLenum target, GLenum format)
 {
-	/* all the compressed formats we test (so far) are 2D only */
-	if (is_compressed_format(format) &&
-	    (target == GL_TEXTURE_1D ||
-	     target == GL_TEXTURE_1D_ARRAY ||
-	     target == GL_TEXTURE_3D ||
-	     target == GL_TEXTURE_RECTANGLE)) {
-		return false;
-	}
 	if (is_depth_format(format) && target == GL_TEXTURE_3D) {
 		return false;
 	}
-- 
1.7.7.6



More information about the Piglit mailing list