mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 08:40:11 +01:00
nvc0/ir: fix overwriting of offset register with interpolateAtOffset
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: mesa-stable@lists.freedesktop.org
This commit is contained in:
parent
bc68aa42bd
commit
57a744025a
1 changed files with 2 additions and 2 deletions
|
|
@ -3015,8 +3015,8 @@ Converter::handleINTERP(Value *dst[4])
|
|||
// and then convert to s32.
|
||||
Value *offs[2];
|
||||
for (c = 0; c < 2; c++) {
|
||||
offs[c] = fetchSrc(1, c);
|
||||
mkOp2(OP_MIN, TYPE_F32, offs[c], offs[c], loadImm(NULL, 0.4375f));
|
||||
offs[c] = getScratch();
|
||||
mkOp2(OP_MIN, TYPE_F32, offs[c], fetchSrc(1, c), loadImm(NULL, 0.4375f));
|
||||
mkOp2(OP_MAX, TYPE_F32, offs[c], offs[c], loadImm(NULL, -0.5f));
|
||||
mkOp2(OP_MUL, TYPE_F32, offs[c], offs[c], loadImm(NULL, 4096.0f));
|
||||
mkCvt(OP_CVT, TYPE_S32, offs[c], TYPE_F32, offs[c]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue