nouveau/nir: Allow up to 6 nested joins
authorM Henning <drawoc@darkrefraction.com>
Tue, 8 Feb 2022 06:00:02 +0000 (01:00 -0500)
committerMarge Bot <emma+marge@anholt.net>
Fri, 15 Apr 2022 01:22:03 +0000 (01:22 +0000)
commit9da14a21193425dfb02d620e3da7eed954119b68
tree52c03a98a5fbb66a40a1360878c26d16d7b05801
parent0c4d1762dedd5a132c155d721d00a8f6ffcd255d
nouveau/nir: Allow up to 6 nested joins

This matches what the tgsi path does and doesn't regress any tests. (For
comparison, unlimited join nesting does regress tests in deqp and piglit)

Fixes graphical artifacts from stack overflows in
https://www.shadertoy.com/view/Xds3zN
with nir on kepler

Reviewed-by: Emma Anholt <emma@anholt.net>
Acked-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15597>
src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp