[mutter/wip/rstrode/rhel-8.0.0: 20/30] renderer/native: use GBM_FORMAT_ARGB8888 for primary rendering format
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/rstrode/rhel-8.0.0: 20/30] renderer/native: use GBM_FORMAT_ARGB8888 for primary rendering format
- Date: Mon, 28 Jan 2019 15:51:17 +0000 (UTC)
commit bdca6cc5401e94087053217dece51a839ed6173e
Author: Ray Strode <rstrode redhat com>
Date: Fri Nov 30 14:10:38 2018 -0500
renderer/native: use GBM_FORMAT_ARGB8888 for primary rendering format
At the moment we use GBM_FORMAT_XRGB8888 which unfortunately triggers
slow read pixels code in mesa.
This commit changes it to ARGB8888 instead, which copies with memcpy.
src/backends/native/meta-renderer-native.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/backends/native/meta-renderer-native.c b/src/backends/native/meta-renderer-native.c
index 1d3513e8f..4aa94c572 100644
--- a/src/backends/native/meta-renderer-native.c
+++ b/src/backends/native/meta-renderer-native.c
@@ -1004,7 +1004,7 @@ meta_renderer_native_choose_egl_config (CoglDisplay *cogl_display,
return choose_egl_config_from_gbm_format (egl,
egl_display,
attributes,
- GBM_FORMAT_XRGB8888,
+ GBM_FORMAT_ARGB8888,
out_config,
error);
#ifdef HAVE_EGL_DEVICE
@@ -2127,7 +2127,7 @@ meta_renderer_native_create_surface_gbm (CoglOnscreen *onscreen,
struct gbm_surface *new_gbm_surface = NULL;
EGLNativeWindowType egl_native_window;
EGLSurface new_egl_surface;
- uint32_t format = GBM_FORMAT_XRGB8888;
+ uint32_t format = GBM_FORMAT_ARGB8888;
GArray *modifiers;
renderer_gpu_data =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]