[Piglit] [PATCH v2 1/5] piglit_num_components: add more pixel unpack formats
Nicolai Hähnle
nhaehnle at gmail.com
Thu Jan 21 12:33:07 PST 2016
From: Nicolai Hähnle <nicolai.haehnle at amd.com>
---
tests/util/piglit-util-gl.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tests/util/piglit-util-gl.c b/tests/util/piglit-util-gl.c
index bbc174d..61764fb 100644
--- a/tests/util/piglit-util-gl.c
+++ b/tests/util/piglit-util-gl.c
@@ -909,14 +909,19 @@ piglit_num_components(GLenum base_format)
case GL_INTENSITY:
case GL_LUMINANCE:
case GL_RED:
+ case GL_GREEN:
+ case GL_BLUE:
return 1;
case GL_DEPTH_STENCIL:
case GL_LUMINANCE_ALPHA:
case GL_RG:
return 2;
case GL_RGB:
+ case GL_BGR:
return 3;
case GL_RGBA:
+ case GL_BGRA:
+ case GL_ABGR_EXT:
return 4;
default:
printf("Unknown num_components for %s\n",
--
2.5.0
More information about the Piglit
mailing list