radv/amdgpu: Set fallback submit request ip_type from the last CS.
authorTimur Kristóf <timur.kristof@gmail.com>
Thu, 21 Jul 2022 09:58:22 +0000 (11:58 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 20 Dec 2022 14:23:49 +0000 (14:23 +0000)
commitdfb89077b96c945691212948d000273dd8f54ccc
tree27288d1e7628d3cba042af05399d1772f41a2184
parente10b2f273e8a48a2db977469d30f6ed1014484c4
radv/amdgpu: Set fallback submit request ip_type from the last CS.

When using gang submit, the last IB is considered the "gang leader"
and its IP type will determine which fence to signal when the
submission is done. Therefore, use the last CS to set the IP type.

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/20010>
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c