mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-11 07:48:56 -05:00
Deglobalize Memory Manager on texture cahe and Implement Invalidation and Flushing using GPUVAddr
This commit is contained in:
committed by
ReinUsesLisp
parent
6c410104f4
commit
6b0695b3cd
@ -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;
|
||||
|
Reference in New Issue
Block a user