nir: adjust nir_tex_instr_need_sampler() for AMD FMASK instructions

These instructions don't need a sampler.

This doesn't fix anything now because this helper isn't unused yet, but
it will help for descriptor heap.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37720>
This commit is contained in:
Samuel Pitoiset
2025-10-06 18:49:38 +02:00
committed by Marge Bot
parent 84f26ed117
commit e868e8d946
+2
View File
@@ -3355,6 +3355,8 @@ nir_tex_instr_need_sampler(const nir_tex_instr *instr)
case nir_texop_samples_identical:
case nir_texop_descriptor_amd:
case nir_texop_image_min_lod_agx:
case nir_texop_fragment_mask_fetch_amd:
case nir_texop_fragment_fetch_amd:
return false;
default:
return true;