From 6e6cd3eb3a4eb10786edb88c61092500567f6329 Mon Sep 17 00:00:00 2001 From: Matt Coster Date: Tue, 16 May 2023 09:22:39 +0100 Subject: [PATCH] pvr: Use correct surface for deferred RTA clear Signed-off-by: Matt Coster Reported-by: James Glanville Reviewed-by: Karmjit Mahil Part-of: --- src/imagination/vulkan/pvr_blit.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/imagination/vulkan/pvr_blit.c b/src/imagination/vulkan/pvr_blit.c index 9d93696..23cee29 100644 --- a/src/imagination/vulkan/pvr_blit.c +++ b/src/imagination/vulkan/pvr_blit.c @@ -1733,14 +1733,6 @@ static VkResult pvr_add_deferred_rta_clear(struct pvr_cmd_buffer *cmd_buffer, */ *transfer_cmd = (struct pvr_transfer_cmd){ .flags = PVR_TRANSFER_CMD_FLAGS_FILL, - .source_count = 1, - .sources = { - [0] = { - .filter = PVR_FILTER_POINT, - .resolve_op = PVR_RESOLVE_BLEND, - .addr_mode = PVRX(TEXSTATE_ADDRMODE_CLAMP_TO_EDGE), - }, - }, .cmd_buffer = cmd_buffer, }; @@ -1757,7 +1749,7 @@ static VkResult pvr_add_deferred_rta_clear(struct pvr_cmd_buffer *cmd_buffer, } pvr_setup_transfer_surface(cmd_buffer->device, - &transfer_cmd->sources[0].surface, + &transfer_cmd->dst, &transfer_cmd->scissor, image, base_layer + i, -- 2.7.4