From e868e8d946b0330b65494af26a33487ca77efa79 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Mon, 6 Oct 2025 18:49:38 +0200 Subject: [PATCH] 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 Part-of: --- src/compiler/nir/nir.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/compiler/nir/nir.c b/src/compiler/nir/nir.c index 4bb4e0534f8..28dd50f9d64 100644 --- a/src/compiler/nir/nir.c +++ b/src/compiler/nir/nir.c @@ -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;