util: Fix translate from block compressed to rgba
authorAxel Davy <davyaxel0@gmail.com>
Tue, 10 Aug 2021 18:52:45 +0000 (20:52 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 12 Aug 2021 20:30:42 +0000 (20:30 +0000)
commit6a0e703512d7e22cbd3fddf3ae20ba46f53dd199
tree1640f52034c5d15befe579296ef1f8119463b15c
parentcca51207725e9edb0410d57ff6d0c437238c0648
util: Fix translate from block compressed to rgba

Since
2b5178ee util: Switch the non-block formats to unpacking rgba rows instead of rects,
compressed formats define unpack_rgba_8unorm_rect instead
of unpack_rgba_8unorm.

Fixes the u_format_translate check to take this into account.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5201
Fixes: 2b5178ee ("util: Switch the non-block formats to unpacking rgba rows instead of rects")

Signed-off-by: Axel Davy <davyaxel0@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12315>
src/util/format/u_format.c