mirror of
https://github.com/RPCS3/rsx_program_decompiler.git
synced 2025-04-12 02:16:39 +00:00
FP: Fixed move single constant
This commit is contained in:
parent
6db9567440
commit
aa6bcbc589
@ -491,15 +491,18 @@ namespace rsx
|
||||
if (instruction.data.dst.mask_z) condition_map[cond.mask[2]].push_back({ 2, channel_index++ });
|
||||
if (instruction.data.dst.mask_w) condition_map[cond.mask[3]].push_back({ 3, channel_index });
|
||||
|
||||
auto src = apply_instruction_modifiers(arg);
|
||||
float_point_expr<4> src;
|
||||
|
||||
if (flags & disable_swizzle_as_dst)
|
||||
{
|
||||
if (src.mask.size() != dest.mask.size())
|
||||
src.assign(float_point_expr<4>(arg.text, arg.mask, true, (int)dest.mask.size()));
|
||||
else
|
||||
src.assign(src.without_scope());
|
||||
src.assign(arg.without_scope());
|
||||
}
|
||||
else
|
||||
{
|
||||
src.assign(arg);
|
||||
}
|
||||
|
||||
src.assign(apply_instruction_modifiers(src));
|
||||
|
||||
for (auto &entry : condition_map)
|
||||
{
|
||||
|
@ -562,7 +562,7 @@ namespace shader_code
|
||||
|
||||
using sw = int[]; static_cast<void>(sw{ 0, (result += (result.empty() ? "" : ", ") + args.finalize(false), 0)...});
|
||||
|
||||
return{ std::string(NameType::name) + "(" + result + ")" };
|
||||
return{ std::string(NameType::name) + "(" + result + ")", true, return_type::count };
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user