v3dv: fix swap_rb and channel_reverse flags in image views
authorIago Toral Quiroga <itoral@igalia.com>
Mon, 5 Sep 2022 11:18:39 +0000 (13:18 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 6 Sep 2022 06:33:38 +0000 (06:33 +0000)
commit565b388acf9843126f8a7e05ed42c1b17e6eed81
tree497575183e4604282425926f2367725179a10efc
parent26024e97015dadaae4cd03084ac0cad450b0bf3e
v3dv: fix swap_rb and channel_reverse flags in image views

We were computing these from the final swizzle resulting from
combining the format swizzle and the view swizzle, but here we
want to use the format swizzle alone, which is the one we
use to define these properties in the format table.

Fixes CTS test fails with EXT_border_color_swizzle.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18416>
src/broadcom/vulkan/v3dv_image.c