From b3e49987c5706612ee342c685dea799be596df6a Mon Sep 17 00:00:00 2001 From: Naoto Yamaguchi Date: Sun, 23 Apr 2023 20:25:45 +0900 Subject: Enable drm-lease support at psplash The upstream version of psplash is supporting fb based splash screen. On the other hand, drm lease infrastructure is not support fb. This patch enable drm-lease support at psplash. This work contributed by Hiroyuki Ishii at CES2023 demo development. Bug-AGL: SPEC-4766 Change-Id: I50b382c7f8ca4b46a8fb06fd649d0cfa49800c6d Signed-off-by: Naoto Yamaguchi --- ...ix-incorrect-drawing-with-portrait-orient.patch | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 meta-agl-drm-lease/recipes-core/psplash/files/0017-drm-lease-Fix-incorrect-drawing-with-portrait-orient.patch (limited to 'meta-agl-drm-lease/recipes-core/psplash/files/0017-drm-lease-Fix-incorrect-drawing-with-portrait-orient.patch') diff --git a/meta-agl-drm-lease/recipes-core/psplash/files/0017-drm-lease-Fix-incorrect-drawing-with-portrait-orient.patch b/meta-agl-drm-lease/recipes-core/psplash/files/0017-drm-lease-Fix-incorrect-drawing-with-portrait-orient.patch new file mode 100644 index 00000000..d68bc49d --- /dev/null +++ b/meta-agl-drm-lease/recipes-core/psplash/files/0017-drm-lease-Fix-incorrect-drawing-with-portrait-orient.patch @@ -0,0 +1,42 @@ +From a4f7a5f0dd287895461cd007b23094459b6b88cb Mon Sep 17 00:00:00 2001 +From: Hiroyuki Ishii +Date: Wed, 28 Dec 2022 15:17:24 +0900 +Subject: [PATCH 17/17] drm-lease: Fix incorrect drawing with portrait + orientation + +Signed-off-by: Hiroyuki Ishii +--- + psplash-drm.c | 17 +++++++++++++++++ + 1 file changed, 17 insertions(+) + +diff --git a/psplash-drm.c b/psplash-drm.c +index a5aff90..c20df13 100644 +--- a/psplash-drm.c ++++ b/psplash-drm.c +@@ -736,6 +736,23 @@ PSplashDRM* psplash_drm_new(int angle, int dev_id) + drm->canvas.angle = angle; + drm->canvas.rgbmode = RGB888; + ++ /* ++ * There seems some difference about handling portrait angle between ++ * pure drm vs drm-lease. We'd use a method as same with psplash-fb ++ * for drm-lease devices. ++ */ ++ if (drm_lease_name) { ++ switch (angle) { ++ case 270: ++ case 90: ++ drm->canvas.width = modeset_list->height; ++ drm->canvas.height = modeset_list->width; ++ break; ++ default: ++ break; ++ } ++ } ++ + return drm; + error: + psplash_drm_destroy(drm); +-- +2.25.1 + -- cgit 1.2.3-korg