projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b367574
)
v3d: Add a note for a potential performance win on multop/umul24.
author
Eric Anholt
<eric@anholt.net>
Wed, 26 Dec 2018 20:54:58 +0000
(12:54 -0800)
committer
Eric Anholt
<eric@anholt.net>
Sun, 30 Dec 2018 16:05:11 +0000
(08:05 -0800)
Noticed while debugging a testcase.
src/broadcom/compiler/vir_to_qpu.c
patch
|
blob
|
history
diff --git
a/src/broadcom/compiler/vir_to_qpu.c
b/src/broadcom/compiler/vir_to_qpu.c
index
60d3906
..
c66bb84
100644
(file)
--- 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++;