mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-12 01:20:17 +01:00
nv50/ir: Fix scratch allocation size and file
Signed-off-by: Pierre Moreau <pierre.morrow@free.fr> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
da5d4583e5
commit
0d3051f75a
2 changed files with 3 additions and 3 deletions
|
|
@ -407,7 +407,7 @@ BuildUtil::loadImm(Value *dst, float f)
|
|||
Value *
|
||||
BuildUtil::loadImm(Value *dst, double d)
|
||||
{
|
||||
return mkOp1v(OP_MOV, TYPE_F64, dst ? dst : getScratch(), mkImm(d));
|
||||
return mkOp1v(OP_MOV, TYPE_F64, dst ? dst : getScratch(8), mkImm(d));
|
||||
}
|
||||
|
||||
Value *
|
||||
|
|
@ -499,7 +499,7 @@ BuildUtil::DataArray::acquire(ValueMap &m, int i, int c)
|
|||
|
||||
return v;
|
||||
} else {
|
||||
return up->getScratch();
|
||||
return up->getScratch(eltSize, file);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -295,7 +295,7 @@ BuildUtil::mkOp3v(operation op, DataType ty, Value *dst,
|
|||
inline LValue *
|
||||
BuildUtil::mkLoadv(DataType ty, Symbol *mem, Value *ptr)
|
||||
{
|
||||
LValue *dst = getScratch();
|
||||
LValue *dst = getScratch(typeSizeof(ty));
|
||||
mkLoad(ty, dst, mem, ptr);
|
||||
return dst;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue