nak: Fix NAK_DEBUG=serial for warp barriers

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29591>
This commit is contained in:
Faith Ekstrand 2024-05-29 19:26:53 -05:00 committed by Marge Bot
parent 290cbf413c
commit 70b381e928
2 changed files with 5 additions and 5 deletions

View file

@ -532,7 +532,11 @@ impl Shader {
for b in &mut f.blocks.iter_mut().rev() {
let mut wt = 0_u8;
for instr in &mut b.instrs {
if instr.is_barrier() {
if matches!(&instr.op, Op::Bar(_))
|| matches!(&instr.op, Op::BClear(_))
|| matches!(&instr.op, Op::BSSy(_))
|| matches!(&instr.op, Op::BSync(_))
{
instr.deps.set_yield(true);
} else if instr.is_branch() {
instr.deps.add_wt_bar_mask(0x3f);

View file

@ -5563,10 +5563,6 @@ impl Instr {
matches!(self.op, Op::Bra(_) | Op::Exit(_))
}
pub fn is_barrier(&self) -> bool {
matches!(self.op, Op::Bar(_))
}
pub fn uses_global_mem(&self) -> bool {
match &self.op {
Op::Atom(op) => op.mem_space != MemSpace::Local,