radeonsi: fix an NGG streamout hang with monolithic shaders
authorMarek Olšák <marek.olsak@amd.com>
Sun, 5 Jun 2022 10:00:22 +0000 (06:00 -0400)
committerMarge Bot <emma+marge@anholt.net>
Sat, 11 Jun 2022 11:14:16 +0000 (11:14 +0000)
commitfc392ff104d688bc30b36cd0b4ef0587750f3194
treebedffc05cba20229a8f167b71f35fa10743b8b32
parenta9f7744cfef6edb7360bcaead1abbf99379f5580
radeonsi: fix an NGG streamout hang with monolithic shaders

ac_llvm_add_target_dep_function_attr has no effect if the function is
inlined.

amdgpu-gds-size determines m0 for ds_sub_u32 gds, which hangs if it's 0.

This helps both gfx10 and gfx11, though it will only be used by gfx11
after we enable streamout.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16885>
src/gallium/drivers/radeonsi/gfx10_shader_ngg.c
src/gallium/drivers/radeonsi/si_shader_llvm.c