r300: Unknown TGSI/RC opcode: USHR
This is one of the shader issues seen in #5966 (closed), but the main problem there is different so splitting into separate bug.
Somewhere on the nine->tgsi_to_nir->nir->nir_to_tgsi->r300
path USHR
opcodes are generated, even though we don't advertise integer support.
This can be reproduced with RV530 and any xbox game in Xbox emulator CXBX-R under wine with gallium nine. RADEON_DEBUG=fp,vp log: https://gitlab.freedesktop.org/mesa/mesa/uploads/c75dabca3b7d361cf592891aaa033a38/nine03022022RADEON_DEBUG_fp_vp.txt RADEON_DEBUG=fp,vp,use_tgsi log where everything compiles fine: https://gitlab.freedesktop.org/mesa/mesa/uploads/a8d7e599baa184d1d808dc6722e35fd4/nine03022022RADEON_DEBUG_fp_vp_use_tgsi.txt
apitraces to reproduce:
- Baldur's Gate Dark Alliance in CXBX-R: https://drive.google.com/file/d/1SqROaFvt7nkLus8EzTCj497K4ruaa4s2/view?usp=sharing
- Crash Tag Team Racing in CXBX-R: https://drive.google.com/file/d/1_DLIXcngcuEKtknG4d7b7JpEuLhZ5Aaw/view?usp=sharing
All provided by @lorn10
Could be related to #4602 (closed)
Works fine with RADEON_DEBUG=use_tgsi
. CC @anholt