weston/libweston/backend-drm
Leandro Ribeiro 7086396f75 drm-backend: reduce number of drmModeGetConnector() calls
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>
2020-09-16 14:03:18 +00:00
..
drm-gbm.c drm: Introduce drm_plane_reset_state() helper function 2020-08-17 09:44:45 +00:00
drm-internal.h drm-backend: cache drmModeObjectProperties for connectors 2020-09-16 14:03:18 +00:00
drm-virtual.c drm-backend: move CRTC data from struct drm_output to new struct drm_crtc 2020-09-07 12:39:10 -03:00
drm.c drm-backend: reduce number of drmModeGetConnector() calls 2020-09-16 14:03:18 +00:00
fb.c backend-drm: remove unecessary ifdef checks 2019-11-23 09:57:52 +00:00
kms.c drm-backend: move connector data from struct drm_head to struct drm_connector 2020-09-16 14:03:18 +00:00
libbacklight.c backend-drm: move into new subdir 2019-05-16 13:32:34 +01:00
libbacklight.h backend-drm: move into new subdir 2019-05-16 13:32:34 +01:00
meson.build backend-drm: the GL renderer is a hard requirement for DRM virtual outputs 2020-08-17 10:12:54 +00:00
modes.c drm-backend: cache drmModeObjectProperties for connectors 2020-09-16 14:03:18 +00:00
state-helpers.c drm: Introduce drm_plane_reset_state() helper function 2020-08-17 09:44:45 +00:00
state-propose.c drm-backend: cosmetic changes to make the code easier to read 2020-09-07 13:08:18 -03:00
vaapi-recorder.c backend-drm: move into new subdir 2019-05-16 13:32:34 +01:00
vaapi-recorder.h backend-drm: move into new subdir 2019-05-16 13:32:34 +01:00