mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 23:30:10 +01:00
nir_gather_output_deps: Fix incorrect enum in switch
Cc: mesa-stable Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35247>
This commit is contained in:
parent
f29d939824
commit
f0dde6ca7f
1 changed files with 4 additions and 4 deletions
|
|
@ -376,6 +376,10 @@ nir_gather_input_to_output_dependencies(nir_shader *nir,
|
|||
|
||||
for (unsigned i = 0; i < num_instr; i++) {
|
||||
nir_instr *instr = deps.output[out].instr_list[i];
|
||||
if (instr->type == nir_instr_type_tex) {
|
||||
if (!nir_tex_instr_is_query(nir_instr_as_tex(instr)))
|
||||
out_deps->output[out].uses_image_reads = true;
|
||||
}
|
||||
if (instr->type != nir_instr_type_intrinsic)
|
||||
continue;
|
||||
|
||||
|
|
@ -396,10 +400,6 @@ nir_gather_input_to_output_dependencies(nir_shader *nir,
|
|||
}
|
||||
break;
|
||||
}
|
||||
case nir_instr_type_tex:
|
||||
if (!nir_tex_instr_is_query(nir_instr_as_tex(instr)))
|
||||
out_deps->output[out].uses_image_reads = true;
|
||||
break;
|
||||
default: {
|
||||
const char *name = nir_intrinsic_infos[intr->intrinsic].name;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue