diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-07-02 11:29:01 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-02 11:29:01 -0400 |
commit | eaa62aee988454f9cbd58219aa4d82d7e152c61d (patch) | |
tree | 8fa1e87467e9e37fce6ca159d8bb99d2ab907628 /src/video_core/gpu.h | |
parent | 87080e71c5f0c35ba965ffd5f48a192e0967d47a (diff) | |
parent | 0e6b559c98e3dee54c3c9eaef2d3e59f3871882d (diff) |
Merge pull request #10942 from FernandoS27/android-is-a-pain-in-the-a--
Memory Tracking: Add mechanism to register small writes when gpu page is contested by 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); |