cache: Invalidate pages for file reads. (#1726)

* cache: Invalidate pages for file reads.

* texture_cache: Simplify invalidate intersection check.

* vk_rasterizer: Make aware of mapped memory ranges.

* buffer_cache: Remove redundant page calculations.

Called functions will convert to page numbers/addresses themselves.

* file_system: Simplify memory invalidation and add a few missed cases.
This commit is contained in:
squidbus
2024-12-11 11:11:24 -08:00
committed by GitHub
parent e612e881ac
commit 14f7dc3527
10 changed files with 74 additions and 60 deletions

View File

@@ -211,6 +211,8 @@ public:
void NameVirtualRange(VAddr virtual_addr, size_t size, std::string_view name);
void InvalidateMemory(VAddr addr, u64 size) const;
private:
VMAHandle FindVMA(VAddr target) {
return std::prev(vma_map.upper_bound(target));