aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/rasterizer_interface.h
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-11-28 02:15:34 -0300
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-02-14 17:38:27 -0300
commit73d2d3342dc8867d32f08f89b2ca36ff071598dc (patch)
tree3a032d4a36d0f07981eeb8b396472670bfd11e5a /src/video_core/rasterizer_interface.h
parentaae8c180cbbf91ba12f53c37e81a97d4b3cc4ccd (diff)
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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/rasterizer_interface.h b/src/video_core/rasterizer_interface.h
index a394f2d3e0..e9f1436f07 100644
--- a/src/video_core/rasterizer_interface.h
+++ b/src/video_core/rasterizer_interface.h
@@ -6,6 +6,7 @@
#include <atomic>
#include <functional>
+#include <optional>
#include "common/common_types.h"
#include "video_core/engines/fermi_2d.h"
#include "video_core/gpu.h"
@@ -50,7 +51,7 @@ public:
virtual void ResetCounter(QueryType type) = 0;
/// Records a GPU query and caches it
- virtual void Query(GPUVAddr gpu_addr, QueryType type) = 0;
+ virtual void Query(GPUVAddr gpu_addr, QueryType type, std::optional<u64> timestamp) = 0;
/// Notify rasterizer that all caches should be flushed to Switch memory
virtual void FlushAll() = 0;