mirror of
https://github.com/brl/mutter.git
synced 2025-02-16 13:24:09 +00:00
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.
This commit is contained in:
parent
008a12a637
commit
88a7b6e1da
@ -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 =
|
||||
|
Loading…
x
Reference in New Issue
Block a user