mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-20 12:55:45 +00:00
video_core/memory_manager: Add GPU address based flush method
Allow flushing rasterizer contents based on a GPU address.
This commit is contained in:
parent
0f02201fb3
commit
5c2fdf4e60
2 changed files with 17 additions and 0 deletions
|
@ -131,6 +131,8 @@ private:
|
|||
void TryLockPage(PageEntry page_entry, std::size_t size);
|
||||
void TryUnlockPage(PageEntry page_entry, std::size_t size);
|
||||
|
||||
void FlushRegion(GPUVAddr gpu_addr, size_t size) const;
|
||||
|
||||
[[nodiscard]] static constexpr std::size_t PageEntryIndex(GPUVAddr gpu_addr) {
|
||||
return (gpu_addr >> page_bits) & page_table_mask;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue