diff options
author | Fernando Sahmkow <[email protected]> | 2023-06-28 19:32:50 +0200 |
---|---|---|
committer | Fernando Sahmkow <[email protected]> | 2023-06-28 21:32:45 +0200 |
commit | da440da9f54cc860f3c69da685a415d5ec9d7b64 (patch) | |
tree | 5a7a4a56462244970e1356a723e6a8a77477f820 /src/video_core/gpu.h | |
parent | 47d0d292d5cc5f0404e126023279db7decd532ac (diff) | |
download | yuzu-android-da440da9f54cc860f3c69da685a415d5ec9d7b64.tar.gz yuzu-android-da440da9f54cc860f3c69da685a415d5ec9d7b64.zip |
Memory Tracking: Optimize tracking to only use atomic writes when contested with the host GPU
Diffstat (limited to 'src/video_core/gpu.h')
-rw-r--r-- | src/video_core/gpu.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h index e49c40cf2..ba2838b89 100644 --- a/src/video_core/gpu.h +++ b/src/video_core/gpu.h @@ -250,6 +250,10 @@ public: /// Notify rasterizer that any caches of the specified region should be invalidated void InvalidateRegion(VAddr addr, u64 size); + /// Notify rasterizer that CPU is trying to write this area. It returns true if the area is + /// sensible, false otherwise + bool OnCPUWrite(VAddr addr, u64 size); + /// Notify rasterizer that any caches of the specified region should be flushed and invalidated void FlushAndInvalidateRegion(VAddr addr, u64 size); |