st/mesa: add PIPE_FORMAT_R10G10B10A2_UNORM to format_map table
authorBrian Paul <brianp@vmware.com>
Wed, 9 Jul 2014 18:50:21 +0000 (12:50 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 9 Jul 2014 21:06:46 +0000 (15:06 -0600)
as a candidate for the GL_RGB10_A2 internal texture format.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_format.c

index a8211809d545d53e5e65365bd60cbfde81078cdf..409079bd453c08ba60193212b8f0283588bef90e 100644 (file)
@@ -861,7 +861,8 @@ static const struct format_mapping format_map[] = {
    },
    {
       { GL_RGB10_A2, 0 },
-      { PIPE_FORMAT_B10G10R10A2_UNORM, DEFAULT_RGBA_FORMATS }
+      { PIPE_FORMAT_B10G10R10A2_UNORM, PIPE_FORMAT_R10G10B10A2_UNORM,
+        DEFAULT_RGBA_FORMATS }
    },
    {
       { 4, GL_RGBA, GL_RGBA8, 0 },