From: Francisco Jerez Date: Mon, 30 Apr 2012 13:12:15 +0000 (+0200) Subject: nv50/ir/ra: Fix argument const-ness in RegisterSet::idToUnits and idToBytes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=49ded0e13216c686703e82de6e731561ba689145;p=mesa.git nv50/ir/ra: Fix argument const-ness in RegisterSet::idToUnits and idToBytes --- diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir_ra.cpp b/src/gallium/drivers/nv50/codegen/nv50_ir_ra.cpp index 9947c043b64..8c79c9a6260 100644 --- a/src/gallium/drivers/nv50/codegen/nv50_ir_ra.cpp +++ b/src/gallium/drivers/nv50/codegen/nv50_ir_ra.cpp @@ -61,11 +61,11 @@ public: return size >> unit[f]; } // for regs of size >= 4, id is counted in 4-byte words (like nv50/c0 binary) - inline unsigned int idToBytes(Value *v) const + inline unsigned int idToBytes(const Value *v) const { return v->reg.data.id * MIN2(v->reg.size, 4); } - inline unsigned int idToUnits(Value *v) const + inline unsigned int idToUnits(const Value *v) const { return units(v->reg.file, idToBytes(v)); }