summaryrefslogtreecommitdiffstats
path: root/src/broadcom/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'src/broadcom/compiler')
-rw-r--r--src/broadcom/compiler/vir_to_qpu.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/broadcom/compiler/vir_to_qpu.c b/src/broadcom/compiler/vir_to_qpu.c
index 60d39063d53..c66bb84b3fc 100644
--- a/src/broadcom/compiler/vir_to_qpu.c
+++ b/src/broadcom/compiler/vir_to_qpu.c
@@ -241,6 +241,10 @@ v3d_generate_code_block(struct v3d_compile *c,
src[i] = temp_registers[index];
break;
case QFILE_UNIF:
+ /* XXX perf: If the last ldunif we emitted was
+ * the same uniform value, skip it. Common
+ * for multop/umul24 sequences.
+ */
if (!emitted_ldunif) {
new_ldunif_instr(qinst, i);
c->num_uniforms++;