Mesa (master): vc4: We can now move TEX_RESULT accesses across other r4 ops.

Eric Anholt anholt at kemper.freedesktop.org
Fri Aug 21 06:43:51 UTC 2015


Module: Mesa
Branch: master
Commit: ceb1a318424bf219eace29955ae473c1ccf9f8b8
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ceb1a318424bf219eace29955ae473c1ccf9f8b8

Author: Eric Anholt <eric at anholt.net>
Date:   Wed Aug  5 20:11:07 2015 -0700

vc4: We can now move TEX_RESULT accesses across other r4 ops.

No difference on shader-db.

---

 src/gallium/drivers/vc4/vc4_opt_vpm_writes.c |   16 ----------------
 1 file changed, 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 e04f028..fc7d4aa 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.
                  */




More information about the mesa-commit mailing list