summaryrefslogtreecommitdiffstats
path: root/meta-agl-drm-lease/recipes-core/psplash/files/0017-drm-lease-Fix-incorrect-drawing-with-portrait-orient.patch
diff options
context:
space:
mode:
authorNaoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>2023-04-23 20:25:45 +0900
committerNaoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>2023-06-01 05:55:44 +0900
commit1abeb16b8222efb6608ce9a0f852c1f94d5c9ee6 (patch)
tree6a174add13db69702dcacb2c50560ce370b355dc /meta-agl-drm-lease/recipes-core/psplash/files/0017-drm-lease-Fix-incorrect-drawing-with-portrait-orient.patch
parent3bdbed71338a7b1570a8b3d7b30ebae92f80e4e5 (diff)
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: Idd9a1f5c96c5e294099f2d9c2ef87c5ca5769c2e Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
Diffstat (limited to 'meta-agl-drm-lease/recipes-core/psplash/files/0017-drm-lease-Fix-incorrect-drawing-with-portrait-orient.patch')
-rw-r--r--meta-agl-drm-lease/recipes-core/psplash/files/0017-drm-lease-Fix-incorrect-drawing-with-portrait-orient.patch42
1 files changed, 42 insertions, 0 deletions
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 <ishii.hiroyuki002@jp.panasonic.com>
+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 <ishii.hiroyuki002@jp.panasonic.com>
+---
+ 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
+