From 7322918e515cf4bd10907b6d881ea89469c61c93 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Tue, 20 Jun 2023 14:06:29 +0100 Subject: [PATCH] c/main: Name all fence objects --- src/xrt/compositor/main/comp_renderer.c | 4 ++++ src/xrt/compositor/main/comp_target_swapchain.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/src/xrt/compositor/main/comp_renderer.c b/src/xrt/compositor/main/comp_renderer.c index c6fc5e811..6178f0f0c 100644 --- a/src/xrt/compositor/main/comp_renderer.c +++ b/src/xrt/compositor/main/comp_renderer.c @@ -393,6 +393,10 @@ renderer_create_renderings_and_fences(struct comp_renderer *r) if (ret != VK_SUCCESS) { COMP_ERROR(r->c, "vkCreateFence: %s", vk_result_string(ret)); } + + char buf[] = "Comp Renderer X_XXXX_XXXX"; + snprintf(buf, ARRAY_SIZE(buf), "Comp Renderer %u", i); + VK_NAME_OBJECT(vk, FENCE, r->fences[i], buf); } } diff --git a/src/xrt/compositor/main/comp_target_swapchain.c b/src/xrt/compositor/main/comp_target_swapchain.c index 6bc7bb651..e14661752 100644 --- a/src/xrt/compositor/main/comp_target_swapchain.c +++ b/src/xrt/compositor/main/comp_target_swapchain.c @@ -448,6 +448,9 @@ vblank_event_func(struct comp_target *ct, uint64_t *out_timestamp_ns) return false; } + // Name for debugging. + VK_NAME_OBJECT(vk, FENCE, vblank_event_fence, "Comp VBlank"); + // Not scoped to not effect timing. COMP_TRACE_IDENT(vblank);