radv: fix draw calls with 0-sized index buffers and robustness on NAVI10
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 22 Feb 2023 16:56:03 +0000 (17:56 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 28 Feb 2023 14:12:29 +0000 (14:12 +0000)
commitc356f1b4edc942f8c62125d01b7ddb886b72bbb7
tree0954ae1de782aded17311a69995aaea1a5a6d61a
parentb1c19498c642d190181e26c4fd1850aeb5c26ade
radv: fix draw calls with 0-sized index buffers and robustness on NAVI10

The correct workaround is to bind an internal index buffer to handle
robustness2 correctly.

Fixes dEQP-VK.robustness.index_access.* in CTS 1.3.5.0 on NAVI10.

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