diff options
author | Eric Anholt <[email protected]> | 2015-08-05 20:11:07 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2015-08-20 23:40:16 -0700 |
commit | ceb1a318424bf219eace29955ae473c1ccf9f8b8 (patch) | |
tree | 1d141f68f8c4a729c526d2593476724ed11a04e5 /src/gallium/drivers/vc4 | |
parent | ad89748541159968787dce02bb9c19d9367fddc6 (diff) |
vc4: We can now move TEX_RESULT accesses across other r4 ops.
No difference on shader-db.
Diffstat (limited to 'src/gallium/drivers/vc4')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_opt_vpm_writes.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/gallium/drivers/vc4/vc4_opt_vpm_writes.c b/src/gallium/drivers/vc4/vc4_opt_vpm_writes.c index e04f02859d5..fc7d4aa025a 100644 --- a/src/gallium/drivers/vc4/vc4_opt_vpm_writes.c +++ b/src/gallium/drivers/vc4/vc4_opt_vpm_writes.c @@ -79,22 +79,6 @@ qir_opt_vpm_writes(struct vc4_compile *c) continue; } - /* A QOP_TEX_RESULT destination is r4, so we can't move - * accesses to it past another QOP_TEX_RESULT which would - * update it. - */ - int src; - for (src = 0; src < qir_get_op_nsrc(inst->op); src++) { - if (inst->src[src].file == QFILE_TEMP) { - if (c->defs[inst->src[src].index]->op == - QOP_TEX_RESULT) { - break; - } - } - } - if (src != qir_get_op_nsrc(inst->op)) - continue; - /* Move the generating instruction to the end of the program * to maintain the order of the VPM writes. */ |