r600/sfn: lower undef to zero
authorGert Wollny <gert.wollny@collabora.com>
Thu, 21 Jul 2022 11:36:49 +0000 (13:36 +0200)
committerMarge Bot <emma+marge@anholt.net>
Sat, 23 Jul 2022 13:10:45 +0000 (13:10 +0000)
commit233f246bdf88ad81cfbccbcef033d02f98e81be9
tree110e508e439c7add56e6092920e6d01f94b6446f
parent982effcd4ea5cf9566f97951ab191411c77f37f0
r600/sfn: lower undef to zero

It's what the backend would do anyway, so let's do it in nir and
give the optimizer some chance to profit from possible improvements.

Fixes a bad shader with "The Raven Remastered"

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17678>
src/gallium/drivers/r600/sfn/sfn_nir.cpp