mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
nir/dead_cf: Call instructions aren't dead
When we inlined cf_node_has_side_effects into node_is_dead, all the conditions flipped and we forgot to flip one. Fortunately, it doesn't matter right now because no one uses this pass on shaders with more than one function. Fixes:b50465d197"nir/dead_cf: Inline cf_node_has_side_effects" Reviewed-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com> (cherry picked from commit8948048c6f)
This commit is contained in:
parent
c2a945771c
commit
a13bda4957
1 changed files with 1 additions and 1 deletions
|
|
@ -216,7 +216,7 @@ node_is_dead(nir_cf_node *node)
|
|||
|
||||
nir_foreach_instr(instr, block) {
|
||||
if (instr->type == nir_instr_type_call)
|
||||
return true;
|
||||
return false;
|
||||
|
||||
/* Return instructions can cause us to skip over other side-effecting
|
||||
* instructions after the loop, so consider them to have side effects
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue