mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-12-26 22:11:21 -08:00
Memory: Correct GCC errors.
This commit is contained in:
parent
913f42a3a7
commit
1c18dc6577
@ -19,6 +19,7 @@
|
|||||||
#include "common/alignment.h"
|
#include "common/alignment.h"
|
||||||
#include "common/common_types.h"
|
#include "common/common_types.h"
|
||||||
#include "core/core.h"
|
#include "core/core.h"
|
||||||
|
#include "core/memory.h"
|
||||||
#include "video_core/buffer_cache/buffer_block.h"
|
#include "video_core/buffer_cache/buffer_block.h"
|
||||||
#include "video_core/buffer_cache/map_interval.h"
|
#include "video_core/buffer_cache/map_interval.h"
|
||||||
#include "video_core/memory_manager.h"
|
#include "video_core/memory_manager.h"
|
||||||
|
@ -202,7 +202,7 @@ u8* MemoryManager::GetPointer(GPUVAddr addr) {
|
|||||||
|
|
||||||
auto& memory = system.Memory();
|
auto& memory = system.Memory();
|
||||||
|
|
||||||
const VAddr const page_addr{page_table.backing_addr[addr >> page_bits]};
|
const VAddr page_addr{page_table.backing_addr[addr >> page_bits]};
|
||||||
|
|
||||||
if (page_addr != 0) {
|
if (page_addr != 0) {
|
||||||
return memory.GetPointer(page_addr + (addr & page_mask));
|
return memory.GetPointer(page_addr + (addr & page_mask));
|
||||||
@ -219,7 +219,7 @@ const u8* MemoryManager::GetPointer(GPUVAddr addr) const {
|
|||||||
|
|
||||||
const auto& memory = system.Memory();
|
const auto& memory = system.Memory();
|
||||||
|
|
||||||
const VAddr const page_addr{page_table.backing_addr[addr >> page_bits]};
|
const VAddr page_addr{page_table.backing_addr[addr >> page_bits]};
|
||||||
|
|
||||||
if (page_addr != 0) {
|
if (page_addr != 0) {
|
||||||
return memory.GetPointer(page_addr + (addr & page_mask));
|
return memory.GetPointer(page_addr + (addr & page_mask));
|
||||||
|
Loading…
Reference in New Issue
Block a user