aboutsummaryrefslogtreecommitdiff
path: root/src/timestamp_pool.cc
diff options
context:
space:
mode:
authorNicolas James <Eele1Ephe7uZahRie@tutanota.com>2026-04-04 14:09:39 +1100
committerNicolas James <Eele1Ephe7uZahRie@tutanota.com>2026-04-04 14:09:39 +1100
commiteffef8d4c4012f415c8cf869f9999232862009e2 (patch)
tree7f41b9c3ee74f2cd1cfeee80e366802c84ce36a5 /src/timestamp_pool.cc
parente5fb27bf76ea5f6e6bfd008ed3e976576306592b (diff)
Fix CmdWriteTimpstamps bit forward, re-add 'no-unused*' compiler warnings
Diffstat (limited to 'src/timestamp_pool.cc')
-rw-r--r--src/timestamp_pool.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/timestamp_pool.cc b/src/timestamp_pool.cc
index 2d43c58..80170e5 100644
--- a/src/timestamp_pool.cc
+++ b/src/timestamp_pool.cc
@@ -155,7 +155,7 @@ void TimestampPool::do_reaper(const std::stop_token stoken) {
}
void TimestampPool::Handle::write_command(
- const VkPipelineStageFlagBits2& bit) const {
+ const VkPipelineStageFlagBits2 bit) const {
const auto cbbi = VkCommandBufferBeginInfo{
.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO,
@@ -170,9 +170,8 @@ void TimestampPool::Handle::write_command(
THROW_NOT_VKSUCCESS(vtable.ResetCommandBuffer(this->command_buffer, 0));
THROW_NOT_VKSUCCESS(vtable.BeginCommandBuffer(this->command_buffer, &cbbi));
- vtable.CmdWriteTimestamp2KHR(
- this->command_buffer, VK_PIPELINE_STAGE_2_TOP_OF_PIPE_BIT,
- this->query_pool, static_cast<std::uint32_t>(this->query_index));
+ vtable.CmdWriteTimestamp2KHR(this->command_buffer, bit, this->query_pool,
+ static_cast<std::uint32_t>(this->query_index));
THROW_NOT_VKSUCCESS(vtable.EndCommandBuffer(this->command_buffer));
}