diff options
| author | 2019-11-28 02:15:34 -0300 | |
|---|---|---|
| committer | 2020-02-14 17:38:27 -0300 | |
| commit | 73d2d3342dc8867d32f08f89b2ca36ff071598dc (patch) | |
| tree | 3a032d4a36d0f07981eeb8b396472670bfd11e5a /src/video_core/rasterizer_interface.h | |
| parent | gl_query_cache: Implement host queries using a deferred cache (diff) | |
| download | yuzu-73d2d3342dc8867d32f08f89b2ca36ff071598dc.tar.gz yuzu-73d2d3342dc8867d32f08f89b2ca36ff071598dc.tar.xz yuzu-73d2d3342dc8867d32f08f89b2ca36ff071598dc.zip | |
gl_query_cache: Optimize query cache
Use a custom cache instead of relying on a ranged cache.
Diffstat (limited to 'src/video_core/rasterizer_interface.h')
| -rw-r--r-- | src/video_core/rasterizer_interface.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/rasterizer_interface.h b/src/video_core/rasterizer_interface.h index a394f2d3e..e9f1436f0 100644 --- a/src/video_core/rasterizer_interface.h +++ b/src/video_core/rasterizer_interface.h | |||
| @@ -6,6 +6,7 @@ | |||
| 6 | 6 | ||
| 7 | #include <atomic> | 7 | #include <atomic> |
| 8 | #include <functional> | 8 | #include <functional> |
| 9 | #include <optional> | ||
| 9 | #include "common/common_types.h" | 10 | #include "common/common_types.h" |
| 10 | #include "video_core/engines/fermi_2d.h" | 11 | #include "video_core/engines/fermi_2d.h" |
| 11 | #include "video_core/gpu.h" | 12 | #include "video_core/gpu.h" |
| @@ -50,7 +51,7 @@ public: | |||
| 50 | virtual void ResetCounter(QueryType type) = 0; | 51 | virtual void ResetCounter(QueryType type) = 0; |
| 51 | 52 | ||
| 52 | /// Records a GPU query and caches it | 53 | /// Records a GPU query and caches it |
| 53 | virtual void Query(GPUVAddr gpu_addr, QueryType type) = 0; | 54 | virtual void Query(GPUVAddr gpu_addr, QueryType type, std::optional<u64> timestamp) = 0; |
| 54 | 55 | ||
| 55 | /// Notify rasterizer that all caches should be flushed to Switch memory | 56 | /// Notify rasterizer that all caches should be flushed to Switch memory |
| 56 | virtual void FlushAll() = 0; | 57 | virtual void FlushAll() = 0; |