[Mesa-dev] [PATCH] st/mesa: use RGBA instead of BGRA for SRGB_ALPHA
Marek Olšák
maraeo at gmail.com
Wed Mar 23 20:38:02 UTC 2016
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Marek
On Wed, Mar 23, 2016 at 9:23 PM, Nicolai Hähnle <nhaehnle at gmail.com> wrote:
> From: Nicolai Hähnle <nicolai.haehnle at amd.com>
>
> 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
> ---
> src/mesa/state_tracker/st_format.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c
> index 4b5f819..9a280fc 100644
> --- a/src/mesa/state_tracker/st_format.c
> +++ b/src/mesa/state_tracker/st_format.c
> @@ -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 },
> --
> 2.5.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list