7086396f75
Instead of calling drmModeGetConnector() in drm_head_create() and drm_head_update_info(), it is better to call it in drm_backend_create_heads() and drm_backend_update_heads(). Then we can pass the drmModeConnector object as parameter. This does not change the behavior of the code, but help us to avoid unnecessarily calling drmModeGetConnector(). Besides that, in the future we will have support for writeback connectors. And so drm_backend_create_heads() will be reworked to also populate a list of writeback connectors. To make this work, we are going to need to know if a connector is of the writeback type or not, to know if we should call drm_head_create() or drm_writeback_create(). We can only tell the type of connector if we have the drmModeConnector object. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com> |
||
---|---|---|
.. | ||
drm-gbm.c | ||
drm-internal.h | ||
drm-virtual.c | ||
drm.c | ||
fb.c | ||
kms.c | ||
libbacklight.c | ||
libbacklight.h | ||
meson.build | ||
modes.c | ||
state-helpers.c | ||
state-propose.c | ||
vaapi-recorder.c | ||
vaapi-recorder.h |