summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texformat.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-12-21 23:46:32 +0100
committerMarek Olšák <[email protected]>2010-12-23 16:54:58 +0100
commitbae9d511f343c7bd5eb66d1d1d18d32b47e738e3 (patch)
treede35f27d177317ca075b6ad18445ddee0f30d9f6 /src/mesa/main/texformat.c
parent621e5254ef6714520f106bd3707fe6ddc279aa0c (diff)
mesa: implement new texture format AL44
Radeon GPUs can do this. R600 can even do render-to-texture. Packing and extracting aren't implemented, but we shouldn't hit them (I think). Tested with swrast, softpipe, and r300g.
Diffstat (limited to 'src/mesa/main/texformat.c')
-rw-r--r--src/mesa/main/texformat.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/main/texformat.c b/src/mesa/main/texformat.c
index 9d30a7e30c6..fb738fc6354 100644
--- a/src/mesa/main/texformat.c
+++ b/src/mesa/main/texformat.c
@@ -117,9 +117,11 @@ _mesa_choose_tex_format( struct gl_context *ctx, GLint internalFormat,
return MESA_FORMAT_L8;
/* Luminance/Alpha formats */
+ case GL_LUMINANCE4_ALPHA4:
+ return MESA_FORMAT_AL44;
+
case 2:
case GL_LUMINANCE_ALPHA:
- case GL_LUMINANCE4_ALPHA4:
case GL_LUMINANCE6_ALPHA2:
case GL_LUMINANCE8_ALPHA8:
return MESA_FORMAT_AL88;