From 89f4c0f59a90b1a4447d171bd09235126561af91 Mon Sep 17 00:00:00 2001 From: Nicolas James Date: Tue, 31 Mar 2026 00:05:03 +1100 Subject: Small Handle refactor --- src/layer.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/layer.cc') diff --git a/src/layer.cc b/src/layer.cc index 186178a..bc988f0 100644 --- a/src/layer.cc +++ b/src/layer.cc @@ -396,8 +396,10 @@ vkQueueSubmit(VkQueue queue, std::uint32_t submit_count, std::span{submit_infos, submit_count}, std::back_inserter(next_submits), [&](const auto& submit) { const auto head_handle = context->timestamp_pool->acquire(); + head_handle->write_command(VK_PIPELINE_STAGE_2_TOP_OF_PIPE_BIT); + const auto tail_handle = context->timestamp_pool->acquire(); - head_handle->setup_command_buffers(*tail_handle, *context); + tail_handle->write_command(VK_PIPELINE_STAGE_2_BOTTOM_OF_PIPE_BIT); context->notify_submit(extract_present_id(submit), head_handle, tail_handle, now); @@ -449,8 +451,9 @@ vkQueueSubmit2(VkQueue queue, std::uint32_t submit_count, std::span{submit_infos, submit_count}, std::back_inserter(next_submits), [&](const auto& submit) { const auto head_handle = context->timestamp_pool->acquire(); + head_handle->write_command(VK_PIPELINE_STAGE_2_TOP_OF_PIPE_BIT); const auto tail_handle = context->timestamp_pool->acquire(); - head_handle->setup_command_buffers(*tail_handle, *context); + tail_handle->write_command(VK_PIPELINE_STAGE_2_BOTTOM_OF_PIPE_BIT); context->notify_submit(extract_present_id(submit), head_handle, tail_handle, now); -- cgit v1.2.3