mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
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 <boris.brezillon@collabora.com>
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28927>
This commit is contained in:
parent
936ebd3370
commit
9c6b922fe1
1 changed files with 2 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue