diff options
| author | 2023-09-29 06:01:18 +0200 | |
|---|---|---|
| committer | 2023-09-29 06:01:18 +0200 | |
| commit | 926e24c642ab0d44661339b191934a59da736db2 (patch) | |
| tree | c4cbc864202ba5013a09964a7abbf8e918cf5fc6 /src | |
| parent | Merge pull request #11631 from Kelebek1/double_focus_change (diff) | |
| parent | renderer_vulkan: fix query cache for homebrew (diff) | |
| download | yuzu-926e24c642ab0d44661339b191934a59da736db2.tar.gz yuzu-926e24c642ab0d44661339b191934a59da736db2.tar.xz yuzu-926e24c642ab0d44661339b191934a59da736db2.zip | |
Merge pull request #11622 from liamwhite/qcr-reg1
renderer_vulkan: fix query cache for homebrew
Diffstat (limited to 'src')
| -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() { |