diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/macro/macro_jit_x64.cpp | 12 |
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) { | |||
| 270 | Compile_ProcessResult(opcode.result_operation, opcode.dst); | 270 | Compile_ProcessResult(opcode.result_operation, opcode.dst); |
| 271 | } | 271 | } |
| 272 | 272 | ||
| 273 | static u32 Read(Engines::Maxwell3D* maxwell3d, u32 method) { | ||
| 274 | return maxwell3d->GetRegisterValue(method); | ||
| 275 | } | ||
| 276 | |||
| 277 | static void Send(Engines::Maxwell3D* maxwell3d, Macro::MethodAddress method_address, u32 value) { | ||
| 278 | maxwell3d->CallMethodFromMME(method_address.address, value); | ||
| 279 | } | ||
| 280 | |||
| 281 | void MacroJITx64Impl::Compile_Read(Macro::Opcode opcode) { | 273 | void MacroJITx64Impl::Compile_Read(Macro::Opcode opcode) { |
| 282 | if (optimizer.zero_reg_skip && opcode.src_a == 0) { | 274 | if (optimizer.zero_reg_skip && opcode.src_a == 0) { |
| 283 | if (opcode.immediate == 0) { | 275 | if (opcode.immediate == 0) { |
| @@ -312,6 +304,10 @@ void MacroJITx64Impl::Compile_Read(Macro::Opcode opcode) { | |||
| 312 | Compile_ProcessResult(opcode.result_operation, opcode.dst); | 304 | Compile_ProcessResult(opcode.result_operation, opcode.dst); |
| 313 | } | 305 | } |
| 314 | 306 | ||
| 307 | static void Send(Engines::Maxwell3D* maxwell3d, Macro::MethodAddress method_address, u32 value) { | ||
| 308 | maxwell3d->CallMethodFromMME(method_address.address, value); | ||
| 309 | } | ||
| 310 | |||
| 315 | void Tegra::MacroJITx64Impl::Compile_Send(Xbyak::Reg32 value) { | 311 | void Tegra::MacroJITx64Impl::Compile_Send(Xbyak::Reg32 value) { |
| 316 | Common::X64::ABI_PushRegistersAndAdjustStack(*this, PersistentCallerSavedRegs(), 0); | 312 | Common::X64::ABI_PushRegistersAndAdjustStack(*this, PersistentCallerSavedRegs(), 0); |
| 317 | mov(Common::X64::ABI_PARAM1, qword[STATE]); | 313 | mov(Common::X64::ABI_PARAM1, qword[STATE]); |