Skip to content

Commit 8e61269

Browse files
committed
[style] Run clang-format on modified C++ files
Apply official clang-format guidelines to all hand-written files modified in our frame-looping fixes: - api_decoder.h - preload_file_processor.cpp - vulkan_decoder_base.h - vulkan_replay_frame_loop_consumer.cpp - vulkan_replay_frame_loop_consumer.h TAG=agy CONV=a0864ce4-0126-408e-ad0b-5302cffe1ff3
1 parent 1e1c428 commit 8e61269

2 files changed

Lines changed: 22 additions & 22 deletions

File tree

framework/decode/vulkan_replay_frame_loop_consumer.cpp

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,6 @@ void VulkanReplayFrameLoopConsumer::Process_vkFreeDescriptorSets(const ApiCallIn
253253
call_info, returnValue, device, descriptorPool, descriptorSetCount, pDescriptorSets);
254254
}
255255

256-
257-
258256
void VulkanReplayFrameLoopConsumer::OnLoopStart()
259257
{
260258
WaitDevicesIdle();
@@ -273,7 +271,7 @@ void VulkanReplayFrameLoopConsumer::CaptureInitialFenceStates()
273271
auto device_info = table.GetVkDeviceInfo(fence_info->parent_id);
274272
if (device_info != nullptr && device_info->handle != VK_NULL_HANDLE)
275273
{
276-
VkDevice device = device_info->handle;
274+
VkDevice device = device_info->handle;
277275
const graphics::VulkanDeviceTable* device_table = GetDeviceTable(device);
278276
if (device_table != nullptr)
279277
{
@@ -282,7 +280,8 @@ void VulkanReplayFrameLoopConsumer::CaptureInitialFenceStates()
282280
GFXRECON_LOG_DEBUG(" Fence %" PRIu64 " (handle %" PRIu64 ") initial state: %s",
283281
fence_info->capture_id,
284282
(uint64_t)fence_info->handle,
285-
status == VK_SUCCESS ? "SIGNALED" : (status == VK_NOT_READY ? "UNSIGNALED" : "ERROR"));
283+
status == VK_SUCCESS ? "SIGNALED"
284+
: (status == VK_NOT_READY ? "UNSIGNALED" : "ERROR"));
286285
}
287286
}
288287
}
@@ -327,14 +326,18 @@ void VulkanReplayFrameLoopConsumer::FixupDeviceFences(format::HandleId device, f
327326

328327
if (initial_status == VK_NOT_READY && current_status == VK_SUCCESS)
329328
{
330-
GFXRECON_LOG_DEBUG("Fence %" PRIu64 " (handle %" PRIu64 ") was initially UNSIGNALED but is now SIGNALED. Will reset it.",
331-
fence_id, (uint64_t)fence_info->handle);
329+
GFXRECON_LOG_DEBUG("Fence %" PRIu64 " (handle %" PRIu64
330+
") was initially UNSIGNALED but is now SIGNALED. Will reset it.",
331+
fence_id,
332+
(uint64_t)fence_info->handle);
332333
fences_to_reset.push_back(fence_info->handle);
333334
}
334335
else if (initial_status == VK_SUCCESS && current_status == VK_NOT_READY)
335336
{
336-
GFXRECON_LOG_DEBUG("Fence %" PRIu64 " (handle %" PRIu64 ") was initially SIGNALED but is now UNSIGNALED. Will signal it.",
337-
fence_id, (uint64_t)fence_info->handle);
337+
GFXRECON_LOG_DEBUG("Fence %" PRIu64 " (handle %" PRIu64
338+
") was initially SIGNALED but is now UNSIGNALED. Will signal it.",
339+
fence_id,
340+
(uint64_t)fence_info->handle);
338341
fences_to_signal.push_back(fence_info->handle);
339342
}
340343
}
@@ -352,7 +355,7 @@ void VulkanReplayFrameLoopConsumer::FixupDeviceFences(format::HandleId device, f
352355
VulkanQueueInfo* queue_info = table.GetVkQueueInfo(queue);
353356
for (VkFence fence : fences_to_signal)
354357
{
355-
VkResult result = device_table->QueueSubmit(queue_info->handle, 0, nullptr, fence);
358+
VkResult result = device_table->QueueSubmit(queue_info->handle, 0, nullptr, fence);
356359
CHECK_VK_RESULT(result, "vkQueueSubmit");
357360
}
358361
}
@@ -382,8 +385,6 @@ void VulkanReplayFrameLoopConsumer::Process_vkMapMemory(const ApiCallInfo&
382385
VulkanReplayConsumer::Process_vkMapMemory(call_info, returnValue, device, memory, offset, size, flags, ppData);
383386
}
384387

385-
386-
387388
void VulkanReplayFrameLoopConsumer::Process_vkQueuePresentKHR(
388389
const ApiCallInfo& call_info,
389390
VkResult returnValue,
@@ -412,12 +413,11 @@ void VulkanReplayFrameLoopConsumer::Process_vkQueuePresentKHR(
412413
}
413414
}
414415

415-
void VulkanReplayFrameLoopConsumer::Process_vkCmdWriteTimestamp(
416-
const ApiCallInfo& call_info,
417-
format::HandleId commandBuffer,
418-
VkPipelineStageFlagBits pipelineStage,
419-
format::HandleId queryPool,
420-
uint32_t query)
416+
void VulkanReplayFrameLoopConsumer::Process_vkCmdWriteTimestamp(const ApiCallInfo& call_info,
417+
format::HandleId commandBuffer,
418+
VkPipelineStageFlagBits pipelineStage,
419+
format::HandleId queryPool,
420+
uint32_t query)
421421
{
422422
if (frame_loop_info_.IsRepetition())
423423
{

framework/decode/vulkan_replay_frame_loop_consumer.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ class VulkanReplayFrameLoopConsumer : public VulkanReplayFrameLoopConsumerBase,
9191
format::HandleId queue,
9292
StructPointerDecoder<Decoded_VkPresentInfoKHR>* pPresentInfo) override;
9393

94-
void Process_vkCmdWriteTimestamp(const ApiCallInfo& call_info,
95-
format::HandleId commandBuffer,
96-
VkPipelineStageFlagBits pipelineStage,
97-
format::HandleId queryPool,
98-
uint32_t query) override;
94+
void Process_vkCmdWriteTimestamp(const ApiCallInfo& call_info,
95+
format::HandleId commandBuffer,
96+
VkPipelineStageFlagBits pipelineStage,
97+
format::HandleId queryPool,
98+
uint32_t query) override;
9999

100100
void Process_vkMapMemory(const ApiCallInfo& call_info,
101101
VkResult returnValue,

0 commit comments

Comments
 (0)