summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Majewski <m.majewski2@samsung.com>2024-02-16 10:50:42 +0100
committerMateusz Majewski <m.majewski2@samsung.com>2024-04-29 14:12:20 +0200
commit029d92ccd3eeb44b2260238013f6213e6b1ff3a4 (patch)
treecd94521bf5c611cc208a32a3e980e6691b9145c6
parent63c5ea640d9e4234af8aeb14c44e227b5f3a15d0 (diff)
downloadlibtdm-drm-sandbox/mmajewski2/xrgb2.tar.gz
libtdm-drm-sandbox/mmajewski2/xrgb2.tar.bz2
libtdm-drm-sandbox/mmajewski2/xrgb2.zip
Use XRGB for the screen format instead of ARGBsandbox/mmajewski2/xrgb2
ARGB is not needed, since the screen cannot display transparency anyway. Meanwhile some targets (in our case, virtgpu) cannot handle ARGB.
-rw-r--r--src/tdm_drm_hwc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tdm_drm_hwc.c b/src/tdm_drm_hwc.c
index 34c21a8..e9f6aba 100644
--- a/src/tdm_drm_hwc.c
+++ b/src/tdm_drm_hwc.c
@@ -752,7 +752,7 @@ drm_hwc_target_window_set_info(tdm_drm_hwc *hwc_data, int width, int height)
info.src_config.size.h = width;
info.src_config.size.v = height;
- info.src_config.format = TBM_FORMAT_ARGB8888;
+ info.src_config.format = TBM_FORMAT_XRGB8888;
ret = drm_hwc_window_set_info(target_hwc_window, &info);
if (ret != HAL_TDM_ERROR_NONE) {
@@ -784,7 +784,7 @@ drm_hwc_initailize_target_window(tdm_drm_hwc *hwc_data)
info.src_config.size.h = 2;
info.src_config.size.v = 1;
- info.src_config.format = TBM_FORMAT_ARGB8888;
+ info.src_config.format = TBM_FORMAT_XRGB8888;
target_hwc_window = _drm_hwc_create_window(hwc_data, &info, &ret);
if (ret != HAL_TDM_ERROR_NONE) {