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>
util_format_compose_swizzles(format_swizzle, image_view_swizzle,
iview->swizzle);
- iview->swap_rb = v3dv_format_swizzle_needs_rb_swap(iview->swizzle);
- iview->channel_reverse = v3dv_format_swizzle_needs_reverse(iview->swizzle);
+ iview->swap_rb = v3dv_format_swizzle_needs_rb_swap(format_swizzle);
+ iview->channel_reverse = v3dv_format_swizzle_needs_reverse(format_swizzle);
v3dv_X(device, pack_texture_shader_state)(device, iview);