nouveau/nir: image_samples/size don't have coordinates
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Wed, 3 May 2023 14:46:55 +0000 (09:46 -0500)
committerMarge Bot <emma+marge@anholt.net>
Wed, 3 May 2023 19:52:09 +0000 (19:52 +0000)
commitd1e565a8ebf4eb06bd3047b403a27f94d22c7062
tree00d012209a177e49b0af44a383b80da359a7ac42
parentf4be2e3437ce12d9860d3c8d8c8702cc108b97d7
nouveau/nir: image_samples/size don't have coordinates

Without this, it treats the src[1] as a coordinate (it's actually LOD)
and may try to read more than one component.  I don't think this usually
hurts anything as the coordinate should get ignored later but it can
result in OOB memory reads while translating NIR.

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