nv50/ir: print relevant file's bitset when showing RA info
authorIlia Mirkin <imirkin@alum.mit.edu>
Tue, 31 May 2016 04:33:19 +0000 (00:33 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Wed, 1 Jun 2016 03:25:50 +0000 (23:25 -0400)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp

index 6b52d7b4d33d98ec3f16003ac947f60c8fcf0856..5bb6f7849b1709811b7e07117a4b5b133caaf8bd 100644 (file)
@@ -101,7 +101,7 @@ public:
       return (size < 4) ? u : ((u << unit[f]) / 4);
    }
 
-   void print() const;
+   void print(DataFile f) const;
 
    const bool restrictedGPR16Range;
 
@@ -156,10 +156,10 @@ RegisterSet::intersect(DataFile f, const RegisterSet *set)
 }
 
 void
-RegisterSet::print() const
+RegisterSet::print(DataFile f) const
 {
    INFO("GPR:");
-   bits[FILE_GPR].print();
+   bits[f].print();
    INFO("\n");
 }
 
@@ -1424,7 +1424,7 @@ GCRA::selectRegisters()
          continue;
       LValue *lval = node->getValue();
       if (prog->dbgFlags & NV50_IR_DEBUG_REG_ALLOC)
-         regs.print();
+         regs.print(node->f);
       bool ret = regs.assign(node->reg, node->f, node->colors);
       if (ret) {
          INFO_DBG(prog->dbgFlags, REG_ALLOC, "assigned reg %i\n", node->reg);