summaryrefslogtreecommitdiff
path: root/recipes-graphics/wayland/files/0004-use-name-based-detection-of-display-and-render-nodes.patch
diff options
context:
space:
mode:
authorGerard Salvatella <gerard.salvatella@toradex.com>2019-04-29 17:46:25 +0200
committerGerard Salvatella <gerard.salvatella@toradex.com>2019-05-02 14:28:45 +0200
commit04e18ad937f96c33dce8123b49de29bea67b49b3 (patch)
tree76178bc0be524a6d72eb68012eb21327fa3079c7 /recipes-graphics/wayland/files/0004-use-name-based-detection-of-display-and-render-nodes.patch
parent838010d81f0a3a81be5efd65e5a4c59a1bf2b99d (diff)
weston: drop support for weston 1.x
Maintaining the current bbappend for weston 1.x versions generates an annoying warning in OE (new in thud), since we do not have any recipe for weston 1.x. Given that the current version of weston is 6.0, it doesn't make much sense to keep these patches. Signed-off-by: Gerard Salvatella <gerard.salvatella@toradex.com>
Diffstat (limited to 'recipes-graphics/wayland/files/0004-use-name-based-detection-of-display-and-render-nodes.patch')
-rw-r--r--recipes-graphics/wayland/files/0004-use-name-based-detection-of-display-and-render-nodes.patch73
1 files changed, 0 insertions, 73 deletions
diff --git a/recipes-graphics/wayland/files/0004-use-name-based-detection-of-display-and-render-nodes.patch b/recipes-graphics/wayland/files/0004-use-name-based-detection-of-display-and-render-nodes.patch
deleted file mode 100644
index a5969ab..0000000
--- a/recipes-graphics/wayland/files/0004-use-name-based-detection-of-display-and-render-nodes.patch
+++ /dev/null
@@ -1,73 +0,0 @@
-From 6c8d3da72fabd2a915e18dbf9fb65b7c1134d65d Mon Sep 17 00:00:00 2001
-From: Alexandre Courbot <acourbot@nvidia.com>
-Date: Fri, 9 Sep 2016 15:06:27 +0900
-Subject: [PATCH 4/6] use name-based detection of display and render nodes
-
-The previous detection scheme assumed that the graphics nodes were under
-"soc0". This is no longer true for Jetson TX1. Instead, assume that
-card0 is the display node, and card1 the render one.
----
- src/compositor-drm.c | 39 ++++++++-------------------------------
- 1 file changed, 8 insertions(+), 31 deletions(-)
-
-diff --git a/src/compositor-drm.c b/src/compositor-drm.c
-index 17ba640..214fc41 100644
---- a/src/compositor-drm.c
-+++ b/src/compositor-drm.c
-@@ -2871,7 +2871,7 @@ find_primary_gpu(struct drm_backend *b, const char *seat)
- struct udev_enumerate *e;
- struct udev_list_entry *entry;
- const char *path, *device_seat, *id;
-- struct udev_device *device, *drm_device, *pci, *soc = NULL;
-+ struct udev_device *device, *drm_device, *pci;
-
- e = udev_enumerate_new(b->udev);
- udev_enumerate_add_match_subsystem(e, "drm");
-@@ -2904,37 +2904,14 @@ find_primary_gpu(struct drm_backend *b, const char *seat)
- break;
- }
- } else {
-- soc = udev_device_get_parent_with_subsystem_devtype(
-- device,
-- "soc",
-- NULL);
-- if (soc) {
-- id = udev_device_get_sysattr_value(soc,
-- "family");
-- if (id && !strcmp(id, "Tegra")) {
-- if (drm_device) {
-- /* Previously have found the
-- * drm device, use this device
-- * as the GBM device
-- */
-- if (udev_device_get_devnode(
-- device)) {
-- b->gbm.filename = strdup(
-- udev_device_get_devnode(device));
-- break;
-- }
-- continue;
-- }
-- drm_device = device;
-- continue;
-- }
-- }
-+ id = udev_device_get_sysname(device);
-+ if (!strcmp(id, "card0"))
-+ drm_device = device;
-+ else if (!strcmp(id, "card1"))
-+ b->gbm.filename = strdup(udev_device_get_devnode(device));
-+ else
-+ udev_device_unref(device);
- }
--
-- if (!drm_device)
-- drm_device = device;
-- else
-- udev_device_unref(device);
- }
-
- udev_enumerate_unref(e);
---
-2.9.3
-