diff options
| author | 2023-08-26 22:00:43 +0200 | |
|---|---|---|
| committer | 2023-08-26 22:00:43 +0200 | |
| commit | 8beda6a2bf4da0c9673a0532d8e80c9e5e534ced (patch) | |
| tree | e8cf119ade45e7e459cb4227122e318e5fa0b12e /src/video_core/dma_pusher.cpp | |
| parent | Merge pull request #11377 from BenjaminHalko/reverse-slider-input (diff) | |
| download | yuzu-8beda6a2bf4da0c9673a0532d8e80c9e5e534ced.tar.gz yuzu-8beda6a2bf4da0c9673a0532d8e80c9e5e534ced.tar.xz yuzu-8beda6a2bf4da0c9673a0532d8e80c9e5e534ced.zip | |
DMA Pusher: Fix regression caused by guest memory optimizations
Diffstat (limited to 'src/video_core/dma_pusher.cpp')
| -rw-r--r-- | src/video_core/dma_pusher.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/video_core/dma_pusher.cpp b/src/video_core/dma_pusher.cpp index 9f1b340a9..ab28951b6 100644 --- a/src/video_core/dma_pusher.cpp +++ b/src/video_core/dma_pusher.cpp | |||
| @@ -83,6 +83,14 @@ bool DmaPusher::Step() { | |||
| 83 | dma_state.dma_get, command_list_header.size * sizeof(u32)); | 83 | dma_state.dma_get, command_list_header.size * sizeof(u32)); |
| 84 | } | 84 | } |
| 85 | } | 85 | } |
| 86 | if (Settings::IsGPULevelHigh() && dma_state.method < MacroRegistersStart) { | ||
| 87 | Core::Memory::GpuGuestMemory<Tegra::CommandHeader, | ||
| 88 | Core::Memory::GuestMemoryFlags::SafeRead> | ||
| 89 | headers(memory_manager, dma_state.dma_get, command_list_header.size, | ||
| 90 | &command_headers); | ||
| 91 | ProcessCommands(headers); | ||
| 92 | return true; | ||
| 93 | } | ||
| 86 | Core::Memory::GpuGuestMemory<Tegra::CommandHeader, | 94 | Core::Memory::GpuGuestMemory<Tegra::CommandHeader, |
| 87 | Core::Memory::GuestMemoryFlags::UnsafeRead> | 95 | Core::Memory::GuestMemoryFlags::UnsafeRead> |
| 88 | headers(memory_manager, dma_state.dma_get, command_list_header.size, &command_headers); | 96 | headers(memory_manager, dma_state.dma_get, command_list_header.size, &command_headers); |