OSDN Git Service

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)
committerDylan Baker <dylan@pnwbakers.com>
Mon, 3 Feb 2020 16:31:30 +0000 (08:31 -0800)
commitb3b73643cac771a3edffd3afbbe32c70def44aa9
tree4236a980997a3951dba31751f8f32fc1f324345e
parente88a9cc1c07d16d0572f103912777b441489ed34
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>
(cherry picked from commit 951083768b351b0700bdcc02758670e505cce974)
.pick_status.json
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c