nir: Add nir_intrinsic_texture_base_agx sysval
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Fri, 9 Sep 2022 20:59:56 +0000 (16:59 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 13 Sep 2022 16:04:28 +0000 (16:04 +0000)
commit7371803f14569e54c1d918d1937bc70d30b844e4
tree5b4c003f52971c4d66b3cd04d4954e301fd843fb
parentef75dbfddd0bd819e44ef03b043716678ebb9c8f
nir: Add nir_intrinsic_texture_base_agx sysval

For non-bindless textures, get the base address of the texture
descriptor array, so we can crawl descriptors in the shader. For
bindless, this isn't needed (since the bindless handle will be the
address itself).

jekstrand suggested the idea of the descriptor crawl. It worked out
pretty well, all considered.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18525>
src/compiler/nir/nir_intrinsics.py