Buffer Cache: Deduce vertex array limit from memory layout when limit is the highest possible.
This commit is contained in:
parent
8bb604b3be
commit
770e19f51a
3 changed files with 12 additions and 4 deletions
|
@ -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]] {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue