You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.3 KiB
38 lines
1.3 KiB
3 weeks ago
|
From e5c80f620e11e401efc8deddc09b86e4b227320e Mon Sep 17 00:00:00 2001
|
||
|
From: Jocelyn Falempe <jfalempe@redhat.com>
|
||
|
Date: Tue, 15 Oct 2024 14:38:55 +0200
|
||
|
Subject: [PATCH 2/2] renderer/native: Add BGRX8888 format to the default list
|
||
|
|
||
|
On big endian machine, the native 32bits format is
|
||
|
DRM_FORMAT_BGRX8888, so add this format to the list.
|
||
|
|
||
|
Tested on a s390x VM, using virtio-gpu driver.
|
||
|
|
||
|
Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
|
||
|
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4088>
|
||
|
(cherry picked from commit e44620c86e76f7150d756609341b97617af50258)
|
||
|
---
|
||
|
src/backends/native/meta-onscreen-native.c | 6 ++++++
|
||
|
1 file changed, 6 insertions(+)
|
||
|
|
||
|
diff --git a/src/backends/native/meta-onscreen-native.c b/src/backends/native/meta-onscreen-native.c
|
||
|
index 8a25fca8cc..18c18f7225 100644
|
||
|
--- a/src/backends/native/meta-onscreen-native.c
|
||
|
+++ b/src/backends/native/meta-onscreen-native.c
|
||
|
@@ -2088,6 +2088,12 @@ choose_onscreen_egl_config (CoglOnscreen *onscreen,
|
||
|
GBM_FORMAT_ABGR2101010,
|
||
|
GBM_FORMAT_RGBA1010102,
|
||
|
GBM_FORMAT_BGRA1010102,
|
||
|
+ GBM_FORMAT_XBGR8888,
|
||
|
+ GBM_FORMAT_ABGR8888,
|
||
|
+ GBM_FORMAT_RGBX8888,
|
||
|
+ GBM_FORMAT_RGBA8888,
|
||
|
+ GBM_FORMAT_BGRX8888,
|
||
|
+ GBM_FORMAT_BGRA8888,
|
||
|
GBM_FORMAT_XRGB8888,
|
||
|
GBM_FORMAT_ARGB8888,
|
||
|
};
|
||
|
--
|
||
|
2.44.0.501.g19981daefd.dirty
|
||
|
|