diff options
| author | Hadagalberto Junior <hadagalberto.junior1@gmail.com> | 2026-11-22 08:32:35 -0300 |
|---|---|---|
| committer | Hadagalberto Junior <hadagalberto.junior1@gmail.com> | 2026-11-22 08:51:45 -0300 |
| commit | 48c8e1280f05c7b2e1c8e4167b43fbb23bf765be (patch) | |
| tree | 1185c8ad7a33ac22e24daa0202976a21918011ea /runtime | |
| parent | 170dc22518cbea6f469e838b283a2a7b45978354 (diff) | |
Runtime: leave statistics queries whole without the occlusion helper (D3D-162)
Without occlusion-resolve memory the queue has no compute helper, so a split statistics query could not be
summed and its later resolve would be refused where main copies it. Create the statistics segment pool only
when the helper is available; otherwise plan() leaves the queries whole and keeps main's behaviour.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime')
| -rw-r--r-- | runtime/src/vulkan_backend.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/src/vulkan_backend.h b/runtime/src/vulkan_backend.h index e3bb1fe63..9f5b93cee 100644 --- a/runtime/src/vulkan_backend.h +++ b/runtime/src/vulkan_backend.h | |||
| @@ -1196,7 +1196,8 @@ public: | |||
| 1196 | }; | 1196 | }; |
| 1197 | std::shared_ptr<OcclusionSegmentPool> physical, statistics; | 1197 | std::shared_ptr<OcclusionSegmentPool> physical, statistics; |
| 1198 | if (segments && !segment_pool(VK_QUERY_TYPE_OCCLUSION, segments, physical)) return ReplayResult::unsupported; | 1198 | if (segments && !segment_pool(VK_QUERY_TYPE_OCCLUSION, segments, physical)) return ReplayResult::unsupported; |
| 1199 | if (statistics_segments && | 1199 | // Without the compute helper a split query could not be summed: leave statistics queries whole, as before. |
| 1200 | if (statistics_segments && can_resolve_occlusion && | ||
| 1200 | !segment_pool(VK_QUERY_TYPE_PIPELINE_STATISTICS, statistics_segments, statistics)) | 1201 | !segment_pool(VK_QUERY_TYPE_PIPELINE_STATISTICS, statistics_segments, statistics)) |
| 1201 | return ReplayResult::unsupported; | 1202 | return ReplayResult::unsupported; |
| 1202 | QueryReplay queries; | 1203 | QueryReplay queries; |