rsx/cfg: Fix grouping barrier16 instructions when lane is shared.

This commit is contained in:
kd-11 2025-12-07 21:36:27 +03:00 committed by kd-11
parent 4183d09a52
commit 81d657a960

View File

@ -161,10 +161,11 @@ namespace rsx::assembler::FP
const u32 src_reg_id = reg.reg.id / 2;
const bool is_odd_reg = !!(reg.reg.id & 1);
const bool is_odd_ch = !!(ch & 1);
const bool is_word0 = ch < 2;
// If we're a non-odd register, we should also write the next channel (y/w)
if (!is_odd_reg && (mask & 2))
// If we're an even channel, we should also write the next channel (y/w)
if (!is_odd_ch && (mask & 2))
{
mask >>= 1;
++ch;