summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2018-12-30 05:05:14 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-01-15 21:54:53 +0100
commit1c9c4eefeb1d40a9c0ca29c528e71ee1e918a967 (patch)
tree8bb2f3a97f90c31b961ac72c07b2083df84b7c5b /src
parentshader_ir: Pass to decoder functions basic block's code (diff)
downloadyuzu-1c9c4eefeb1d40a9c0ca29c528e71ee1e918a967.tar
yuzu-1c9c4eefeb1d40a9c0ca29c528e71ee1e918a967.tar.gz
yuzu-1c9c4eefeb1d40a9c0ca29c528e71ee1e918a967.tar.bz2
yuzu-1c9c4eefeb1d40a9c0ca29c528e71ee1e918a967.tar.lz
yuzu-1c9c4eefeb1d40a9c0ca29c528e71ee1e918a967.tar.xz
yuzu-1c9c4eefeb1d40a9c0ca29c528e71ee1e918a967.tar.zst
yuzu-1c9c4eefeb1d40a9c0ca29c528e71ee1e918a967.zip
Diffstat (limited to 'src')
-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) {
// TODO(Rodrigo): Use an appropiate sign for this operation
Node product = Operation(OperationCode::IMul, NO_PRECISE, op_a, op_b);
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 = [&]() {