aboutsummaryrefslogtreecommitdiffstats
path: root/src/broadcom
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2018-12-20 12:00:34 -0800
committerEric Anholt <[email protected]>2018-12-29 13:52:09 -0800
commit9ec6a3d621cbf928fc330bc23fea99f2c3cbe3bd (patch)
treebf63314a62e495fb2f5002936e4554be3928d78e /src/broadcom
parent133a5b838306e25b469cc514ba2ea92b4e6ce4b5 (diff)
v3d: Fix uniform pretty printing assertion failure with branches.
Fixes: 248a7fb392ba ("v3d: Do uniform pretty-printing in the QPU dump.")
Diffstat (limited to 'src/broadcom')
-rw-r--r--src/broadcom/compiler/vir_to_qpu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/broadcom/compiler/vir_to_qpu.c b/src/broadcom/compiler/vir_to_qpu.c
index 0ab0f26c953..60d39063d53 100644
--- a/src/broadcom/compiler/vir_to_qpu.c
+++ b/src/broadcom/compiler/vir_to_qpu.c
@@ -366,6 +366,9 @@ reads_uniform(const struct v3d_device_info *devinfo, uint64_t instruction)
return true;
}
+ if (qpu.type == V3D_QPU_INSTR_TYPE_BRANCH)
+ return true;
+
if (qpu.type == V3D_QPU_INSTR_TYPE_ALU) {
if (qpu.alu.add.magic_write &&
v3d_qpu_magic_waddr_loads_unif(qpu.alu.add.waddr)) {