radeonsi: skip instance_count==0 draws on <= GFX9
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Mon, 14 Jun 2021 07:53:45 +0000 (09:53 +0200)
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Fri, 18 Jun 2021 07:18:47 +0000 (09:18 +0200)
commit66dbd16f38e6acccb9ba3ba02d0f9bbb18e4e3b1
treef578c88046c06737cc0cc3e2b820fc47604b1915
parent2624765e66efbedd65841a11d68d3bd4a3baccbe
radeonsi: skip instance_count==0 draws on <= GFX9

This changes seems to prevent a hang, at least on Renoir chips.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4866
Cc: mesa-stable
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11356>
src/gallium/drivers/radeonsi/si_state_draw.cpp