summaryrefslogtreecommitdiffstats
path: root/src/video_core/macro
diff options
context:
space:
mode:
authorMerryMage <MerryMage@users.noreply.github.com>2020-06-19 12:39:41 +0200
committerMerryMage <MerryMage@users.noreply.github.com>2020-06-19 12:39:41 +0200
commit977ceb405627adfec8be6240521d1db8842b8fc2 (patch)
tree4b0f0b2643593f683fe46ee0ff1147c823a514e2 /src/video_core/macro
parentmacro_jit_x64: Inline Engines::Maxwell3D::GetRegisterValue (diff)
downloadyuzu-977ceb405627adfec8be6240521d1db8842b8fc2.tar
yuzu-977ceb405627adfec8be6240521d1db8842b8fc2.tar.gz
yuzu-977ceb405627adfec8be6240521d1db8842b8fc2.tar.bz2
yuzu-977ceb405627adfec8be6240521d1db8842b8fc2.tar.lz
yuzu-977ceb405627adfec8be6240521d1db8842b8fc2.tar.xz
yuzu-977ceb405627adfec8be6240521d1db8842b8fc2.tar.zst
yuzu-977ceb405627adfec8be6240521d1db8842b8fc2.zip
Diffstat (limited to 'src/video_core/macro')
-rw-r--r--src/video_core/macro/macro_jit_x64.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/video_core/macro/macro_jit_x64.cpp b/src/video_core/macro/macro_jit_x64.cpp
index 0b2918388..80a00ba77 100644
--- a/src/video_core/macro/macro_jit_x64.cpp
+++ b/src/video_core/macro/macro_jit_x64.cpp
@@ -270,14 +270,6 @@ void MacroJITx64Impl::Compile_ExtractShiftLeftRegister(Macro::Opcode opcode) {
Compile_ProcessResult(opcode.result_operation, opcode.dst);
}
-static u32 Read(Engines::Maxwell3D* maxwell3d, u32 method) {
- return maxwell3d->GetRegisterValue(method);
-}
-
-static void Send(Engines::Maxwell3D* maxwell3d, Macro::MethodAddress method_address, u32 value) {
- maxwell3d->CallMethodFromMME(method_address.address, value);
-}
-
void MacroJITx64Impl::Compile_Read(Macro::Opcode opcode) {
if (optimizer.zero_reg_skip && opcode.src_a == 0) {
if (opcode.immediate == 0) {
@@ -312,6 +304,10 @@ void MacroJITx64Impl::Compile_Read(Macro::Opcode opcode) {
Compile_ProcessResult(opcode.result_operation, opcode.dst);
}
+static void Send(Engines::Maxwell3D* maxwell3d, Macro::MethodAddress method_address, u32 value) {
+ maxwell3d->CallMethodFromMME(method_address.address, value);
+}
+
void Tegra::MacroJITx64Impl::Compile_Send(Xbyak::Reg32 value) {
Common::X64::ABI_PushRegistersAndAdjustStack(*this, PersistentCallerSavedRegs(), 0);
mov(Common::X64::ABI_PARAM1, qword[STATE]);