|
@@ -201,11 +201,11 @@ const u8* MemoryManager::GetPointer(GPUVAddr addr) const {
|
|
|
return {};
|
|
return {};
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-bool MemoryManager::IsBlockContinous(const GPUVAddr start, const std::size_t size) {
|
|
|
|
|
|
|
+bool MemoryManager::IsBlockContinuous(const GPUVAddr start, const std::size_t size) const {
|
|
|
const GPUVAddr end = start + size;
|
|
const GPUVAddr end = start + size;
|
|
|
const auto host_ptr_start = reinterpret_cast<std::uintptr_t>(GetPointer(start));
|
|
const auto host_ptr_start = reinterpret_cast<std::uintptr_t>(GetPointer(start));
|
|
|
const auto host_ptr_end = reinterpret_cast<std::uintptr_t>(GetPointer(end));
|
|
const auto host_ptr_end = reinterpret_cast<std::uintptr_t>(GetPointer(end));
|
|
|
- const std::size_t range = static_cast<std::size_t>(host_ptr_end - host_ptr_start);
|
|
|
|
|
|
|
+ const auto range = static_cast<std::size_t>(host_ptr_end - host_ptr_start);
|
|
|
return range == size;
|
|
return range == size;
|
|
|
}
|
|
}
|
|
|
|
|
|