diff options
author | Marek Olšák <marek.olsak@amd.com> | 2021-01-15 16:43:57 -0500 |
---|---|---|
committer | Marek Olšák <marek.olsak@amd.com> | 2021-01-18 17:18:20 -0500 |
commit | 290dcb26aec583eb00be611b7b69e3f3f9667781 (patch) | |
tree | 157485b7f1aae5858d6b94e0606ac829bd7a5e92 | |
parent | 5eb39dd95f8b9eec1fd648f7797edf43988db402 (diff) |
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>
-rw-r--r-- | src/mesa/main/texcompress_etc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/texcompress_etc.c b/src/mesa/main/texcompress_etc.c index 32464f3ca9e..f14b1670728 100644 --- a/src/mesa/main/texcompress_etc.c +++ b/src/mesa/main/texcompress_etc.c @@ -750,8 +750,8 @@ etc2_unpack_srgb8(uint8_t *dst_row, tmp = dst[0]; dst[0] = dst[2]; dst[2] = tmp; - dst[3] = 255; } + dst[3] = 255; dst += comps; } |