c/main: Init comp_base as early as possible

This commit is contained in:
Jakob Bornecrantz 2022-05-20 00:12:52 +01:00
parent ea4c14c3aa
commit 875815b55b

View file

@ -1133,6 +1133,9 @@ xrt_gfx_provider_create_system(struct xrt_device *xdev, struct xrt_system_compos
COMP_DEBUG(c, "Doing init %p", (void *)c);
// Do this as early as possible.
comp_base_init(&c->base);
// Init the settings to default.
comp_settings_init(&c->settings, xdev);
@ -1262,7 +1265,5 @@ xrt_gfx_provider_create_system(struct xrt_device *xdev, struct xrt_system_compos
c->state = COMP_STATE_READY;
comp_base_init(&c->base);
return comp_multi_create_system_compositor(&c->base.base, sys_info, out_xsysc);
}