[Piglit] [PATCH 1/5] Fix the minimum number of faces allowed in a ktx image

Anuj Phogat anuj.phogat at gmail.com
Mon Mar 21 18:54:09 UTC 2016


For cubemaps and cubemap arrays this should be 6. For non cubemaps
this should be 1.

Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
---
 tests/util/piglit_ktx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/util/piglit_ktx.c b/tests/util/piglit_ktx.c
index a95300e..b96cb26 100644
--- a/tests/util/piglit_ktx.c
+++ b/tests/util/piglit_ktx.c
@@ -145,7 +145,7 @@ piglit_ktx_calc_target(struct piglit_ktx *self)
 	} else {
 		if (info->array_length != 0)
 			goto bad_target;
-		if (info->num_faces != 0)
+		if (info->num_faces != 1)
 			goto bad_target;
 
 		info->target = GL_TEXTURE_3D;
-- 
2.5.0



More information about the Piglit mailing list