radv/winsys: set IB flags prior to submit in the sysmem path
authorFlorian Will <florian.will@gmail.com>
Mon, 27 Jan 2020 09:30:21 +0000 (10:30 +0100)
committerFlorian Will <florian.will@gmail.com>
Mon, 27 Jan 2020 10:53:22 +0000 (11:53 +0100)
commit951083768b351b0700bdcc02758670e505cce974
tree6f8e50a22432a2f0bba45a6083cef85ff159c672
parent90312de551dc3d4a14e9e4c084d99d5bdae6f599
radv/winsys: set IB flags prior to submit in the sysmem path

This fixes missing scene objects in ZUSI 3 + dxvk. Index / vertex buffer
upload using thousands of CopyBuffer commands in one huge Vulkan command
buffer, mixed with lots of render pass begin/end and draw calls, failed
for some of the buffers.

radv divides the huge command buffer into 3 IBs, and they had random
flags set because the field was uninitialized. Maybe IBs got discarded
if they had the PREAMBLE bit set.

Signed-off-by: Florian Will <florian.will@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Cc: <mesa-stable@lists.freedesktop.org>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3577>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3577>
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c