diff options
| author | 2018-04-24 23:22:24 -0400 | |
|---|---|---|
| committer | 2018-04-24 23:22:24 -0400 | |
| commit | ea3151f475e170eaaec3ded306a0fe5c1e5944db (patch) | |
| tree | 6f7e127c4f58de6071d9a7dbd2af464dbbd14b9b /src/video_core/rasterizer_interface.h | |
| parent | Merge pull request #393 from lioncash/loader (diff) | |
| parent | renderer_opengl: Use correct byte order for framebuffer pixel format ABGR8. (diff) | |
| download | yuzu-ea3151f475e170eaaec3ded306a0fe5c1e5944db.tar.gz yuzu-ea3151f475e170eaaec3ded306a0fe5c1e5944db.tar.xz yuzu-ea3151f475e170eaaec3ded306a0fe5c1e5944db.zip | |
Merge pull request #388 from bunnei/refactor-rasterizer-cache
Refactor rasterizer cache
Diffstat (limited to 'src/video_core/rasterizer_interface.h')
| -rw-r--r-- | src/video_core/rasterizer_interface.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/video_core/rasterizer_interface.h b/src/video_core/rasterizer_interface.h index 36629dd11..f0e48a802 100644 --- a/src/video_core/rasterizer_interface.h +++ b/src/video_core/rasterizer_interface.h | |||
| @@ -6,6 +6,7 @@ | |||
| 6 | 6 | ||
| 7 | #include "common/common_types.h" | 7 | #include "common/common_types.h" |
| 8 | #include "video_core/gpu.h" | 8 | #include "video_core/gpu.h" |
| 9 | #include "video_core/memory_manager.h" | ||
| 9 | 10 | ||
| 10 | struct ScreenInfo; | 11 | struct ScreenInfo; |
| 11 | 12 | ||
| @@ -25,14 +26,14 @@ public: | |||
| 25 | virtual void FlushAll() = 0; | 26 | virtual void FlushAll() = 0; |
| 26 | 27 | ||
| 27 | /// Notify rasterizer that any caches of the specified region should be flushed to Switch memory | 28 | /// Notify rasterizer that any caches of the specified region should be flushed to Switch memory |
| 28 | virtual void FlushRegion(VAddr addr, u64 size) = 0; | 29 | virtual void FlushRegion(Tegra::GPUVAddr addr, u64 size) = 0; |
| 29 | 30 | ||
| 30 | /// Notify rasterizer that any caches of the specified region should be invalidated | 31 | /// Notify rasterizer that any caches of the specified region should be invalidated |
| 31 | virtual void InvalidateRegion(VAddr addr, u64 size) = 0; | 32 | virtual void InvalidateRegion(Tegra::GPUVAddr addr, u64 size) = 0; |
| 32 | 33 | ||
| 33 | /// Notify rasterizer that any caches of the specified region should be flushed to Switch memory | 34 | /// Notify rasterizer that any caches of the specified region should be flushed to Switch memory |
| 34 | /// and invalidated | 35 | /// and invalidated |
| 35 | virtual void FlushAndInvalidateRegion(VAddr addr, u64 size) = 0; | 36 | virtual void FlushAndInvalidateRegion(Tegra::GPUVAddr addr, u64 size) = 0; |
| 36 | 37 | ||
| 37 | /// Attempt to use a faster method to perform a display transfer with is_texture_copy = 0 | 38 | /// Attempt to use a faster method to perform a display transfer with is_texture_copy = 0 |
| 38 | virtual bool AccelerateDisplayTransfer(const void* config) { | 39 | virtual bool AccelerateDisplayTransfer(const void* config) { |