diff options
| author | 2023-09-27 19:11:47 -0400 | |
|---|---|---|
| committer | 2023-09-27 19:11:47 -0400 | |
| commit | 7507a7f89fb6f7782c1a62a23a43e1bc8fe65f48 (patch) | |
| tree | 1090ab164c0e5f65d3c528956a4ad4b55fe0e7a1 | |
| parent | Merge pull request #11613 from t895/fragment-exception-change (diff) | |
| download | yuzu-7507a7f89fb6f7782c1a62a23a43e1bc8fe65f48.tar.gz yuzu-7507a7f89fb6f7782c1a62a23a43e1bc8fe65f48.tar.xz yuzu-7507a7f89fb6f7782c1a62a23a43e1bc8fe65f48.zip | |
renderer_vulkan: fix query cache for homebrew
| -rw-r--r-- | src/video_core/renderer_vulkan/vk_query_cache.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/vk_query_cache.cpp b/src/video_core/renderer_vulkan/vk_query_cache.cpp index a32da3ba3..17b2587ad 100644 --- a/src/video_core/renderer_vulkan/vk_query_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_query_cache.cpp | |||
| @@ -1160,7 +1160,7 @@ struct QueryCacheRuntimeImpl { | |||
| 1160 | cpu_memory_), | 1160 | cpu_memory_), |
| 1161 | primitives_needed_minus_suceeded_streamer( | 1161 | primitives_needed_minus_suceeded_streamer( |
| 1162 | static_cast<size_t>(QueryType::StreamingPrimitivesNeededMinusSucceeded), runtime, 0u), | 1162 | static_cast<size_t>(QueryType::StreamingPrimitivesNeededMinusSucceeded), runtime, 0u), |
| 1163 | hcr_setup{}, hcr_is_set{}, is_hcr_running{} { | 1163 | hcr_setup{}, hcr_is_set{}, is_hcr_running{}, maxwell3d{} { |
| 1164 | 1164 | ||
| 1165 | hcr_setup.sType = VK_STRUCTURE_TYPE_CONDITIONAL_RENDERING_BEGIN_INFO_EXT; | 1165 | hcr_setup.sType = VK_STRUCTURE_TYPE_CONDITIONAL_RENDERING_BEGIN_INFO_EXT; |
| 1166 | hcr_setup.pNext = nullptr; | 1166 | hcr_setup.pNext = nullptr; |
| @@ -1235,7 +1235,9 @@ void QueryCacheRuntime::Bind3DEngine(Maxwell3D* maxwell3d) { | |||
| 1235 | 1235 | ||
| 1236 | template <typename Func> | 1236 | template <typename Func> |
| 1237 | void QueryCacheRuntime::View3DRegs(Func&& func) { | 1237 | void QueryCacheRuntime::View3DRegs(Func&& func) { |
| 1238 | func(*impl->maxwell3d); | 1238 | if (impl->maxwell3d) { |
| 1239 | func(*impl->maxwell3d); | ||
| 1240 | } | ||
| 1239 | } | 1241 | } |
| 1240 | 1242 | ||
| 1241 | void QueryCacheRuntime::EndHostConditionalRendering() { | 1243 | void QueryCacheRuntime::EndHostConditionalRendering() { |