mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
nv50/ir/ra: Fix argument const-ness in RegisterSet::idToUnits and idToBytes
This commit is contained in:
parent
5959d4247a
commit
49ded0e132
1 changed files with 2 additions and 2 deletions
|
|
@ -61,11 +61,11 @@ public:
|
||||||
return size >> unit[f];
|
return size >> unit[f];
|
||||||
}
|
}
|
||||||
// for regs of size >= 4, id is counted in 4-byte words (like nv50/c0 binary)
|
// 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);
|
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));
|
return units(v->reg.file, idToBytes(v));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue