mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 13:30:12 +01:00
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:
parent
0d0b949cd7
commit
aa1f00cf5c
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue