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>
This commit is contained in:
committed by
Marge Bot
parent
26024e9701
commit
565b388acf
@@ -571,8 +571,8 @@ create_image_view(struct v3dv_device *device,
|
||||
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user