mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-12-16 04:09:07 +00:00
rsx/cfg: Fix grouping barrier16 instructions when lane is shared.
This commit is contained in:
parent
4183d09a52
commit
81d657a960
@ -161,10 +161,11 @@ namespace rsx::assembler::FP
|
|||||||
|
|
||||||
const u32 src_reg_id = reg.reg.id / 2;
|
const u32 src_reg_id = reg.reg.id / 2;
|
||||||
const bool is_odd_reg = !!(reg.reg.id & 1);
|
const bool is_odd_reg = !!(reg.reg.id & 1);
|
||||||
|
const bool is_odd_ch = !!(ch & 1);
|
||||||
const bool is_word0 = ch < 2;
|
const bool is_word0 = ch < 2;
|
||||||
|
|
||||||
// If we're a non-odd register, we should also write the next channel (y/w)
|
// If we're an even channel, we should also write the next channel (y/w)
|
||||||
if (!is_odd_reg && (mask & 2))
|
if (!is_odd_ch && (mask & 2))
|
||||||
{
|
{
|
||||||
mask >>= 1;
|
mask >>= 1;
|
||||||
++ch;
|
++ch;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user