mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-11-13 18:53:05 +01:00
Buffer Cache: Deduce vertex array limit from memory layout when limit is the highest possible.
This commit is contained in:
1 parent
5ef7ad3294
commit
03a978b04b
3 files changed
+12
-4
No files matched your search
@@ -193,7 +193,7 @@ void MemoryManager::Unmap(GPUVAddr gpu_addr, std::size_t size) {
|
||||
}
|
||||
|
||||
std::optional<VAddr> MemoryManager::GpuToCpuAddress(GPUVAddr gpu_addr) const {
|
||||
if (gpu_addr >= address_space_size) [[unlikely]] {
|
||||
if (!IsWithinGPUAddressRange(gpu_addr)) [[unlikely]] {
|
||||
return std::nullopt;
|
||||
}
|
||||
if (GetEntry<true>(gpu_addr) != EntryType::Mapped) [[unlikely]] {
|
||||
|
||||
Reference in new issue
Block a user