v3d: Add a note for a potential performance win on multop/umul24.

Noticed while debugging a testcase.
This commit is contained in:
Eric Anholt 2018-12-26 12:54:58 -08:00
parent b36757448d
commit f9bdce9966
1 changed files with 4 additions and 0 deletions

View File

@ -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++;