radv: Skip setting empty index buffers to avoid hang
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 30 Jan 2022 00:54:12 +0000 (01:54 +0100)
committerMarge Bot <emma+marge@anholt.net>
Fri, 15 Jul 2022 14:45:13 +0000 (14:45 +0000)
commit82c2e99102343f1538ae2ccdb15a0747d9510ca3
tree82db20ade496ee92655811fcd269aa3bc28d56e2
parentf27f06d72cf6f2b79cd4fbb96dd5adc408df3719
radv: Skip setting empty index buffers to avoid hang

In the direct path we already skipped draws, but in DGC I noticed
that just emitting these packets can cause issues ...

Cc: mesa-stable
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17269>
src/amd/vulkan/radv_cmd_buffer.c