weston: T3DStressTest_Wayland displays abnormally while using G2D compositor
PATCH v2 1/5 weston: T3DStressTest_Wayland displays abnormally while using G2D compositor
It need add g2d_finish after repaint_region and before copy to framebuffer. Because if using dual dpu cores, the tasks on each core will be executed sequently, but it can't ensure one task splited on dual cores can be finished synchronously by hardware.
Upstream-Status: Inappropriate [i.MX specific]
--- ...c-XWLD-T3DStressTest_Wayland-displays-abn.patch | 40 ++++++++++++++++++++++ recipes-graphics/wayland/weston_%.bbappend | 1 + 2 files changed, 41 insertions(+) create mode 100644 recipes-graphics/wayland/weston/0017-MGS-2343-ccc-XWLD-T3DStressTest_Wayland-displays-abn.patch
recipes-graphics/wayland/weston/0017-MGS-2343-ccc-XWLD-T3DStressTest_Wayland-displays-abn.patch new file +40 -0
@@ -0,0 +1,40 @@ +From 0cc335a411127feb05e16cbf2803058b2db1b405 Mon Sep 17 00:00:00 2001 +From: Meng Mingming <[email protected]> +Date: Thu, 27 Oct 2016 17:00:24 +0800 +Subject: [PATCH 1/2] MGS-2343 [#ccc] XWLD: T3DStressTest_Wayland displays + abnormally while using G2D compositor + +It need add g2d_finish after repaint_region and before copy to framebuffer. +Because if using dual dpu cores, the tasks on each core will be executed +sequently, but it can't ensure one task splited on dual cores can be finished +synchronously by hardware. + +Upstream-Status: Inappropriate [i.MX specific] + +Date: Oct 27, 2016 +Signed-off-by: Meng Mingming <[email protected]> +--- + src/g2d-renderer.c | 1 + + 1 file changed, 1 insertion(+) + +Index: weston-1.11.0/src/g2d-renderer.c +=================================================================== +--- weston-1.11.0.orig/src/g2d-renderer.c 2017-01-12 14:58:11.923607788 -0600 ++++ weston-1.11.0/src/g2d-renderer.c 2017-01-12 18:08:33.328243476 -0600 +@@ -679,6 +679,8 @@ + pixman_region32_t *output_damage) + { + struct g2d_output_state *go = get_output_state(output); ++ struct weston_compositor *compositor = output->compositor; ++ struct g2d_renderer *gr = get_renderer(compositor); + int i; + + use_output(output); +@@ -691,6 +693,7 @@ + &go->buffer_damage[go->current_buffer]); + + repaint_views(output, output_damage); ++ g2d_finish(gr->handle); + + pixman_region32_copy(&output->previous_damage, output_damage); + wl_signal_emit(&output->frame_signal, output);
recipes-graphics/wayland/weston_%.bbappend +1 -0
@@ -15,6 +15,7 @@ SRC_URI_append_imxgpu3d = " \ file://0014-MGS-1987-Get-stride-from-the-FB-buffe.patch \ file://0015-MGS-2221-imx-171-Fix-weston-build-failed.patch \ file://0016-Link-compositor-to-egl.patch \ + file://0017-MGS-2343-ccc-XWLD-T3DStressTest_Wayland-displays-abn.patch \ " # The 'egl' configuration of weston requires gles support, and consideration
Signature · 1 line
1.9.1
PATCH v2 2/5 weston: Enable double buffer with fb_pan_display for weston compositor
Refine offset calculation.
Upstream-Status: Inappropriate [i.MX specific]
--- ...c-Enable-double-buffer-with-fb_pan_displa.patch | 48 ++++++++++++++++++++++ recipes-graphics/wayland/weston_%.bbappend | 1 + 2 files changed, 49 insertions(+) create mode 100644 recipes-graphics/wayland/weston/0018-MGS-2397-ccc-Enable-double-buffer-with-fb_pan_displa.patch
recipes-graphics/wayland/weston/0018-MGS-2397-ccc-Enable-double-buffer-with-fb_pan_displa.patch new file +48 -0
@@ -0,0 +1,48 @@ +From 270319565a07f7ceeb12fac1c267d0dd9ebf2d57 Mon Sep 17 00:00:00 2001 +From: Meng Mingming <[email protected]> +Date: Wed, 16 Nov 2016 15:05:51 +0800 +Subject: [PATCH 17/17] MGS-2397 [#ccc] Enable double buffer with + fb_pan_display for weston compositor + +Refine offset calculation. + +Upstream-Status: Inappropriate [i.MX specific] + +Date: Nov 16, 2016 +Signed-off-by: Meng Mingming <[email protected]> +--- + src/g2d-renderer.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/src/g2d-renderer.c b/src/g2d-renderer.c +index 41c4d9e..c30aa62 100644 +--- a/src/g2d-renderer.c ++++ b/src/g2d-renderer.c +@@ -78,6 +78,7 @@ struct fb_screeninfo { + size_t buffer_length; /* length of frame buffer memory in bytes */ + size_t physical; + size_t stride; ++ size_t stride_bytes; + enum g2d_format pixel_format; /* frame buffer pixel format */ + int fb_fd; + }; +@@ -1136,6 +1137,7 @@ fb_query_screen_info(struct g2d_output_state *output, int fd, + info->physical = fixinfo->smem_start; + info->buffer_length = fixinfo->smem_len; + info->stride = fixinfo->line_length / (varinfo->bits_per_pixel >> 3); ++ info->stride_bytes = fixinfo->line_length; + calculate_g2d_format(varinfo, &info->pixel_format); + + if (info->pixel_format < 0) { +@@ -1205,7 +1207,7 @@ g2d_renderer_surface_create(struct g2d_output_state *go, struct g2d_renderer *gr + return -1; + } + go->renderSurf = zalloc(sizeof(struct g2d_surfaceEx) * go->nNumBuffers); +- offset = go->fb_info.buffer_length/go->nNumBuffers; ++ offset = go->fb_info.stride_bytes * go->fb_info.y_resolution; + for(i = 0; i < go->nNumBuffers; i++) + { + get_G2dSurface_from_screeninfo(&go->fb_info, &go->renderSurf[i]); +-- +2.7.4 +
recipes-graphics/wayland/weston_%.bbappend +1 -0
@@ -16,6 +16,7 @@ SRC_URI_append_imxgpu3d = " \ file://0015-MGS-2221-imx-171-Fix-weston-build-failed.patch \ file://0016-Link-compositor-to-egl.patch \ file://0017-MGS-2343-ccc-XWLD-T3DStressTest_Wayland-displays-abn.patch \ + file://0018-MGS-2397-ccc-Enable-double-buffer-with-fb_pan_displa.patch \ " # The 'egl' configuration of weston requires gles support, and consideration
Signature · 1 line
1.9.1
PATCH v2 3/5 weston: xwayland: Fix crash when run with no input device
In reply to Tom HochsteinStarting an xterm with no input device led to a crash because weston_wm_pick_seat() was returning garbage and weston_wm_selection_init() was trying to use the garbage.
Upstream-Status: Accepted [https://cgit.freedesktop.org/wayland/weston/commit/?id=e7fff215ada3fd3d1b2af664888f960c082f9065]
--- ...d-Fix-crash-when-run-with-no-input-device.patch | 45 ++++++++++++++++++++++ recipes-graphics/wayland/weston_%.bbappend | 4 ++ 2 files changed, 49 insertions(+) create mode 100644 recipes-graphics/wayland/weston/0019-xwayland-Fix-crash-when-run-with-no-input-device.patch
recipes-graphics/wayland/weston/0019-xwayland-Fix-crash-when-run-with-no-input-device.patch new file +45 -0
@@ -0,0 +1,45 @@ +From 60f8817f371123b9c36b3ff1120eec1e8f9e3d10 Mon Sep 17 00:00:00 2001 +From: Tom Hochstein <[email protected]> +Date: Mon, 31 Oct 2016 19:21:58 -0500 +Subject: [PATCH weston] xwayland: Fix crash when run with no input device + +Starting an xterm with no input device led to a crash +because weston_wm_pick_seat() was returning garbage and +weston_wm_selection_init() was trying to use the garbage. + +Signed-off-by: Tom Hochstein <[email protected]> +--- + xwayland/selection.c | 10 +++++++--- + xwayland/window-manager.c | 6 ++++-- + 2 files changed, 11 insertions(+), 5 deletions(-) + +Index: weston-1.11.0/xwayland/selection.c +=================================================================== +--- weston-1.11.0.orig/xwayland/selection.c 2016-05-19 16:36:04.000000000 -0500 ++++ weston-1.11.0/xwayland/selection.c 2016-11-01 14:32:48.000000000 -0500 +@@ -708,6 +708,8 @@ + wm->atom.clipboard, mask); + + seat = weston_wm_pick_seat(wm); ++ if (seat != NULL) ++ return; + wm->selection_listener.notify = weston_wm_set_selection; + wl_signal_add(&seat->selection_signal, &wm->selection_listener); + +Index: weston-1.11.0/xwayland/window-manager.c +=================================================================== +--- weston-1.11.0.orig/xwayland/window-manager.c 2016-05-19 16:36:04.000000000 -0500 ++++ weston-1.11.0/xwayland/window-manager.c 2016-11-01 11:47:14.549606964 -0500 +@@ -1303,8 +1303,10 @@ + struct weston_seat * + weston_wm_pick_seat(struct weston_wm *wm) + { +- return container_of(wm->server->compositor->seat_list.next, +- struct weston_seat, link); ++ struct wl_list *seats = wm->server->compositor->seat_list.next; ++ if (wl_list_empty(seats)) ++ return NULL; ++ return container_of(seats, struct weston_seat, link); + } + + static struct weston_seat *
recipes-graphics/wayland/weston_%.bbappend +4 -0
@@ -19,6 +19,10 @@ SRC_URI_append_imxgpu3d = " \ file://0018-MGS-2397-ccc-Enable-double-buffer-with-fb_pan_displa.patch \ " +SRC_URI_append = " \ + file://0019-xwayland-Fix-crash-when-run-with-no-input-device.patch \ +" + # The 'egl' configuration of weston requires gles support, and consideration # must be taken for the different SoC capabilities: # - For SoCs with 3d support, imx-gpu-viv provides hardware-accelerated
Signature · 1 line
1.9.1
PATCH v2 5/5 weston: Touch events cause startup failure
In reply to Tom HochsteinPressing the touch panel continously during boot up caused weston to crash. The weston view was being accessed before it was fully initialized, so now we guard against this.
Upstream-Status: Denied [Could not reproduce]
---
...68-xwld-System-can-not-boot-up-to-desktop.patch | 44 ++++++++++++++++++++++
...-Fix-crash-when-run-with-no-input-device.patch} | 0
recipes-graphics/wayland/weston_%.bbappend | 3 +-
3 files changed, 46 insertions(+), 1 deletion(-)
create mode 100644 recipes-graphics/wayland/weston/0019-MGS-1668-xwld-System-can-not-boot-up-to-desktop.patch
rename recipes-graphics/wayland/weston/{0019-xwayland-Fix-crash-when-run-with-no-input-device.patch => 0020-xwayland-Fix-crash-when-run-with-no-input-device.patch} (100%)recipes-graphics/wayland/weston/0019-MGS-1668-xwld-System-can-not-boot-up-to-desktop.patch new file +44 -0
@@ -0,0 +1,44 @@ +From d3bc23ef2031e2749362bb0b90e5d164ef5d5942 Mon Sep 17 00:00:00 2001 +From: Meng Mingming <[email protected]> +Date: Mon, 9 Jan 2017 15:08:51 +0800 +Subject: [PATCH 4/6] MGS-1668: xwld: System can not boot up to desktop + +System can not boot up to desktop if press touch panel continuously during booting up. +The weston view was not initialed completely, so add a protection to the pointer. + +Upstream Status: Inappropriate [i.MX specific] + +Date: MAR 08, 2016 +Signed-off-by: Yong Gan <[email protected]> +--- + src/compositor.c | 14 ++++++++------ + 1 file changed, 8 insertions(+), 6 deletions(-) + +diff --git a/src/compositor.c b/src/compositor.c +index b6ef7f3..9d9805d 100644 +--- a/src/compositor.c ++++ b/src/compositor.c +@@ -1470,12 +1470,14 @@ weston_view_from_global_fixed(struct weston_view *view, + { + float vxf, vyf; + +- weston_view_from_global_float(view, +- wl_fixed_to_double(x), +- wl_fixed_to_double(y), +- &vxf, &vyf); +- *vx = wl_fixed_from_double(vxf); +- *vy = wl_fixed_from_double(vyf); ++ if(view != NULL) { ++ weston_view_from_global_float(view, ++ wl_fixed_to_double(x), ++ wl_fixed_to_double(y), ++ &vxf, &vyf); ++ *vx = wl_fixed_from_double(vxf); ++ *vy = wl_fixed_from_double(vyf); ++ } + } + + WL_EXPORT void +-- +2.7.4 +
recipes-graphics/wayland/weston/0020-xwayland-Fix-crash-when-run-with-no-input-device.patch renamed from recipes-graphics/wayland/weston/0019-xwayland-Fix-crash-when-run-with-no-input-device.patch +0 -0
recipes-graphics/wayland/weston_%.bbappend +2 -1
@@ -17,10 +17,11 @@ SRC_URI_append_imxgpu3d = " \ file://0016-Link-compositor-to-egl.patch \ file://0017-MGS-2343-ccc-XWLD-T3DStressTest_Wayland-displays-abn.patch \ file://0018-MGS-2397-ccc-Enable-double-buffer-with-fb_pan_displa.patch \ + file://0019-MGS-1668-xwld-System-can-not-boot-up-to-desktop.patch \ " SRC_URI_append = " \ - file://0019-xwayland-Fix-crash-when-run-with-no-input-device.patch \ + file://0020-xwayland-Fix-crash-when-run-with-no-input-device.patch \ " # The 'egl' configuration of weston requires gles support, and consideration
Signature · 1 line
1.9.1
PATCH v2 4/5 weston: Undo recent command-line change for renderer selection
In reply to Tom HochsteinTo restore command-line compatibility, reverting back to integer-based renderer selection syntax:
weston [--use-gl=0|1] [--use-g2d=0|1]
--- ...d-GPU-VIV-suport-for-wayland-and-weston-1.patch | 75 +++++--------- ...ld-Re-implement-weston-2d-renderer-with-p.patch | 108 ++++++++------------- ...ld-G2D-compositor-build-failed-in-slevk-b.patch | 35 +++++-- ...ld-Add-clone-mode-support-for-multi-displ.patch | 44 ++++----- 4 files changed, 116 insertions(+), 146 deletions(-)
recipes-graphics/wayland/weston/0002-MGS-1111-Add-GPU-VIV-suport-for-wayland-and-weston-1.patch +24 -51
@@ -15,10 +15,10 @@ Signed-off-by: Prabhu <[email protected]> create mode 100644 src/gal2d-renderer.c create mode 100644 src/gal2d-renderer.h -Index: weston-1.11.0/Makefile.am +Index: weston-1.11.1/Makefile.am =================================================================== ---- weston-1.11.0.orig/Makefile.am 2016-05-19 16:36:04.000000000 -0500 -+++ weston-1.11.0/Makefile.am 2016-09-20 15:28:46.634190725 -0500 +--- weston-1.11.1.orig/Makefile.am 2016-09-20 19:35:22.000000000 -0500 ++++ weston-1.11.1/Makefile.am 2017-01-14 08:35:10.000000000 -0600 @@ -247,6 +247,18 @@ src/vertex-clipping.h \ shared/helpers.h
@@ -38,10 +38,10 @@ Index: weston-1.11.0/Makefile.am if ENABLE_X11_COMPOSITOR module_LTLIBRARIES += x11-backend.la -Index: weston-1.11.0/src/compositor-fbdev.c +Index: weston-1.11.1/src/compositor-fbdev.c =================================================================== ---- weston-1.11.0.orig/src/compositor-fbdev.c 2016-05-19 16:36:04.000000000 -0500 -+++ weston-1.11.0/src/compositor-fbdev.c 2016-09-20 17:05:27.000000000 -0500 +--- weston-1.11.1.orig/src/compositor-fbdev.c 2016-09-20 19:35:22.000000000 -0500 ++++ weston-1.11.1/src/compositor-fbdev.c 2017-01-14 08:35:11.000000000 -0600 @@ -50,6 +50,7 @@ #include "libinput-seat.h" #include "gl-renderer.h"
@@ -263,10 +263,10 @@ Index: weston-1.11.0/src/compositor-fbdev.c config->output_transform = WL_OUTPUT_TRANSFORM_NORMAL; } -Index: weston-1.11.0/src/gal2d-renderer.c +Index: weston-1.11.1/src/gal2d-renderer.c =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 -+++ weston-1.11.0/src/gal2d-renderer.c 2016-09-20 16:58:24.000000000 -0500 ++++ weston-1.11.1/src/gal2d-renderer.c 2017-01-14 08:35:10.000000000 -0600 @@ -0,0 +1,1342 @@ +/* + * Copyright (c) 2015 Freescale Semiconductor, Inc.
@@ -1610,10 +1610,10 @@ Index: weston-1.11.0/src/gal2d-renderer.c + .output_create = gal2d_renderer_output_create, + .output_destroy = gal2d_renderer_output_destroy, +}; -Index: weston-1.11.0/src/gal2d-renderer.h +Index: weston-1.11.1/src/gal2d-renderer.h =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 -+++ weston-1.11.0/src/gal2d-renderer.h 2016-09-20 15:28:46.638190745 -0500 ++++ weston-1.11.1/src/gal2d-renderer.h 2017-01-14 08:35:10.000000000 -0600 @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2015 Freescale Semiconductor, Inc.
@@ -1665,10 +1665,10 @@ Index: weston-1.11.0/src/gal2d-renderer.h +}; + +#endif -Index: weston-1.11.0/src/compositor-fbdev.h +Index: weston-1.11.1/src/compositor-fbdev.h =================================================================== ---- weston-1.11.0.orig/src/compositor-fbdev.h 2016-05-19 16:36:04.000000000 -0500 -+++ weston-1.11.0/src/compositor-fbdev.h 2016-09-20 17:03:37.000000000 -0500 +--- weston-1.11.1.orig/src/compositor-fbdev.h 2016-09-20 19:35:22.000000000 -0500 ++++ weston-1.11.1/src/compositor-fbdev.h 2017-01-14 08:35:10.000000000 -0600 @@ -40,6 +40,7 @@ int tty; char *device;
@@ -1677,59 +1677,32 @@ Index: weston-1.11.0/src/compositor-fbdev.h uint32_t output_transform; }; -Index: weston-1.11.0/src/main.c +Index: weston-1.11.1/src/main.c =================================================================== ---- weston-1.11.0.orig/src/main.c 2016-05-19 16:36:04.000000000 -0500 -+++ weston-1.11.0/src/main.c 2016-09-20 17:29:12.000000000 -0500 +--- weston-1.11.1.orig/src/main.c 2017-01-14 08:34:10.030218137 -0600 ++++ weston-1.11.1/src/main.c 2017-01-14 08:54:45.000000000 -0600 @@ -285,7 +285,13 @@ "Options for fbdev-backend.so:\n\n" " --tty=TTY\t\tThe tty to use\n" " --device=DEVICE\tThe framebuffer device to use\n" - " --use-gl\t\tUse the GL renderer\n\n"); +#if defined ENABLE_EGL -+ " --no-use-gl\t\tDo not use the GL renderer\n" -+ " --use-gal2d\t\tUse the GAL2D renderer\n\n"); ++ " --use-gl=1\t\tUse the GL renderer (default is 1)\n" ++ " --use-gal2d=1\t\tUse the GAL2D renderer (default is 0)\n\n"); +#else -+ " --use-gl\t\tUse the GL renderer\n" -+ " --no-use-gal2d\t\tDo not use the GAL2D renderer\n\n"); ++ " --use-gl=1\t\tUse the GL renderer (default is 0)\n" ++ " --use-gal2d=1\t\tUse the GAL2D renderer (default is 1)\n\n"); +#endif #endif #if defined(BUILD_HEADLESS_COMPOSITOR) -@@ -864,18 +870,35 @@ - struct weston_config_section *section; - char *s = NULL; - int ret = 0; -+#ifdef ENABLE_EGL -+ /* GL rendering is default, so user options are --no-use-gl and --use-gal2d */ -+ int no_use_gl = 0; -+#else -+ /* GAL2D rendering is default, so user options are --use-gl and --no-use-gal2d */ -+ int no_use_gal2d = 0; -+#endif - +@@ -868,7 +874,8 @@ const struct weston_option fbdev_options[] = { { WESTON_OPTION_INTEGER, "tty", 0, &config.tty }, { WESTON_OPTION_STRING, "device", 0, &config.device }, -+#ifdef ENABLE_EGL -+ { WESTON_OPTION_BOOLEAN, "no-use-gl", 0, &no_use_gl }, -+ { WESTON_OPTION_BOOLEAN, "use-gal2d", 0, &config.use_gal2d }, -+#else - { WESTON_OPTION_BOOLEAN, "use-gl", 0, &config.use_gl }, -+ { WESTON_OPTION_BOOLEAN, "no-use-gal2d", 0, &no_use_gal2d }, -+#endif +- { WESTON_OPTION_BOOLEAN, "use-gl", 0, &config.use_gl }, ++ { WESTON_OPTION_INTEGER, "use-gl", 0, &config.use_gl }, ++ { WESTON_OPTION_INTEGER, "use-gal2d", 0, &config.use_gal2d }, }; parse_options(fbdev_options, ARRAY_LENGTH(fbdev_options), argc, argv); - - if (!config.device) - config.device = strdup("/dev/fb0"); -- -+#ifdef ENABLE_EGL -+ config.use_gl = !no_use_gl; -+#else -+ config.use_gal2d = !no_use_gal2d; -+#endif - section = weston_config_get_section(wc, "output", "name", "fbdev"); - weston_config_section_get_string(section, "transform", &s, "normal"); - if (weston_parse_transform(s, &config.output_transform) < 0)
recipes-graphics/wayland/weston/0009-MGS-1284-xwld-Re-implement-weston-2d-renderer-with-p.patch +41 -67
176 lines not on this page · raw message
recipes-graphics/wayland/weston/0011-MGS-1724-xwld-G2D-compositor-build-failed-in-slevk-b.patch +29 -6
@@ -15,10 +15,10 @@ Signed-off-by: Yong Gan <[email protected]> src/g2d-renderer.c | 4 ++-- 2 files changed, 12 insertions(+), 3 deletions(-) -Index: weston-1.11.0/src/compositor-fbdev.c +Index: weston-1.11.1/src/compositor-fbdev.c =================================================================== ---- weston-1.11.0.orig/src/compositor-fbdev.c 2016-10-06 13:11:53.376414804 -0500 -+++ weston-1.11.0/src/compositor-fbdev.c 2016-10-06 13:19:16.000000000 -0500 +--- weston-1.11.1.orig/src/compositor-fbdev.c 2017-01-14 09:47:24.064006974 -0600 ++++ weston-1.11.1/src/compositor-fbdev.c 2017-01-14 09:55:59.000000000 -0600 @@ -63,7 +63,9 @@ int use_g2d; uint32_t output_transform;
@@ -86,10 +86,10 @@ Index: weston-1.11.0/src/compositor-fbdev.c } if(!backend->use_g2d) if (fbdev_output_create(backend, 0, 0, param->device) < 0) -Index: weston-1.11.0/src/g2d-renderer.c +Index: weston-1.11.1/src/g2d-renderer.c =================================================================== ---- weston-1.11.0.orig/src/g2d-renderer.c 2016-10-06 13:11:53.376414804 -0500 -+++ weston-1.11.0/src/g2d-renderer.c 2016-10-06 13:11:53.372414784 -0500 +--- weston-1.11.1.orig/src/g2d-renderer.c 2017-01-14 09:47:24.152007410 -0600 ++++ weston-1.11.1/src/g2d-renderer.c 2017-01-14 09:48:56.000000000 -0600 @@ -756,11 +756,11 @@ switch (wl_shm_buffer_get_format(shm_buffer)) {
@@ -104,3 +104,26 @@ Index: weston-1.11.0/src/g2d-renderer.c gs->bpp = 4; break; case WL_SHM_FORMAT_RGB565: +Index: weston-1.11.1/src/main.c +=================================================================== +--- weston-1.11.1.orig/src/main.c 2017-01-14 10:02:42.000000000 -0600 ++++ weston-1.11.1/src/main.c 2017-01-14 10:02:58.000000000 -0600 +@@ -866,7 +866,17 @@ + load_fbdev_backend(struct weston_compositor *c, char const * backend, + int *argc, char **argv, struct weston_config *wc) + { +- struct weston_fbdev_backend_config config = {{ 0, }}; ++ struct weston_fbdev_backend_config config = { ++ .base = {0}, ++#ifdef ENABLE_EGL ++ .use_gl = 1, ++ .use_g2d = 0, ++#else ++ .use_gl = 0, ++ .use_g2d = 1, ++#endif ++ .clone_mode = 0, ++ }; + struct weston_config_section *section; + char *s = NULL; + int ret = 0;
recipes-graphics/wayland/weston/0012-MGS-1783-xwld-Add-clone-mode-support-for-multi-displ.patch +22 -22
81 lines not on this page · raw message
Signature · 1 line
1.9.1