diff options
Diffstat (limited to 'src/core/hw/gpu.cpp')
| -rw-r--r-- | src/core/hw/gpu.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/hw/gpu.cpp b/src/core/hw/gpu.cpp index 0ad7e2963..e4a0e14c4 100644 --- a/src/core/hw/gpu.cpp +++ b/src/core/hw/gpu.cpp | |||
| @@ -76,8 +76,8 @@ inline void Write(u32 addr, const T data) { | |||
| 76 | auto& config = g_regs.memory_fill_config[is_second_filler]; | 76 | auto& config = g_regs.memory_fill_config[is_second_filler]; |
| 77 | 77 | ||
| 78 | if (config.address_start && config.trigger) { | 78 | if (config.address_start && config.trigger) { |
| 79 | u8* start = Memory::GetPointer(Memory::PhysicalToVirtualAddress(config.GetStartAddress())); | 79 | u8* start = Memory::GetPhysicalPointer(config.GetStartAddress()); |
| 80 | u8* end = Memory::GetPointer(Memory::PhysicalToVirtualAddress(config.GetEndAddress())); | 80 | u8* end = Memory::GetPhysicalPointer(config.GetEndAddress()); |
| 81 | 81 | ||
| 82 | if (config.fill_24bit) { | 82 | if (config.fill_24bit) { |
| 83 | // fill with 24-bit values | 83 | // fill with 24-bit values |
| @@ -114,8 +114,8 @@ inline void Write(u32 addr, const T data) { | |||
| 114 | { | 114 | { |
| 115 | const auto& config = g_regs.display_transfer_config; | 115 | const auto& config = g_regs.display_transfer_config; |
| 116 | if (config.trigger & 1) { | 116 | if (config.trigger & 1) { |
| 117 | u8* src_pointer = Memory::GetPointer(Memory::PhysicalToVirtualAddress(config.GetPhysicalInputAddress())); | 117 | u8* src_pointer = Memory::GetPhysicalPointer(config.GetPhysicalInputAddress()); |
| 118 | u8* dst_pointer = Memory::GetPointer(Memory::PhysicalToVirtualAddress(config.GetPhysicalOutputAddress())); | 118 | u8* dst_pointer = Memory::GetPhysicalPointer(config.GetPhysicalOutputAddress()); |
| 119 | 119 | ||
| 120 | if (config.scaling > config.ScaleXY) { | 120 | if (config.scaling > config.ScaleXY) { |
| 121 | LOG_CRITICAL(HW_GPU, "Unimplemented display transfer scaling mode %u", config.scaling.Value()); | 121 | LOG_CRITICAL(HW_GPU, "Unimplemented display transfer scaling mode %u", config.scaling.Value()); |
| @@ -257,7 +257,7 @@ inline void Write(u32 addr, const T data) { | |||
| 257 | const auto& config = g_regs.command_processor_config; | 257 | const auto& config = g_regs.command_processor_config; |
| 258 | if (config.trigger & 1) | 258 | if (config.trigger & 1) |
| 259 | { | 259 | { |
| 260 | u32* buffer = (u32*)Memory::GetPointer(Memory::PhysicalToVirtualAddress(config.GetPhysicalAddress())); | 260 | u32* buffer = (u32*)Memory::GetPhysicalPointer(config.GetPhysicalAddress()); |
| 261 | Pica::CommandProcessor::ProcessCommandList(buffer, config.size); | 261 | Pica::CommandProcessor::ProcessCommandList(buffer, config.size); |
| 262 | } | 262 | } |
| 263 | break; | 263 | break; |