mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
HACK: Only emit OpBar in compute shaders
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24998>
This commit is contained in:
parent
611fe837bb
commit
498afcdb88
1 changed files with 3 additions and 1 deletions
|
|
@ -1774,7 +1774,9 @@ impl<'a> ShaderFromNir<'a> {
|
|||
SCOPE_NONE => (),
|
||||
SCOPE_WORKGROUP => {
|
||||
b.push_op(OpWarpSync { mask: u32::MAX });
|
||||
b.push_op(OpBar {}).deps.yld = true;
|
||||
if self.nir.info.stage() == MESA_SHADER_COMPUTE {
|
||||
b.push_op(OpBar {}).deps.yld = true;
|
||||
}
|
||||
}
|
||||
_ => panic!("Unhandled execution scope"),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue