mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
nak: Implement OpFSOut with an OpParCopy
This prevents ordering issues among the sources. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24998>
This commit is contained in:
parent
d6912622f5
commit
0943da1a37
1 changed files with 4 additions and 3 deletions
|
|
@ -2491,13 +2491,14 @@ impl Shader {
|
|||
}))]
|
||||
}
|
||||
Op::FSOut(out) => {
|
||||
let mut instrs = Vec::new();
|
||||
let mut pcopy = OpParCopy::new();
|
||||
for (i, src) in out.srcs.iter().enumerate() {
|
||||
let dst =
|
||||
RegRef::new(RegFile::GPR, i.try_into().unwrap(), 1);
|
||||
instrs.push(Instr::new_mov(dst.into(), *src));
|
||||
pcopy.srcs.push(*src);
|
||||
pcopy.dsts.push(dst.into());
|
||||
}
|
||||
instrs
|
||||
vec![Instr::new(Op::ParCopy(pcopy))]
|
||||
}
|
||||
_ => vec![instr],
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue