mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 21:08:11 +02:00
nak: Insert an OpNop after OpBar
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24998>
This commit is contained in:
parent
e111bfdb5c
commit
0177373e2d
2 changed files with 2 additions and 1 deletions
|
|
@ -1867,6 +1867,7 @@ impl<'a> ShaderFromNir<'a> {
|
|||
SCOPE_WORKGROUP => {
|
||||
if self.nir.info.stage() == MESA_SHADER_COMPUTE {
|
||||
b.push_op(OpBar {}).deps.yld = true;
|
||||
b.push_op(OpNop { label: None });
|
||||
}
|
||||
}
|
||||
_ => panic!("Unhandled execution scope"),
|
||||
|
|
|
|||
|
|
@ -4590,6 +4590,7 @@ impl Instr {
|
|||
| Op::CCtl(_)
|
||||
| Op::MemBar(_)
|
||||
| Op::Kill(_)
|
||||
| Op::Nop(_)
|
||||
| Op::Break(_)
|
||||
| Op::BSSy(_)
|
||||
| Op::BSync(_)
|
||||
|
|
@ -4601,7 +4602,6 @@ impl Instr {
|
|||
| Op::Out(_)
|
||||
| Op::OutFinal(_) => false,
|
||||
Op::BMov(op) => !op.clear,
|
||||
Op::Nop(op) => op.label.is_none(),
|
||||
_ => true,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue