[Piglit] [PATCH] teximage-colors: Don't try to do exact upload/download on 12-bit formats

Jason Ekstrand jason at jlekstrand.net
Mon Sep 8 20:40:57 PDT 2014


Since we can't give a 12-bit input, trying to do an exact test doesn't
really make sense.
---
 tests/texturing/teximage-colors.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/texturing/teximage-colors.c b/tests/texturing/teximage-colors.c
index 815ef4d..712e11b 100644
--- a/tests/texturing/teximage-colors.c
+++ b/tests/texturing/teximage-colors.c
@@ -67,7 +67,7 @@ struct texture_format formats[] = {
 	FORMAT(GL_SRGB8, GL_RGB, GL_BYTE),
 	FORMAT(GL_RGB10, GL_RGB, GL_UNSIGNED_SHORT),
 	FORMAT(GL_R11F_G11F_B10F, GL_RGB, GL_NONE),
-	FORMAT(GL_RGB12, GL_RGB, GL_UNSIGNED_SHORT),
+	FORMAT(GL_RGB12, GL_RGB, GL_NONE),
 	FORMAT(GL_RGB9_E5, GL_RGB, GL_NONE),
 	FORMAT(GL_RGB16, GL_RGB, GL_UNSIGNED_SHORT),
 	FORMAT(GL_RGB16F, GL_RGB, GL_NONE),
@@ -82,7 +82,7 @@ struct texture_format formats[] = {
 	FORMAT(GL_RGB10_A2, GL_RGBA, GL_UNSIGNED_INT_10_10_10_2),
 	FORMAT(GL_RGBA8_SNORM, GL_RGBA, GL_BYTE),
 	FORMAT(GL_SRGB8_ALPHA8, GL_RGBA, GL_BYTE),
-	FORMAT(GL_RGBA12, GL_RGBA, GL_UNSIGNED_BYTE),
+	FORMAT(GL_RGBA12, GL_RGBA, GL_NONE),
 	FORMAT(GL_RGBA16, GL_RGBA, GL_UNSIGNED_SHORT),
 	FORMAT(GL_RGBA16_SNORM, GL_RGBA, GL_SHORT),
 	FORMAT(GL_RGBA32F, GL_RGBA, GL_FLOAT),
@@ -90,7 +90,7 @@ struct texture_format formats[] = {
 	FORMAT(GL_ALPHA, GL_ALPHA, GL_NONE),
 	FORMAT(GL_ALPHA4, GL_ALPHA, GL_NONE),
 	FORMAT(GL_ALPHA8, GL_ALPHA, GL_UNSIGNED_BYTE),
-	FORMAT(GL_ALPHA12, GL_ALPHA, GL_UNSIGNED_BYTE),
+	FORMAT(GL_ALPHA12, GL_ALPHA, GL_NONE),
 	FORMAT(GL_ALPHA16, GL_ALPHA, GL_UNSIGNED_SHORT),
 
 	FORMAT(GL_LUMINANCE, GL_LUMINANCE, GL_NONE),
-- 
2.1.0



More information about the Piglit mailing list