diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2024-01-07 05:33:43 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2024-01-19 03:12:30 +0100 |
commit | 23430e67724d803184b6a861e4bcb3cac0e38cb0 (patch) | |
tree | 5d0b3dfc7175434f66d0dfb32f1d0bfa597013c4 /src/video_core/renderer_null/null_rasterizer.cpp | |
parent | SMMU: Fix Right Shift UB. (diff) | |
download | yuzu-23430e67724d803184b6a861e4bcb3cac0e38cb0.tar yuzu-23430e67724d803184b6a861e4bcb3cac0e38cb0.tar.gz yuzu-23430e67724d803184b6a861e4bcb3cac0e38cb0.tar.bz2 yuzu-23430e67724d803184b6a861e4bcb3cac0e38cb0.tar.lz yuzu-23430e67724d803184b6a861e4bcb3cac0e38cb0.tar.xz yuzu-23430e67724d803184b6a861e4bcb3cac0e38cb0.tar.zst yuzu-23430e67724d803184b6a861e4bcb3cac0e38cb0.zip |
Diffstat (limited to 'src/video_core/renderer_null/null_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_null/null_rasterizer.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/video_core/renderer_null/null_rasterizer.cpp b/src/video_core/renderer_null/null_rasterizer.cpp index 11b93fdc9..abfabb65b 100644 --- a/src/video_core/renderer_null/null_rasterizer.cpp +++ b/src/video_core/renderer_null/null_rasterizer.cpp @@ -2,7 +2,6 @@ // SPDX-License-Identifier: GPL-2.0-or-later #include "common/alignment.h" -#include "core/memory.h" #include "video_core/control/channel_state.h" #include "video_core/host1x/host1x.h" #include "video_core/memory_manager.h" @@ -55,8 +54,8 @@ bool RasterizerNull::OnCPUWrite(PAddr addr, u64 size) { void RasterizerNull::OnCacheInvalidation(PAddr addr, u64 size) {} VideoCore::RasterizerDownloadArea RasterizerNull::GetFlushArea(PAddr addr, u64 size) { VideoCore::RasterizerDownloadArea new_area{ - .start_address = Common::AlignDown(addr, Core::Memory::YUZU_PAGESIZE), - .end_address = Common::AlignUp(addr + size, Core::Memory::YUZU_PAGESIZE), + .start_address = Common::AlignDown(addr, Core::DEVICE_PAGESIZE), + .end_address = Common::AlignUp(addr + size, Core::DEVICE_PAGESIZE), .preemtive = true, }; return new_area; |