mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
nv50/ir: 64-bit splitting fixes
Take reading shader outputs into account, and use setFlagsDef for the carry since we rely on having i->flagsDef being set. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
c0b66d96d7
commit
daa0fd7843
1 changed files with 2 additions and 1 deletions
|
|
@ -615,6 +615,7 @@ BuildUtil::split64BitOpPostRA(Function *fn, Instruction *i,
|
|||
case FILE_MEMORY_CONST:
|
||||
case FILE_MEMORY_SHARED:
|
||||
case FILE_SHADER_INPUT:
|
||||
case FILE_SHADER_OUTPUT:
|
||||
hi->getSrc(s)->reg.data.offset += 4;
|
||||
break;
|
||||
default:
|
||||
|
|
@ -625,7 +626,7 @@ BuildUtil::split64BitOpPostRA(Function *fn, Instruction *i,
|
|||
}
|
||||
}
|
||||
if (srcNr == 2) {
|
||||
lo->setDef(1, carry);
|
||||
lo->setFlagsDef(1, carry);
|
||||
hi->setFlagsSrc(hi->srcCount(), carry);
|
||||
}
|
||||
return hi;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue