[mutter/wip/3-monitors-on-nvidia: 7/16] 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/3-monitors-on-nvidia: 7/16] renderer/native: use GBM_FORMAT_ARGB8888 for primary rendering format
- Date: Fri, 30 Nov 2018 19:35:03 +0000 (UTC)
commit 88a7b6e1da43d166361689278e9c59aa9a5b06ec
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 04d325db2..f1f3e3c70 100644
--- a/src/backends/native/meta-renderer-native.c
+++ b/src/backends/native/meta-renderer-native.c
@@ -1006,7 +1006,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
@@ -2152,7 +2152,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]