diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2023-11-15 01:06:11 +0100 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2023-11-15 02:23:39 +0100 |
commit | c9437e524484f4110844c22ae00e20035cc1b3f2 (patch) | |
tree | 141ed57c8b4bf9cb8727e728228f5889ac322ab5 | |
parent | Merge pull request #11980 from german77/moment (diff) | |
download | yuzu-c9437e524484f4110844c22ae00e20035cc1b3f2.tar yuzu-c9437e524484f4110844c22ae00e20035cc1b3f2.tar.gz yuzu-c9437e524484f4110844c22ae00e20035cc1b3f2.tar.bz2 yuzu-c9437e524484f4110844c22ae00e20035cc1b3f2.tar.lz yuzu-c9437e524484f4110844c22ae00e20035cc1b3f2.tar.xz yuzu-c9437e524484f4110844c22ae00e20035cc1b3f2.tar.zst yuzu-c9437e524484f4110844c22ae00e20035cc1b3f2.zip |
-rw-r--r-- | src/video_core/renderer_vulkan/vk_query_cache.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_query_cache.cpp b/src/video_core/renderer_vulkan/vk_query_cache.cpp index 66c03bf17..078777cdd 100644 --- a/src/video_core/renderer_vulkan/vk_query_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_query_cache.cpp @@ -211,6 +211,13 @@ public: return; } PauseCounter(); + const auto driver_id = device.GetDriverID(); + if (driver_id == VK_DRIVER_ID_QUALCOMM_PROPRIETARY || + driver_id == VK_DRIVER_ID_ARM_PROPRIETARY || driver_id == VK_DRIVER_ID_MESA_TURNIP) { + pending_sync.clear(); + sync_values_stash.clear(); + return; + } sync_values_stash.clear(); sync_values_stash.emplace_back(); std::vector<HostSyncValues>* sync_values = &sync_values_stash.back(); @@ -1378,6 +1385,12 @@ bool QueryCacheRuntime::HostConditionalRenderingCompareValues(VideoCommon::Looku return true; } + auto driver_id = impl->device.GetDriverID(); + if (driver_id == VK_DRIVER_ID_QUALCOMM_PROPRIETARY || + driver_id == VK_DRIVER_ID_ARM_PROPRIETARY || driver_id == VK_DRIVER_ID_MESA_TURNIP) { + return true; + } + for (size_t i = 0; i < 2; i++) { is_null[i] = !is_in_ac[i] && check_value(objects[i]->address); } |