mirror of
https://github.com/RPCS3/rsx_program_decompiler.git
synced 2024-11-23 10:09:54 +00:00
rsx_decompiler: completely ignore src swizzle mask if disable_swizzle_as_dst is set
This commit is contained in:
parent
c9052b874e
commit
faefcf8ec1
@ -522,11 +522,11 @@ namespace rsx
|
||||
|
||||
for (std::pair<int, int> channels : entry.second)
|
||||
{
|
||||
src_swizzle += src.swizzle(flags & disable_swizzle_as_dst ? channels.second : channels.first).mask[0];
|
||||
src_swizzle += src.swizzle(channels.first).mask[0];
|
||||
dst_swizzle += dest.swizzle(channels.second).mask[0];
|
||||
}
|
||||
|
||||
float_point_expr<4> expression{ src.with_mask(src_swizzle) };
|
||||
float_point_expr<4> expression{ (flags & disable_swizzle_as_dst)? src: src.with_mask(src_swizzle) };
|
||||
|
||||
if (!instruction.data.dst.no_dest)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user