diff options
| author | bunnei <bunneidev@gmail.com> | 2018-04-21 11:16:21 -0400 |
|---|---|---|
| committer | bunnei <bunneidev@gmail.com> | 2018-04-24 17:40:43 -0400 |
| commit | 9e11a76e926a7190880063d8fc8c3d97003b9938 (patch) | |
| tree | 13d1749f110f5517ef506e10f575693ea2aa63ca /src/video_core/command_processor.cpp | |
| parent | e8c2bb24b2d839f3b97cd3a17855fd0d1ad8f72e (diff) | |
memory_manager: Use GPUVAdddr, not PAddr, for GPU addresses.
Diffstat (limited to 'src/video_core/command_processor.cpp')
| -rw-r--r-- | src/video_core/command_processor.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/video_core/command_processor.cpp b/src/video_core/command_processor.cpp index d4cdb4ab2..7850ae103 100644 --- a/src/video_core/command_processor.cpp +++ b/src/video_core/command_processor.cpp @@ -90,9 +90,7 @@ void GPU::WriteReg(u32 method, u32 subchannel, u32 value, u32 remaining_params) } void GPU::ProcessCommandList(GPUVAddr address, u32 size) { - // TODO(Subv): PhysicalToVirtualAddress is a misnomer, it converts a GPU VAddr into an - // application VAddr. - const VAddr head_address = memory_manager->PhysicalToVirtualAddress(address); + const VAddr head_address = memory_manager->GpuToCpuAddress(address); VAddr current_addr = head_address; while (current_addr < head_address + size * sizeof(CommandHeader)) { const CommandHeader header = {Memory::Read32(current_addr)}; |
