mesa: fix alpha channel of ETC2_SRGB8 decompression for !bgra
authorMarek Olšák <marek.olsak@amd.com>
Fri, 15 Jan 2021 21:43:57 +0000 (16:43 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 18 Jan 2021 22:18:20 +0000 (17:18 -0500)
commit290dcb26aec583eb00be611b7b69e3f3f9667781
tree157485b7f1aae5858d6b94e0606ac829bd7a5e92
parent5eb39dd95f8b9eec1fd648f7797edf43988db402
mesa: fix alpha channel of ETC2_SRGB8 decompression for !bgra

If software decompression is used for ETC2, the alpha channel
for sRGB8 textures would be set only if BGRA is true.

Fixes: e5604ef78bd "st/mesa/i965: Allow decompressing ETC2 to GL_RGBA"

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8529>
src/mesa/main/texcompress_etc.c