r300: Anmesia the dark descent corruption
There is a heavy corruption in Amnesia with r300 driver. In game it looks like this: in menu it manifests as black walls.
This is a regression:
74c02d99b224fbc02132b54bf23e6ac1e117d805 is the first bad commit
commit 74c02d99b224fbc02132b54bf23e6ac1e117d805
Author: Emma Anholt <emma@anholt.net>
Date: Mon Jan 3 16:30:15 2022 -0800
nir_to_tgsi: Replace the NIR SSA liveness with TGSI reg-level liveness.
I can reproduce this with either RV530 or RV370. Apitrace here: Amnesia_NOSTEAM.bin.x86.trace, it goes just to the menu so that that the trace is not too big, but the problem is noticeable when looking at the wall behind the torch on the left. Correct rendering is a nicely illuminated wall, after 74c02d99 it is mostly black.
Obviously RADEON_DEBUG=use_tgsi
works around, other options like noopt
or notcl
have no effect.
CC @anholt