From aa1f00cf5cb39c26fe5c8986179646b37cae0cc9 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Wed, 10 Jul 2024 18:27:25 +0200 Subject: [PATCH] nir/gather_info: handle uses_fbfetch_output for texture operations Like nir_texop_txf_ms. Signed-off-by: Samuel Pitoiset Part-of: --- src/compiler/nir/nir_gather_info.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/compiler/nir/nir_gather_info.c b/src/compiler/nir/nir_gather_info.c index 1381098dc8b..29ba638374f 100644 --- a/src/compiler/nir/nir_gather_info.c +++ b/src/compiler/nir/nir_gather_info.c @@ -867,6 +867,11 @@ gather_tex_info(nir_tex_instr *instr, nir_shader *shader) nir_tex_instr_src_index(instr, nir_tex_src_sampler_handle) != -1) shader->info.uses_bindless = true; + if (!nir_tex_instr_is_query(instr) && + (instr->sampler_dim == GLSL_SAMPLER_DIM_SUBPASS || + instr->sampler_dim == GLSL_SAMPLER_DIM_SUBPASS_MS)) + shader->info.fs.uses_fbfetch_output = true; + switch (instr->op) { case nir_texop_tg4: shader->info.uses_texture_gather = true;