nouveau/nir: Use the address reg for indirect scratch access.
authorEmma Anholt <emma@anholt.net>
Sun, 5 Dec 2021 19:41:25 +0000 (11:41 -0800)
committerMarge Bot <emma+marge@anholt.net>
Tue, 7 Dec 2021 06:57:27 +0000 (06:57 +0000)
commit4b5692fa7185b1380c51247583e08feba0b2c6eb
tree5d697599b72c04b6df9e9e9982284a043bf6e65e
parentca16c271fa7b016714899c7dd92e0e7dd95c08e2
nouveau/nir: Use the address reg for indirect scratch access.

Fixes the dEQP regressions in dEQP-GLES2.functional.shaders.indexing.*.
TGSI used the address reg for these offsets too.

Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14083>
src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp