nvk: Do not increment instance id across draws
authorGeorge Ouzounoudis <geothrock@gmail.com>
Wed, 9 Nov 2022 17:50:32 +0000 (19:50 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Aug 2023 21:32:02 +0000 (21:32 +0000)
commit0de4083544f88018e2c1fbdff7cc4e676df12e5c
treeb9a23ecb699c11384e46efecf817cb329d891d3e
parentff30b059173164373747d47548d1b7eb7ba01044
nvk: Do not increment instance id across draws

In cases of multiple draws (i.e. indirect draws) instance id should not
increment across draw boundaries. Use a local copy of "begin" to modify
the instance id inside the instances loop only.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
src/nouveau/vulkan/nvk_cmd_draw.c