Mesa (master): vc4: Don' t try to register coalesce into the VPM across non-raw MOVs.

Eric Anholt anholt at kemper.freedesktop.org
Sun Oct 25 01:54:34 UTC 2015


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

Author: Eric Anholt <eric at anholt.net>
Date:   Sat Oct 24 17:38:26 2015 -0700

vc4: Don't try to register coalesce into the VPM across non-raw MOVs.

No known bugs, just something I noticed while updating optimization code
for other changes.

---

 src/gallium/drivers/vc4/vc4_opt_vpm_writes.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/vc4/vc4_opt_vpm_writes.c b/src/gallium/drivers/vc4/vc4_opt_vpm_writes.c
index f2cdf8f..73ded76 100644
--- a/src/gallium/drivers/vc4/vc4_opt_vpm_writes.c
+++ b/src/gallium/drivers/vc4/vc4_opt_vpm_writes.c
@@ -58,7 +58,7 @@ qir_opt_vpm_writes(struct vc4_compile *c)
         }
 
         for (int i = 0; i < vpm_write_count; i++) {
-                if (vpm_writes[i]->op != QOP_MOV ||
+                if (!qir_is_raw_mov(vpm_writes[i]) ||
                     vpm_writes[i]->src[0].file != QFILE_TEMP) {
                         continue;
                 }




More information about the mesa-commit mailing list