st/mesa: use RGBA instead of BGRA for SRGB_ALPHA
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 23 Mar 2016 20:22:16 +0000 (15:22 -0500)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 24 Mar 2016 17:23:31 +0000 (12:23 -0500)
This fixes a regression introduced by commit a8eea696 "st/mesa: honour sized
internal formats in st_choose_format (v2)".

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94657
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94671
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_format.c

index 4b5f8199c6c4ac5a47e523f0564232ff0bf03114..9a280fc004b22e31fe97af41e128954a047fcea9 100644 (file)
@@ -1309,7 +1309,7 @@ static const struct format_mapping format_map[] = {
    },
    {
       { GL_SRGB_ALPHA_EXT, GL_SRGB8_ALPHA8_EXT, 0 },
-      { DEFAULT_SRGBA_FORMATS }
+      { PIPE_FORMAT_R8G8B8A8_SRGB, DEFAULT_SRGBA_FORMATS }
    },
    {
       { GL_COMPRESSED_SRGB_EXT, GL_COMPRESSED_SRGB_S3TC_DXT1_EXT, 0 },