tu: Get correct src view when storing gmem attachment

Fixes: a104a7ca1a
("tu: Handle non-identity GMEM swaps when resolving")

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33514>
This commit is contained in:
Danylo Piliaiev 2025-02-12 15:43:24 +01:00 committed by Marge Bot
parent 7b5efb4c0b
commit bdf0f61d4a

View file

@ -5161,7 +5161,7 @@ tu_store_gmem_attachment(struct tu_cmd_buffer *cmd,
struct tu_render_pass_attachment *dst = &cmd->state.pass->attachments[a];
const struct tu_image_view *dst_iview = cmd->state.attachments[a];
struct tu_render_pass_attachment *src = &cmd->state.pass->attachments[gmem_a];
const struct tu_image_view *src_iview = cmd->state.attachments[a];
const struct tu_image_view *src_iview = cmd->state.attachments[gmem_a];
const VkClearValue *clear_value = &cmd->state.clear_values[gmem_a];
bool resolve = a != gmem_a;
if (resolve)