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

This commit is contained in:
Fernando Sahmkow authored and ReinUsesLisp committed 2019-06-20 21:36:11 -03:00
1 parent 05f039e9fb
commit e8ac8ab2f5
4 files changed
+20 -1

No files matched your search

+1 -1
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;