ac/llvm: Cover runtime 0 in GFX10 gs_alloc_req workaround.
authorTimur Kristóf <timur.kristof@gmail.com>
Fri, 7 Apr 2023 22:22:18 +0000 (00:22 +0200)
committerMarge Bot <emma+marge@anholt.net>
Sat, 8 Apr 2023 13:54:06 +0000 (13:54 +0000)
commitba537ac25ad8c7edd38b8294d45db411a315228d
treeead5770a70498b7752c8c2ba57b532ea901c7089
parentc7da969f8fe1b78d2479623e2510e52827c3035a
ac/llvm: Cover runtime 0 in GFX10 gs_alloc_req workaround.

Previously, the workaround only covered compile-time zero, but
this is insufficient and can cause GPU hangs in RadeonSI when
NGG culling is enabled.

Fix this by handling runtime zero in the workaround.

Cc: mesa-stable
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22370>
src/amd/llvm/ac_llvm_build.c