diff options
Diffstat (limited to 'runtime/src')
| -rw-r--r-- | runtime/src/vulkan_backend.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/runtime/src/vulkan_backend.h b/runtime/src/vulkan_backend.h index e577e6af0..e2aa0c830 100644 --- a/runtime/src/vulkan_backend.h +++ b/runtime/src/vulkan_backend.h | |||
| @@ -1279,7 +1279,10 @@ public: | |||
| 1279 | } | 1279 | } |
| 1280 | } scratch_guard{context_.scratch_.get(), progress_, false}; | 1280 | } scratch_guard{context_.scratch_.get(), progress_, false}; |
| 1281 | bindless_commit = context_.bindless_commit_; | 1281 | bindless_commit = context_.bindless_commit_; |
| 1282 | std::vector<PreparedList> prepared(lists.size()); | 1282 | // Kept between executions: prepare refills each list's entries in the storage the last execution left, where |
| 1283 | // making them fresh for every command was about half the layer's CPU cost per command (replay_cpu_bench). | ||
| 1284 | auto& prepared = prepared_; | ||
| 1285 | prepared.resize(lists.size()); | ||
| 1283 | ReplayFunctions replay = context_.replay_; | 1286 | ReplayFunctions replay = context_.replay_; |
| 1284 | std::uint64_t captures = 0; | 1287 | std::uint64_t captures = 0; |
| 1285 | for (const auto* list : lists) | 1288 | for (const auto* list : lists) |
| @@ -1632,6 +1635,9 @@ private: | |||
| 1632 | std::unique_ptr<OcclusionResolve> occlusion_resolve_; | 1635 | std::unique_ptr<OcclusionResolve> occlusion_resolve_; |
| 1633 | std::vector<VkSemaphore> waits_; | 1636 | std::vector<VkSemaphore> waits_; |
| 1634 | std::vector<std::uint64_t> wait_values_; | 1637 | std::vector<std::uint64_t> wait_values_; |
| 1638 | // execute's working storage. Per queue like buffers_: one execute at a time on a queue, as acquire() and | ||
| 1639 | // submit() already assume; other queues prepare concurrently with their own. | ||
| 1640 | std::vector<PreparedList> prepared_; | ||
| 1635 | std::uint32_t open_labels_ = 0; // queue labels begun and not ended | 1641 | std::uint32_t open_labels_ = 0; // queue labels begun and not ended |
| 1636 | bool ok_ = false; | 1642 | bool ok_ = false; |
| 1637 | }; | 1643 | }; |