[Mesa-dev] [PATCH 1/3] svga: add case for L8A8 in svga_translate_format()

Brian Paul brianp at vmware.com
Thu Jan 23 17:20:16 PST 2014


This fixes a few fbo-clear-formats tests.  It avoids needlessly
promoting a L8A8 texture to RGBA.
---
 src/gallium/drivers/svga/svga_format.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/drivers/svga/svga_format.c b/src/gallium/drivers/svga/svga_format.c
index 5a153a8..7631b54 100644
--- a/src/gallium/drivers/svga/svga_format.c
+++ b/src/gallium/drivers/svga/svga_format.c
@@ -80,6 +80,8 @@ svga_translate_format(struct svga_screen *ss,
       return SVGA3D_ALPHA8;
    case PIPE_FORMAT_L8_UNORM:
       return SVGA3D_LUMINANCE8;
+   case PIPE_FORMAT_L8A8_UNORM:
+      return SVGA3D_LUMINANCE8_ALPHA8;
 
    case PIPE_FORMAT_DXT1_RGB:
    case PIPE_FORMAT_DXT1_RGBA:
-- 
1.7.10.4



More information about the mesa-dev mailing list