radeonsi: don't use wave32 for GE on gfx10 if culling is used

This is a workaround for issue #6457: it fixes the rendering and
prevent the hang but I can't explain why.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6457
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16427>
This commit is contained in:
Pierre-Eric Pelloux-Prayer
2022-05-09 22:20:12 +02:00
committed by Marge Bot
parent f8d205c400
commit 1f31564607
@@ -114,8 +114,11 @@ unsigned si_determine_wave_size(struct si_screen *sscreen, struct si_shader *sha
/* There are a few very rare cases where VS is better with Wave32, and there are no known
* cases where Wave64 is better.
* Wave32 is disabled for GFX10 when culling is active as a workaround for #6457. I don't
* know why this helps.
*/
if (stage <= MESA_SHADER_GEOMETRY)
if (stage <= MESA_SHADER_GEOMETRY &&
!(sscreen->info.chip_class == GFX10 && shader && shader->key.ge.opt.ngg_culling))
return 32;
/* TODO: Merged shaders must use the same wave size because the driver doesn't recompile