mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-27 09:12:46 +01:00
shader_decode: Fixup XMAD
This commit is contained in:
parent
170c8212bb
commit
1c9c4eefeb
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ u32 ShaderIR::DecodeXmad(BasicBlock& bb, const BasicBlock& code, u32 pc) {
|
||||||
// TODO(Rodrigo): Use an appropiate sign for this operation
|
// TODO(Rodrigo): Use an appropiate sign for this operation
|
||||||
Node product = Operation(OperationCode::IMul, NO_PRECISE, op_a, op_b);
|
Node product = Operation(OperationCode::IMul, NO_PRECISE, op_a, op_b);
|
||||||
if (instr.xmad.product_shift_left) {
|
if (instr.xmad.product_shift_left) {
|
||||||
product = Operation(OperationCode::ILogicalShiftLeft, NO_PRECISE, op_a, Immediate(16));
|
product = Operation(OperationCode::ILogicalShiftLeft, NO_PRECISE, product, Immediate(16));
|
||||||
}
|
}
|
||||||
|
|
||||||
op_c = [&]() {
|
op_c = [&]() {
|
||||||
|
|
Loading…
Reference in a new issue