Deglobalize Memory Manager on texture cahe and Implement Invalidation and Flushing using GPUVAddr

This commit is contained in:
Fernando Sahmkow
2019-05-07 10:55:18 -04:00
committed by ReinUsesLisp
parent 6c410104f4
commit 6b0695b3cd
4 changed files with 20 additions and 1 deletions

View File

@ -69,7 +69,7 @@ GPUVAddr MemoryManager::UnmapBuffer(GPUVAddr gpu_addr, u64 size) {
const u64 aligned_size{Common::AlignUp(size, page_size)};
const CacheAddr cache_addr{ToCacheAddr(GetPointer(gpu_addr))};
rasterizer.FlushAndInvalidateRegion(cache_addr, aligned_size);
rasterizer.FlushAndInvalidateRegionEx(gpu_addr, cache_addr, aligned_size);
UnmapRange(gpu_addr, aligned_size);
return gpu_addr;