summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader/decode/hfma2.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-02-01 19:24:04 +0100
committerGitHub <noreply@github.com>2019-02-01 19:24:04 +0100
commiteceab45dac2b67392a896fa322af15e6aa81c242 (patch)
treeefe4c76ad073669099073c556201fb7c456807f2 /src/video_core/shader/decode/hfma2.cpp
parentMerge pull request #2073 from lioncash/opus (diff)
parentshader_ir: Unify constant buffer offset values (diff)
downloadyuzu-eceab45dac2b67392a896fa322af15e6aa81c242.tar
yuzu-eceab45dac2b67392a896fa322af15e6aa81c242.tar.gz
yuzu-eceab45dac2b67392a896fa322af15e6aa81c242.tar.bz2
yuzu-eceab45dac2b67392a896fa322af15e6aa81c242.tar.lz
yuzu-eceab45dac2b67392a896fa322af15e6aa81c242.tar.xz
yuzu-eceab45dac2b67392a896fa322af15e6aa81c242.tar.zst
yuzu-eceab45dac2b67392a896fa322af15e6aa81c242.zip
Diffstat (limited to 'src/video_core/shader/decode/hfma2.cpp')
-rw-r--r--src/video_core/shader/decode/hfma2.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/video_core/shader/decode/hfma2.cpp b/src/video_core/shader/decode/hfma2.cpp
index 4a6b945f9..43a0a9e10 100644
--- a/src/video_core/shader/decode/hfma2.cpp
+++ b/src/video_core/shader/decode/hfma2.cpp
@@ -39,13 +39,14 @@ u32 ShaderIR::DecodeHfma2(BasicBlock& bb, const BasicBlock& code, u32 pc) {
neg_b = instr.hfma2.negate_b;
neg_c = instr.hfma2.negate_c;
return {instr.hfma2.saturate, instr.hfma2.type_b,
- GetConstBuffer(instr.cbuf34.index, instr.cbuf34.offset), instr.hfma2.type_reg39,
- GetRegister(instr.gpr39)};
+ GetConstBuffer(instr.cbuf34.index, instr.cbuf34.GetOffset()),
+ instr.hfma2.type_reg39, GetRegister(instr.gpr39)};
case OpCode::Id::HFMA2_RC:
neg_b = instr.hfma2.negate_b;
neg_c = instr.hfma2.negate_c;
return {instr.hfma2.saturate, instr.hfma2.type_reg39, GetRegister(instr.gpr39),
- instr.hfma2.type_b, GetConstBuffer(instr.cbuf34.index, instr.cbuf34.offset)};
+ instr.hfma2.type_b,
+ GetConstBuffer(instr.cbuf34.index, instr.cbuf34.GetOffset())};
case OpCode::Id::HFMA2_RR:
neg_b = instr.hfma2.rr.negate_b;
neg_c = instr.hfma2.rr.negate_c;