diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-07-08 02:52:07 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-07-09 22:20:36 +0200 |
commit | 2c8f4ed27fe6b658a179814d4e78a30e4e9eb272 (patch) | |
tree | a38041026d16c99426c711f83cee43db2c0e2095 /src/video_core/dma_pusher.cpp | |
parent | Buffer Cache: Revert unnecessary range reduction. (diff) | |
download | yuzu-2c8f4ed27fe6b658a179814d4e78a30e4e9eb272.tar yuzu-2c8f4ed27fe6b658a179814d4e78a30e4e9eb272.tar.gz yuzu-2c8f4ed27fe6b658a179814d4e78a30e4e9eb272.tar.bz2 yuzu-2c8f4ed27fe6b658a179814d4e78a30e4e9eb272.tar.lz yuzu-2c8f4ed27fe6b658a179814d4e78a30e4e9eb272.tar.xz yuzu-2c8f4ed27fe6b658a179814d4e78a30e4e9eb272.tar.zst yuzu-2c8f4ed27fe6b658a179814d4e78a30e4e9eb272.zip |
Diffstat (limited to 'src/video_core/dma_pusher.cpp')
-rw-r--r-- | src/video_core/dma_pusher.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/video_core/dma_pusher.cpp b/src/video_core/dma_pusher.cpp index 8b33c04ab..8d28bd884 100644 --- a/src/video_core/dma_pusher.cpp +++ b/src/video_core/dma_pusher.cpp @@ -4,6 +4,7 @@ #include "common/cityhash.h" #include "common/microprofile.h" +#include "common/settings.h" #include "core/core.h" #include "core/memory.h" #include "video_core/dma_pusher.h" @@ -76,8 +77,13 @@ bool DmaPusher::Step() { // Push buffer non-empty, read a word command_headers.resize(command_list_header.size); - gpu.MemoryManager().ReadBlockUnsafe(dma_get, command_headers.data(), - command_list_header.size * sizeof(u32)); + if (Settings::IsGPULevelHigh()) { + gpu.MemoryManager().ReadBlock(dma_get, command_headers.data(), + command_list_header.size * sizeof(u32)); + } else { + gpu.MemoryManager().ReadBlockUnsafe(dma_get, command_headers.data(), + command_list_header.size * sizeof(u32)); + } } for (std::size_t index = 0; index < command_headers.size();) { const CommandHeader& command_header = command_headers[index]; |