aboutsummaryrefslogtreecommitdiffstats
path: root/src/freedreno/ir3/ir3_depth.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/freedreno/ir3/ir3_depth.c')
-rw-r--r--src/freedreno/ir3/ir3_depth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/freedreno/ir3/ir3_depth.c b/src/freedreno/ir3/ir3_depth.c
index 59ea3af407b..135d4365d2e 100644
--- a/src/freedreno/ir3/ir3_depth.c
+++ b/src/freedreno/ir3/ir3_depth.c
@@ -114,7 +114,7 @@ remove_unused_by_block(struct ir3_block *block)
/* tex (cat5) instructions have a writemask, so we can
* mask off unused components. Other instructions do not.
*/
- if (is_tex(src) && (src->regs[0]->wrmask > 1)) {
+ if (is_tex_or_prefetch(src) && (src->regs[0]->wrmask > 1)) {
src->regs[0]->wrmask &= ~(1 << instr->split.off);
/* prune no-longer needed right-neighbors. We could