mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-29 01:48:31 +00:00
c/main: Name all fence objects
This commit is contained in:
parent
46998fa1d1
commit
7322918e51
|
@ -393,6 +393,10 @@ renderer_create_renderings_and_fences(struct comp_renderer *r)
|
||||||
if (ret != VK_SUCCESS) {
|
if (ret != VK_SUCCESS) {
|
||||||
COMP_ERROR(r->c, "vkCreateFence: %s", vk_result_string(ret));
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -448,6 +448,9 @@ vblank_event_func(struct comp_target *ct, uint64_t *out_timestamp_ns)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Name for debugging.
|
||||||
|
VK_NAME_OBJECT(vk, FENCE, vblank_event_fence, "Comp VBlank");
|
||||||
|
|
||||||
// Not scoped to not effect timing.
|
// Not scoped to not effect timing.
|
||||||
COMP_TRACE_IDENT(vblank);
|
COMP_TRACE_IDENT(vblank);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue