compositor-drm: remove connector option
Remove the option, because it is hard to use. Drm connector ids are hard to reach for users, and they can change when kernel or device tree is modified. Signed-off-by: Emre Ucan <eucan@de.adit-jv.com> Reviewed-by: Daniel Stone <daniels@collabora.com> [Pekka: bump WESTON_DRM_BACKEND_CONFIG_VERSION] Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
committed by
Pekka Paalanen
parent
156bd065c9
commit
38ea2d2254
@@ -183,7 +183,6 @@ struct drm_backend {
|
||||
int32_t cursor_width;
|
||||
int32_t cursor_height;
|
||||
|
||||
uint32_t connector;
|
||||
uint32_t pageflip_timeout;
|
||||
};
|
||||
|
||||
@@ -3411,9 +3410,7 @@ create_outputs(struct drm_backend *b, struct udev_device *drm_device)
|
||||
if (connector == NULL)
|
||||
continue;
|
||||
|
||||
if (connector->connection == DRM_MODE_CONNECTED &&
|
||||
(b->connector == 0 ||
|
||||
connector->connector_id == b->connector)) {
|
||||
if (connector->connection == DRM_MODE_CONNECTED) {
|
||||
ret = create_output_for_connector(b, resources,
|
||||
connector, drm_device);
|
||||
if (ret < 0)
|
||||
@@ -3466,11 +3463,6 @@ update_outputs(struct drm_backend *b, struct udev_device *drm_device)
|
||||
continue;
|
||||
}
|
||||
|
||||
if (b->connector && (b->connector != connector_id)) {
|
||||
drmModeFreeConnector(connector);
|
||||
continue;
|
||||
}
|
||||
|
||||
connected[i] = connector_id;
|
||||
|
||||
if (drm_output_find_by_connector(b, connector_id)) {
|
||||
@@ -4067,8 +4059,6 @@ drm_backend_create(struct weston_compositor *compositor,
|
||||
goto err_sprite;
|
||||
}
|
||||
|
||||
b->connector = config->connector;
|
||||
|
||||
if (create_outputs(b, drm_device) < 0) {
|
||||
weston_log("failed to create output for %s\n", b->drm.filename);
|
||||
goto err_udev_input;
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define WESTON_DRM_BACKEND_CONFIG_VERSION 2
|
||||
#define WESTON_DRM_BACKEND_CONFIG_VERSION 3
|
||||
|
||||
struct libinput_device;
|
||||
|
||||
@@ -98,12 +98,6 @@ weston_drm_output_get_api(struct weston_compositor *compositor)
|
||||
struct weston_drm_backend_config {
|
||||
struct weston_backend_config base;
|
||||
|
||||
/** The connector id of the output to be initialized.
|
||||
*
|
||||
* A value of 0 will enable all available outputs.
|
||||
*/
|
||||
int connector;
|
||||
|
||||
/** The tty to be used. Set to 0 to use the current tty. */
|
||||
int tty;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user