nv50/ir/ra: Fix RegisterSet::occupy(const Value *v).
authorFrancisco Jerez <currojerez@riseup.net>
Mon, 30 Apr 2012 13:13:07 +0000 (15:13 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Tue, 12 Mar 2013 11:55:33 +0000 (12:55 +0100)
src/gallium/drivers/nv50/codegen/nv50_ir_ra.cpp

index 8c79c9a62609f47d22f7bcdd8a23345a44d41de6..149e4e1a38e88e52bafdc9bdbd9e8cabcdea8f2f 100644 (file)
@@ -157,7 +157,7 @@ RegisterSet::assign(int32_t& reg, DataFile f, unsigned int size)
 bool
 RegisterSet::occupy(const Value *v)
 {
-   return occupy(v->reg.file, v->reg.data.id, v->reg.size >> unit[v->reg.file]);
+   return occupy(v->reg.file, idToUnits(v), v->reg.size >> unit[v->reg.file]);
 }
 
 void