From: Francisco Jerez Date: Mon, 30 Apr 2012 13:13:07 +0000 (+0200) Subject: nv50/ir/ra: Fix RegisterSet::occupy(const Value *v). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fe17d8a7c01c65e059a1edd13938f73ad2d9f025;p=mesa.git nv50/ir/ra: Fix RegisterSet::occupy(const Value *v). --- diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir_ra.cpp b/src/gallium/drivers/nv50/codegen/nv50_ir_ra.cpp index 8c79c9a6260..149e4e1a38e 100644 --- a/src/gallium/drivers/nv50/codegen/nv50_ir_ra.cpp +++ b/src/gallium/drivers/nv50/codegen/nv50_ir_ra.cpp @@ -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