summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2009-11-19 20:43:23 -0800
committerIan Romanick <ian.d.romanick@intel.com>2009-11-19 20:43:23 -0800
commit601afc4db25ccb61a719be020e49047cd4acb04d (patch)
tree29e38594111502289e0b6398c142d1dc31f566d8
parentf7f97bd11d189c449cbdb5c07881e8b11f0fd4c1 (diff)
ARB_texture_rg: Enable MESA_FORMAT_{R8,RG88} for software paths
-rw-r--r--src/mesa/main/texformat.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mesa/main/texformat.c b/src/mesa/main/texformat.c
index 1a374e7bee..ed57a9fc9d 100644
--- a/src/mesa/main/texformat.c
+++ b/src/mesa/main/texformat.c
@@ -93,6 +93,18 @@ _mesa_choose_tex_format( GLcontext *ctx, GLint internalFormat,
case GL_RGB5:
return MESA_FORMAT_RGB565;
+ /* RG formats */
+ case GL_RG:
+ case GL_RG8:
+ case GL_RG16:
+ return MESA_FORMAT_RG88;
+
+ /* RED formats */
+ case GL_RED:
+ case GL_R8:
+ case GL_R16:
+ return MESA_FORMAT_R8;
+
/* Alpha formats */
case GL_ALPHA:
case GL_ALPHA4: