HYL_OK3568_LINUX/buildroot/package/weston/0093-pixman-renderer-Honor-alpha-channel-for-shadow.patch
2025-05-10 21:49:39 +08:00

29 lines
918 B
Diff

From 0fc0b609631e9d67f7a51015e0cdc070335448e8 Mon Sep 17 00:00:00 2001
From: Jeffy Chen <jeffy.chen@rock-chips.com>
Date: Tue, 30 May 2023 11:23:57 +0800
Subject: [PATCH 93/95] pixman-renderer: Honor alpha channel for shadow
Use AR2 instead of XR24 for gbm format with alpha channel.
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
---
libweston/pixman-renderer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libweston/pixman-renderer.c b/libweston/pixman-renderer.c
index 7678587..60cb7a1 100644
--- a/libweston/pixman-renderer.c
+++ b/libweston/pixman-renderer.c
@@ -1492,7 +1492,7 @@ pixman_renderer_output_create(struct weston_output *output,
h = output->current_mode->height;
po->shadow_image =
- pixman_image_create_bits_no_clear(PIXMAN_x8r8g8b8,
+ pixman_image_create_bits_no_clear(PIXMAN_a8r8g8b8,
w, h, NULL, 0);
if (!po->shadow_image) {
--
2.20.1