diff options
author | Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp> | 2023-04-23 20:25:45 +0900 |
---|---|---|
committer | Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp> | 2023-05-09 08:13:10 +0900 |
commit | b3e49987c5706612ee342c685dea799be596df6a (patch) | |
tree | 7c4e724755638a387fa7bf555e050f59be81fbbe /meta-agl-drm-lease/recipes-core/psplash/files/0017-drm-lease-Fix-incorrect-drawing-with-portrait-orient.patch | |
parent | a070ad4db8e4a35fc34b0610b56dcfc1e2caaad3 (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: I50b382c7f8ca4b46a8fb06fd649d0cfa49800c6d
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.patch | 42 |
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 + |