radv: Split submission in winsys instead of radv_queue.
authorTimur Kristóf <timur.kristof@gmail.com>
Wed, 5 Apr 2023 22:13:34 +0000 (00:13 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 11 Apr 2023 17:05:03 +0000 (17:05 +0000)
commit958ea2ec2a328e5797eed9898995a04dd82e5f0e
tree7a1300f8aeae2e7fa3b29d011a13b86d13ede5a9
parent41a9bced313dded77693e9df10e5ccb18542320f
radv: Split submission in winsys instead of radv_queue.

This will still make it so that RADV_DEBUG=hang will only submit
one command buffer at a time, but otherwise let's pass all CS
objects into one submission and let the winsys split them if
necessary.

The winsys can do a better job at splitting them because
radv_queue has no knowledge of IBs and ignores chaining in the
splitting logic.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22354>
src/amd/vulkan/radv_queue.c
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c