diff options
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_opt_dead_code.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_opt_dead_code.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_opt_dead_code.c b/src/gallium/drivers/vc4/vc4_opt_dead_code.c index f08818adc95..d958dcb1075 100644 --- a/src/gallium/drivers/vc4/vc4_opt_dead_code.c +++ b/src/gallium/drivers/vc4/vc4_opt_dead_code.c @@ -63,7 +63,7 @@ qir_opt_dead_code(struct vc4_compile *c) if (inst->dst.file == QFILE_TEMP && !used[inst->dst.index] && - (!qir_has_side_effects(inst) || + (!qir_has_side_effects(c, inst) || inst->op == QOP_TEX_RESULT)) { if (inst->op == QOP_TEX_RESULT) { dce_tex = true; |