nak: Scalarize non-constant ald/ast on Kepler

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35190>
This commit is contained in:
Faith Ekstrand 2025-05-26 22:58:56 -04:00 committed by Marge Bot
parent f10c42fcc1
commit bfdc95b109

View file

@ -206,6 +206,13 @@ lower_vtg_io_intrin(nir_builder *b,
comps = 1;
assert(!(c_addr & 0x3));
/* Vector load/store with non-constant offsets don't work pre-Maxwell.
* They encode fine and they don't throw any shader exceptions but the
* seem to get stuck in the hardware and we get context timeouts.
*/
if (nak->sm < 50 && !offset_is_const)
comps = 1;
nir_def *c_offset = offset;
if (flags.phys) {
/* Physical addressing has to be scalar */