mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-13 09:37:57 -05:00
buffer_cache: Simplify uniform disabling logic
This commit is contained in:
@ -163,6 +163,9 @@ std::optional<GPUVAddr> MemoryManager::FindFreeRange(std::size_t size, std::size
|
||||
}
|
||||
|
||||
std::optional<VAddr> MemoryManager::GpuToCpuAddress(GPUVAddr gpu_addr) const {
|
||||
if (gpu_addr == 0) {
|
||||
return std::nullopt;
|
||||
}
|
||||
const auto page_entry{GetPageEntry(gpu_addr)};
|
||||
if (!page_entry.IsValid()) {
|
||||
return std::nullopt;
|
||||
|
Reference in New Issue
Block a user