From 9a4d51580b3b7cd3bdbded043975da1962313f32 Mon Sep 17 00:00:00 2001 From: Madhurkiran Harikrishnan Date: Wed, 12 Feb 2020 15:08:37 -0800 Subject: 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 Signed-off-by: Sai Hari Chandana Kalluri --- ...ton-Remove-substitute-format-for-ARGB8888.patch | 29 ++++++++++++++++++++++ .../recipes-graphics/weston/weston_%.bbappend | 4 ++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 meta-xilinx-bsp/recipes-graphics/weston/files/0001-libweston-Remove-substitute-format-for-ARGB8888.patch 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 @@ +From 77afc64239199f75041ec344f8f886ee20bba0f8 Mon Sep 17 00:00:00 2001 +From: Madhurkiran Harikrishnan +Date: Tue, 11 Feb 2020 19:07:45 -0800 +Subject: [PATCH] libweston: Remove substitute format for ARGB8888 + +Xilinx DP gfx layer does not support XRGB8888. Hence, remove the same +as opaque substitute. + +Signed-off-by: Madhurkiran Harikrishnan +Upstream-Status : Inappropriate [Xilinx specific] +--- + libweston/pixel-formats.c | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/libweston/pixel-formats.c b/libweston/pixel-formats.c +index b96f3b2..e2a7715 100644 +--- a/libweston/pixel-formats.c ++++ b/libweston/pixel-formats.c +@@ -165,7 +165,6 @@ static const struct pixel_format_info pixel_format_table[] = { + }, + { + DRM_FORMAT(ARGB8888), +- .opaque_substitute = DRM_FORMAT_XRGB8888, + .depth = 32, + .bpp = 32, + GL_FORMAT(GL_BGRA_EXT), +-- +2.7.4 + 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 @@ FILESEXTRAPATHS_prepend_zynqmp := "${THISDIR}/files:" -SRC_URI_append_zynqmp = " file://0001-gl-renderer.c-Use-gr-egl_config-to-create-pbuffer-su.patch" +SRC_URI_append_zynqmp = " file://0001-gl-renderer.c-Use-gr-egl_config-to-create-pbuffer-su.patch \ + file://0001-libweston-Remove-substitute-format-for-ARGB8888.patch \ + " -- cgit v1.2.3-54-g00ecf