summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2023-04-15 00:03:48 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2023-04-23 04:48:50 +0200
commitfca72beb2db658e84ceac6e1f46f682bcacf8f25 (patch)
treeb2139045203240661f924a1cbaec017ca666d16a /src/video_core/renderer_vulkan
parentMerge pull request #10074 from Kelebek1/fermi_blit (diff)
downloadyuzu-fca72beb2db658e84ceac6e1f46f682bcacf8f25.tar
yuzu-fca72beb2db658e84ceac6e1f46f682bcacf8f25.tar.gz
yuzu-fca72beb2db658e84ceac6e1f46f682bcacf8f25.tar.bz2
yuzu-fca72beb2db658e84ceac6e1f46f682bcacf8f25.tar.lz
yuzu-fca72beb2db658e84ceac6e1f46f682bcacf8f25.tar.xz
yuzu-fca72beb2db658e84ceac6e1f46f682bcacf8f25.tar.zst
yuzu-fca72beb2db658e84ceac6e1f46f682bcacf8f25.zip
Diffstat (limited to 'src/video_core/renderer_vulkan')
-rw-r--r--src/video_core/renderer_vulkan/vk_fence_manager.cpp2
-rw-r--r--src/video_core/renderer_vulkan/vk_fence_manager.h11
2 files changed, 12 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/vk_fence_manager.cpp b/src/video_core/renderer_vulkan/vk_fence_manager.cpp
index 0214b103a..3bba8aeb0 100644
--- a/src/video_core/renderer_vulkan/vk_fence_manager.cpp
+++ b/src/video_core/renderer_vulkan/vk_fence_manager.cpp
@@ -5,10 +5,12 @@
#include "video_core/renderer_vulkan/vk_buffer_cache.h"
#include "video_core/renderer_vulkan/vk_fence_manager.h"
+#include "video_core/renderer_vulkan/vk_query_cache.h"
#include "video_core/renderer_vulkan/vk_scheduler.h"
#include "video_core/renderer_vulkan/vk_texture_cache.h"
#include "video_core/vulkan_common/vulkan_device.h"
+
namespace Vulkan {
InnerFence::InnerFence(Scheduler& scheduler_, bool is_stubbed_)
diff --git a/src/video_core/renderer_vulkan/vk_fence_manager.h b/src/video_core/renderer_vulkan/vk_fence_manager.h
index 7fe2afcd9..145359d4e 100644
--- a/src/video_core/renderer_vulkan/vk_fence_manager.h
+++ b/src/video_core/renderer_vulkan/vk_fence_manager.h
@@ -40,7 +40,16 @@ private:
};
using Fence = std::shared_ptr<InnerFence>;
-using GenericFenceManager = VideoCommon::FenceManager<Fence, TextureCache, BufferCache, QueryCache>;
+struct FenceManagerParams {
+ using FenceType = Fence;
+ using BufferCacheType = BufferCache;
+ using TextureCacheType = TextureCache;
+ using QueryCacheType = QueryCache;
+
+ static constexpr bool HAS_ASYNC_CHECK = true;
+};
+
+using GenericFenceManager = VideoCommon::FenceManager<FenceManagerParams>;
class FenceManager final : public GenericFenceManager {
public: