vc4: We can now move TEX_RESULT accesses across other r4 ops.
authorEric Anholt <eric@anholt.net>
Thu, 6 Aug 2015 03:11:07 +0000 (20:11 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 21 Aug 2015 06:40:16 +0000 (23:40 -0700)
No difference on shader-db.

src/gallium/drivers/vc4/vc4_opt_vpm_writes.c

index e04f02859d502586fdc66feccdc81ce336fd709b..fc7d4aa025aa28f2dff7cb753d94bc90a21fc022 100644 (file)
@@ -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.
                  */