summaryrefslogtreecommitdiff
path: root/src/panfrost/bifrost/bir.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/panfrost/bifrost/bir.c')
-rw-r--r--src/panfrost/bifrost/bir.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/panfrost/bifrost/bir.c b/src/panfrost/bifrost/bir.c
index 78a2965b8a0..92e32f1bb45 100644
--- a/src/panfrost/bifrost/bir.c
+++ b/src/panfrost/bifrost/bir.c
@@ -107,6 +107,8 @@ bi_count_write_registers(const bi_instr *ins, unsigned d)
return bi_count_staging_registers(ins);
} else if (ins->op == BI_OPCODE_SEG_ADD_I64) {
return 2;
+ } else if (ins->op == BI_OPCODE_TEXC && d == 1) {
+ return ins->sr_count_2;
}
return 1;