nir/gather_info: handle uses_fbfetch_output for texture operations

Like nir_texop_txf_ms.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30109>
This commit is contained in:
Samuel Pitoiset 2024-07-10 18:27:25 +02:00 committed by Marge Bot
parent 0d0b949cd7
commit aa1f00cf5c

View file

@ -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;