From 9c6b922fe1b63774036dfa3996a57cb31b090401 Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Tue, 23 Apr 2024 16:12:22 +0200 Subject: [PATCH] panvk: Prevent re-emission of image attributes used in vertex shaders When we fill the image attributes of a VS attribute table, we shouldn't have to re-emit those image attributes for the fragment shader. Make sure we update img.{attrib_bufs,attribs} to prevent that. Signed-off-by: Boris Brezillon Reviewed-by: Mary Guillemard Acked-by: Erik Faye-Lund Part-of: --- src/panfrost/vulkan/panvk_vX_cmd_buffer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/panfrost/vulkan/panvk_vX_cmd_buffer.c b/src/panfrost/vulkan/panvk_vX_cmd_buffer.c index 97e5962acfd..546c215a675 100644 --- a/src/panfrost/vulkan/panvk_vX_cmd_buffer.c +++ b/src/panfrost/vulkan/panvk_vX_cmd_buffer.c @@ -969,6 +969,8 @@ panvk_draw_prepare_vs_attribs(struct panvk_cmd_buffer *cmdbuf, bufs.cpu + bufs_offset, attribs.cpu + attribs_offset, pipeline->state.vs.attribs.buf_count * 2); + desc_state->img.attrib_bufs = bufs.gpu + bufs_offset; + desc_state->img.attribs = attribs.gpu + attribs_offset; } /* A NULL entry is needed to stop prefecting on Bifrost */