c/main: Name all fence objects

This commit is contained in:
Jakob Bornecrantz 2023-06-20 14:06:29 +01:00
parent 46998fa1d1
commit 7322918e51
2 changed files with 7 additions and 0 deletions

View file

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

View file

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