Mesa (master): v3d: Drop the old class bits splitting up the accumulators.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Mar 5 20:59:01 UTC 2019


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

Author: Eric Anholt <eric at anholt.net>
Date:   Tue Feb 26 09:13:43 2019 -0800

v3d: Drop the old class bits splitting up the accumulators.

This seems to be left over from vc4, and I don't use them any more.

---

 src/broadcom/compiler/vir_register_allocate.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/src/broadcom/compiler/vir_register_allocate.c b/src/broadcom/compiler/vir_register_allocate.c
index 78f59f84744..112d4e058ef 100644
--- a/src/broadcom/compiler/vir_register_allocate.c
+++ b/src/broadcom/compiler/vir_register_allocate.c
@@ -379,9 +379,7 @@ node_to_temp_priority(const void *in_a, const void *in_b)
 }
 
 #define CLASS_BIT_PHYS			(1 << 0)
-#define CLASS_BIT_R0_R2			(1 << 1)
-#define CLASS_BIT_R3			(1 << 2)
-#define CLASS_BIT_R4			(1 << 3)
+#define CLASS_BIT_ACC			(1 << 1)
 
 /**
  * Returns a mapping from QFILE_TEMP indices to struct qpu_regs.
@@ -448,7 +446,7 @@ v3d_register_allocate(struct v3d_compile *c, bool *spilled)
          * incrementally remove bits that the temp definitely can't be in.
          */
         memset(class_bits,
-               CLASS_BIT_PHYS | CLASS_BIT_R0_R2 | CLASS_BIT_R3 | CLASS_BIT_R4,
+               CLASS_BIT_PHYS | CLASS_BIT_ACC,
                sizeof(class_bits));
 
         int ip = 0;
@@ -551,9 +549,7 @@ v3d_register_allocate(struct v3d_compile *c, bool *spilled)
                                           c->compiler->reg_class_phys[thread_index]);
                 } else {
                         assert(class_bits[i] == (CLASS_BIT_PHYS |
-                                                 CLASS_BIT_R0_R2 |
-                                                 CLASS_BIT_R3 |
-                                                 CLASS_BIT_R4));
+                                                 CLASS_BIT_ACC));
                         ra_set_node_class(g, temp_to_node[i],
                                           c->compiler->reg_class_phys_or_acc[thread_index]);
                 }




More information about the mesa-commit mailing list