summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-bsp
diff options
context:
space:
mode:
authorMadhurkiran Harikrishnan <madhurkiran.harikrishnan@xilinx.com>2020-02-12 15:08:37 -0800
committerSai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>2020-02-12 18:32:15 -0800
commit9a4d51580b3b7cd3bdbded043975da1962313f32 (patch)
treee49586a7de9ab4ba9f5ded169196cbf3a893a3cc /meta-xilinx-bsp
parent5258d8cb951625f0db4e974ab079aa441211d2bb (diff)
downloadmeta-xilinx-9a4d51580b3b7cd3bdbded043975da1962313f32.tar.gz
weston: Remove opaque substitute for ARGB8888 as ZynqMP DP does not support
ARGB888 GBM format has XRGB8888 as opaque substitute, which ZynqMP DP avbuf subsytem does not support in gfx layer, causing a blank screen. By removing the opaque substitute, the default format will be used i.e. ARGB8888. Signed-off-by: Madhurkiran Harikrishnan <madhurkiran.harikrishnan@xilinx.com> Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>
Diffstat (limited to 'meta-xilinx-bsp')
-rw-r--r--meta-xilinx-bsp/recipes-graphics/weston/files/0001-libweston-Remove-substitute-format-for-ARGB8888.patch29
-rw-r--r--meta-xilinx-bsp/recipes-graphics/weston/weston_%.bbappend4
2 files changed, 32 insertions, 1 deletions
diff --git a/meta-xilinx-bsp/recipes-graphics/weston/files/0001-libweston-Remove-substitute-format-for-ARGB8888.patch b/meta-xilinx-bsp/recipes-graphics/weston/files/0001-libweston-Remove-substitute-format-for-ARGB8888.patch
new file mode 100644
index 00000000..e8e8a1f0
--- /dev/null
+++ b/meta-xilinx-bsp/recipes-graphics/weston/files/0001-libweston-Remove-substitute-format-for-ARGB8888.patch
@@ -0,0 +1,29 @@
1From 77afc64239199f75041ec344f8f886ee20bba0f8 Mon Sep 17 00:00:00 2001
2From: Madhurkiran Harikrishnan <madhurkiran.harikrishnan@xilinx.com>
3Date: Tue, 11 Feb 2020 19:07:45 -0800
4Subject: [PATCH] libweston: Remove substitute format for ARGB8888
5
6Xilinx DP gfx layer does not support XRGB8888. Hence, remove the same
7as opaque substitute.
8
9Signed-off-by: Madhurkiran Harikrishnan <madhurkiran.harikrishnan@xilinx.com>
10Upstream-Status : Inappropriate [Xilinx specific]
11---
12 libweston/pixel-formats.c | 1 -
13 1 file changed, 1 deletion(-)
14
15diff --git a/libweston/pixel-formats.c b/libweston/pixel-formats.c
16index b96f3b2..e2a7715 100644
17--- a/libweston/pixel-formats.c
18+++ b/libweston/pixel-formats.c
19@@ -165,7 +165,6 @@ static const struct pixel_format_info pixel_format_table[] = {
20 },
21 {
22 DRM_FORMAT(ARGB8888),
23- .opaque_substitute = DRM_FORMAT_XRGB8888,
24 .depth = 32,
25 .bpp = 32,
26 GL_FORMAT(GL_BGRA_EXT),
27--
282.7.4
29
diff --git a/meta-xilinx-bsp/recipes-graphics/weston/weston_%.bbappend b/meta-xilinx-bsp/recipes-graphics/weston/weston_%.bbappend
index 177bf107..a13b627a 100644
--- a/meta-xilinx-bsp/recipes-graphics/weston/weston_%.bbappend
+++ b/meta-xilinx-bsp/recipes-graphics/weston/weston_%.bbappend
@@ -1,3 +1,5 @@
1FILESEXTRAPATHS_prepend_zynqmp := "${THISDIR}/files:" 1FILESEXTRAPATHS_prepend_zynqmp := "${THISDIR}/files:"
2 2
3SRC_URI_append_zynqmp = " file://0001-gl-renderer.c-Use-gr-egl_config-to-create-pbuffer-su.patch" 3SRC_URI_append_zynqmp = " file://0001-gl-renderer.c-Use-gr-egl_config-to-create-pbuffer-su.patch \
4 file://0001-libweston-Remove-substitute-format-for-ARGB8888.patch \
5 "