nir: Handle other variants of image_samples properly while lowering
authorSagar Ghuge <sagar.ghuge@intel.com>
Wed, 1 Feb 2023 23:44:48 +0000 (15:44 -0800)
committerMarge Bot <emma+marge@anholt.net>
Thu, 2 Feb 2023 21:40:45 +0000 (21:40 +0000)
commit0ec352216331976763e0ce425ba9a18536f53b54
treeef80e56c645e85e2edf59878e35806d9c88bd812
parent6f4b375c94868099cf413f50183270a68b8c6c3b
nir: Handle other variants of image_samples properly while lowering

while lowering image_samples to one, we need to take
nir_intrinsic_image_deref_samples and
nir_intrinsic_bindless_image_samples intrinsic into account.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8211

Fixes: ab4c2990ed4 ("intel/compiler: use lower_image_samples_to_one")
Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21053>
src/compiler/nir/nir_lower_image.c