summaryrefslogtreecommitdiff
path: root/src/video_core
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2018-12-30 01:05:14 -0300
committerGravatar ReinUsesLisp2019-01-15 17:54:53 -0300
commit1c9c4eefeb1d40a9c0ca29c528e71ee1e918a967 (patch)
tree8bb2f3a97f90c31b961ac72c07b2083df84b7c5b /src/video_core
parentshader_ir: Pass to decoder functions basic block's code (diff)
downloadyuzu-1c9c4eefeb1d40a9c0ca29c528e71ee1e918a967.tar.gz
yuzu-1c9c4eefeb1d40a9c0ca29c528e71ee1e918a967.tar.xz
yuzu-1c9c4eefeb1d40a9c0ca29c528e71ee1e918a967.zip
shader_decode: Fixup XMAD
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/shader/decode/xmad.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/shader/decode/xmad.cpp b/src/video_core/shader/decode/xmad.cpp
index 3ceabecb5..9f2d636b8 100644
--- a/src/video_core/shader/decode/xmad.cpp
+++ b/src/video_core/shader/decode/xmad.cpp
@@ -55,7 +55,7 @@ u32 ShaderIR::DecodeXmad(BasicBlock& bb, const BasicBlock& code, u32 pc) {
55 // TODO(Rodrigo): Use an appropiate sign for this operation 55 // TODO(Rodrigo): Use an appropiate sign for this operation
56 Node product = Operation(OperationCode::IMul, NO_PRECISE, op_a, op_b); 56 Node product = Operation(OperationCode::IMul, NO_PRECISE, op_a, op_b);
57 if (instr.xmad.product_shift_left) { 57 if (instr.xmad.product_shift_left) {
58 product = Operation(OperationCode::ILogicalShiftLeft, NO_PRECISE, op_a, Immediate(16)); 58 product = Operation(OperationCode::ILogicalShiftLeft, NO_PRECISE, product, Immediate(16));
59 } 59 }
60 60
61 op_c = [&]() { 61 op_c = [&]() {