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);