All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] weston: T3DStressTest_Wayland displays abnormally while using G2D compositor
@ 2017-01-15 14:50 Tom Hochstein
  2017-01-15 14:50 ` [PATCH 2/4] weston: Enable double buffer with fb_pan_display for weston compositor Tom Hochstein
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Tom Hochstein @ 2017-01-15 14:50 UTC (permalink / raw)
  To: meta-freescale

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]

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
---
 ...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

diff --git a/recipes-graphics/wayland/weston/0017-MGS-2343-ccc-XWLD-T3DStressTest_Wayland-displays-abn.patch b/recipes-graphics/wayland/weston/0017-MGS-2343-ccc-XWLD-T3DStressTest_Wayland-displays-abn.patch
new file mode 100644
index 0000000..d0b82aa
--- /dev/null
+++ b/recipes-graphics/wayland/weston/0017-MGS-2343-ccc-XWLD-T3DStressTest_Wayland-displays-abn.patch
@@ -0,0 +1,40 @@
+From 0cc335a411127feb05e16cbf2803058b2db1b405 Mon Sep 17 00:00:00 2001
+From: Meng Mingming <mingming.meng@nxp.com>
+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 <mingming.meng@nxp.com>
+---
+ 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);
diff --git a/recipes-graphics/wayland/weston_%.bbappend b/recipes-graphics/wayland/weston_%.bbappend
index b78a299..aa13f27 100644
--- a/recipes-graphics/wayland/weston_%.bbappend
+++ b/recipes-graphics/wayland/weston_%.bbappend
@@ -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
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/4] weston: Enable double buffer with fb_pan_display for weston compositor
  2017-01-15 14:50 [PATCH 1/4] weston: T3DStressTest_Wayland displays abnormally while using G2D compositor Tom Hochstein
@ 2017-01-15 14:50 ` Tom Hochstein
  2017-01-15 14:50 ` [PATCH 3/4] weston: xwayland: Fix crash when run with no input device Tom Hochstein
  2017-01-15 14:50 ` [PATCH 4/4] weston: Undo recent command-line change for renderer selection Tom Hochstein
  2 siblings, 0 replies; 4+ messages in thread
From: Tom Hochstein @ 2017-01-15 14:50 UTC (permalink / raw)
  To: meta-freescale

Refine offset calculation.

Upstream-Status: Inappropriate [i.MX specific]

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
---
 ...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

diff --git a/recipes-graphics/wayland/weston/0018-MGS-2397-ccc-Enable-double-buffer-with-fb_pan_displa.patch b/recipes-graphics/wayland/weston/0018-MGS-2397-ccc-Enable-double-buffer-with-fb_pan_displa.patch
new file mode 100644
index 0000000..4ce1871
--- /dev/null
+++ b/recipes-graphics/wayland/weston/0018-MGS-2397-ccc-Enable-double-buffer-with-fb_pan_displa.patch
@@ -0,0 +1,48 @@
+From 270319565a07f7ceeb12fac1c267d0dd9ebf2d57 Mon Sep 17 00:00:00 2001
+From: Meng Mingming <mingming.meng@nxp.com>
+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 <mingming.meng@nxp.com>
+---
+ 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
+
diff --git a/recipes-graphics/wayland/weston_%.bbappend b/recipes-graphics/wayland/weston_%.bbappend
index aa13f27..8a47ba5 100644
--- a/recipes-graphics/wayland/weston_%.bbappend
+++ b/recipes-graphics/wayland/weston_%.bbappend
@@ -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
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 3/4] weston: xwayland: Fix crash when run with no input device
  2017-01-15 14:50 [PATCH 1/4] weston: T3DStressTest_Wayland displays abnormally while using G2D compositor Tom Hochstein
  2017-01-15 14:50 ` [PATCH 2/4] weston: Enable double buffer with fb_pan_display for weston compositor Tom Hochstein
@ 2017-01-15 14:50 ` Tom Hochstein
  2017-01-15 14:50 ` [PATCH 4/4] weston: Undo recent command-line change for renderer selection Tom Hochstein
  2 siblings, 0 replies; 4+ messages in thread
From: Tom Hochstein @ 2017-01-15 14:50 UTC (permalink / raw)
  To: meta-freescale

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.

Upstream-Status: Accepted [https://cgit.freedesktop.org/wayland/weston/commit/?id=e7fff215ada3fd3d1b2af664888f960c082f9065]

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
---
 ...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

diff --git a/recipes-graphics/wayland/weston/0019-xwayland-Fix-crash-when-run-with-no-input-device.patch b/recipes-graphics/wayland/weston/0019-xwayland-Fix-crash-when-run-with-no-input-device.patch
new file mode 100644
index 0000000..1304cef
--- /dev/null
+++ b/recipes-graphics/wayland/weston/0019-xwayland-Fix-crash-when-run-with-no-input-device.patch
@@ -0,0 +1,45 @@
+From 60f8817f371123b9c36b3ff1120eec1e8f9e3d10 Mon Sep 17 00:00:00 2001
+From: Tom Hochstein <tom.hochstein@nxp.com>
+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 <tom.hochstein@nxp.com>
+---
+ 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 *
diff --git a/recipes-graphics/wayland/weston_%.bbappend b/recipes-graphics/wayland/weston_%.bbappend
index 8a47ba5..dfd7da4 100644
--- a/recipes-graphics/wayland/weston_%.bbappend
+++ b/recipes-graphics/wayland/weston_%.bbappend
@@ -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
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 4/4] weston: Undo recent command-line change for renderer selection
  2017-01-15 14:50 [PATCH 1/4] weston: T3DStressTest_Wayland displays abnormally while using G2D compositor Tom Hochstein
  2017-01-15 14:50 ` [PATCH 2/4] weston: Enable double buffer with fb_pan_display for weston compositor Tom Hochstein
  2017-01-15 14:50 ` [PATCH 3/4] weston: xwayland: Fix crash when run with no input device Tom Hochstein
@ 2017-01-15 14:50 ` Tom Hochstein
  2 siblings, 0 replies; 4+ messages in thread
From: Tom Hochstein @ 2017-01-15 14:50 UTC (permalink / raw)
  To: meta-freescale

To restore command-line compatibility, reverting back to
integer-based renderer selection syntax:

weston [--use-gl=0|1] [--use-g2d=0|1]

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
---
 ...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(-)

diff --git a/recipes-graphics/wayland/weston/0002-MGS-1111-Add-GPU-VIV-suport-for-wayland-and-weston-1.patch b/recipes-graphics/wayland/weston/0002-MGS-1111-Add-GPU-VIV-suport-for-wayland-and-weston-1.patch
index 9a80d9e..cfe8f60 100644
--- a/recipes-graphics/wayland/weston/0002-MGS-1111-Add-GPU-VIV-suport-for-wayland-and-weston-1.patch
+++ b/recipes-graphics/wayland/weston/0002-MGS-1111-Add-GPU-VIV-suport-for-wayland-and-weston-1.patch
@@ -15,10 +15,10 @@ Signed-off-by: Prabhu <prabhu.sundararaj@freescale.com>
  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)
diff --git a/recipes-graphics/wayland/weston/0009-MGS-1284-xwld-Re-implement-weston-2d-renderer-with-p.patch b/recipes-graphics/wayland/weston/0009-MGS-1284-xwld-Re-implement-weston-2d-renderer-with-p.patch
index 0afbd4b..f48785f 100644
--- a/recipes-graphics/wayland/weston/0009-MGS-1284-xwld-Re-implement-weston-2d-renderer-with-p.patch
+++ b/recipes-graphics/wayland/weston/0009-MGS-1284-xwld-Re-implement-weston-2d-renderer-with-p.patch
@@ -25,10 +25,10 @@ Signed-off-by: Yong Gan <yong.gan@freescale.com>
  delete mode 100644 src/gal2d-renderer.c
  delete 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-10-06 14:26:20.254564856 -0500
-+++ weston-1.11.0/Makefile.am	2016-10-06 14:28:47.000000000 -0500
+--- weston-1.11.1.orig/Makefile.am	2017-01-14 08:59:52.293865810 -0600
++++ weston-1.11.1/Makefile.am	2017-01-14 09:08:38.000000000 -0600
 @@ -247,16 +247,16 @@
  	src/vertex-clipping.h			\
  	shared/helpers.h
@@ -54,10 +54,10 @@ Index: weston-1.11.0/Makefile.am
  	src/vertex-clipping.c			\
  	src/vertex-clipping.h
  
-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 14:26:20.418565670 -0500
-+++ weston-1.11.0/src/compositor-fbdev.c	2016-10-06 14:28:47.000000000 -0500
+--- weston-1.11.1.orig/src/compositor-fbdev.c	2017-01-14 08:59:52.473866702 -0600
++++ weston-1.11.1/src/compositor-fbdev.c	2017-01-14 09:19:12.000000000 -0600
 @@ -50,7 +50,7 @@
  #include "libinput-seat.h"
  #include "gl-renderer.h"
@@ -186,23 +186,25 @@ Index: weston-1.11.0/src/compositor-fbdev.c
  		if (fbdev_output_create(backend, 0, 0, param->device) < 0)
  			goto out_launcher;
  
-@@ -924,10 +898,10 @@
+@@ -922,13 +896,8 @@
+ 	 * udev, rather than passing a device node in as a parameter. */
+ 	config->tty = 0; /* default to current tty */
  	config->device = "/dev/fb0"; /* default frame buffer */
- #ifdef ENABLE_EGL
- 	config->use_gl = 1;
+-#ifdef ENABLE_EGL
+-	config->use_gl = 1;
 -	config->use_gal2d = 0;
-+	config->use_g2d = 0;
- #else
+-#else
  	config->use_gl = 0;
 -	config->use_gal2d = 1;
-+	config->use_g2d = 1;
- #endif
+-#endif
++	config->use_g2d = 0;
  	config->output_transform = WL_OUTPUT_TRANSFORM_NORMAL;
  }
-Index: weston-1.11.0/src/g2d-renderer.c
+ 
+Index: weston-1.11.1/src/g2d-renderer.c
 ===================================================================
 --- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ weston-1.11.0/src/g2d-renderer.c	2016-10-06 14:28:47.000000000 -0500
++++ weston-1.11.1/src/g2d-renderer.c	2017-01-14 09:08:38.000000000 -0600
 @@ -0,0 +1,1175 @@
 +/*
 + * Copyright (c) 2016 Freescale Semiconductor, Inc.
@@ -1379,10 +1381,10 @@ Index: weston-1.11.0/src/g2d-renderer.c
 +	.output_create = g2d_renderer_output_create,
 +	.output_destroy = g2d_renderer_output_destroy,
 +};
-Index: weston-1.11.0/src/g2d-renderer.h
+Index: weston-1.11.1/src/g2d-renderer.h
 ===================================================================
 --- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ weston-1.11.0/src/g2d-renderer.h	2016-10-06 14:28:47.000000000 -0500
++++ weston-1.11.1/src/g2d-renderer.h	2017-01-14 09:08:38.000000000 -0600
 @@ -0,0 +1,48 @@
 +/*
 + * Copyright (c) 2015 Freescale Semiconductor, Inc.
@@ -1432,9 +1434,9 @@ Index: weston-1.11.0/src/g2d-renderer.h
 +};
 +
 +#endif
-Index: weston-1.11.0/src/gal2d-renderer.c
+Index: weston-1.11.1/src/gal2d-renderer.c
 ===================================================================
---- weston-1.11.0.orig/src/gal2d-renderer.c	2016-10-06 14:26:20.678566959 -0500
+--- weston-1.11.1.orig/src/gal2d-renderer.c	2017-01-14 08:59:52.753868091 -0600
 +++ /dev/null	1970-01-01 00:00:00.000000000 +0000
 @@ -1,1307 +0,0 @@
 -/*
@@ -2744,9 +2746,9 @@ 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
 ===================================================================
---- weston-1.11.0.orig/src/gal2d-renderer.h	2016-10-06 14:26:20.254564856 -0500
+--- weston-1.11.1.orig/src/gal2d-renderer.h	2017-01-14 08:59:52.297865829 -0600
 +++ /dev/null	1970-01-01 00:00:00.000000000 +0000
 @@ -1,50 +0,0 @@
 -/*
@@ -2799,64 +2801,36 @@ Index: weston-1.11.0/src/gal2d-renderer.h
 -};
 -
 -#endif
-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-10-06 14:26:20.258564876 -0500
-+++ weston-1.11.0/src/main.c	2016-10-06 14:28:47.000000000 -0500
+--- weston-1.11.1.orig/src/main.c	2017-01-14 08:59:52.297865829 -0600
++++ weston-1.11.1/src/main.c	2017-01-14 09:08:38.000000000 -0600
 @@ -287,10 +287,10 @@
  		"  --device=DEVICE\tThe framebuffer device to use\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-g2d\t\tUse the G2D 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");
++		"  --use-g2d=1\t\tUse the G2D 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");
-+		"  --no-use-g2d\t\tDo not use the G2D 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");
++		"  --use-g2d=1\t\tUse the G2D renderer (default is 1)\n\n");
  #endif
  #endif
  
-@@ -871,11 +871,11 @@
- 	char *s = NULL;
- 	int ret = 0;
- #ifdef ENABLE_EGL
--    /* GL rendering is default, so user options are --no-use-gl and --use-gal2d */
-+    /* GL rendering is default, so user options are --no-use-gl and --use-g2d */
-     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;
-+    /* G2D rendering is default, so user options are --use-gl and --no-use-g2d */
-+    int no_use_g2d = 0;
- #endif
- 
- 	const struct weston_option fbdev_options[] = {
-@@ -883,10 +883,10 @@
+@@ -875,7 +875,7 @@
+ 		{ 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 },
-+		{ WESTON_OPTION_BOOLEAN, "use-g2d", 0, &config.use_g2d },
- #else
- 		{ WESTON_OPTION_BOOLEAN, "use-gl", 0, &config.use_gl },
--		{ WESTON_OPTION_BOOLEAN, "no-use-gal2d", 0, &no_use_gal2d },
-+		{ WESTON_OPTION_BOOLEAN, "no-use-g2d", 0, &no_use_g2d },
- #endif
+ 		{ WESTON_OPTION_INTEGER, "use-gl", 0, &config.use_gl },
+-		{ WESTON_OPTION_INTEGER, "use-gal2d", 0, &config.use_gal2d },
++		{ WESTON_OPTION_INTEGER, "use-g2d", 0, &config.use_g2d },
  	};
  
-@@ -897,7 +897,7 @@
- #ifdef ENABLE_EGL
-     config.use_gl = !no_use_gl;
- #else
--    config.use_gal2d = !no_use_gal2d;
-+    config.use_g2d = !no_use_g2d;
- #endif
- 	section = weston_config_get_section(wc, "output", "name", "fbdev");
- 	weston_config_section_get_string(section, "transform", &s, "normal");
-Index: weston-1.11.0/src/compositor-fbdev.h
+ 	parse_options(fbdev_options, ARRAY_LENGTH(fbdev_options), argc, argv);
+Index: weston-1.11.1/src/compositor-fbdev.h
 ===================================================================
---- weston-1.11.0.orig/src/compositor-fbdev.h	2016-10-06 14:26:20.258564876 -0500
-+++ weston-1.11.0/src/compositor-fbdev.h	2016-10-06 14:34:09.000000000 -0500
+--- weston-1.11.1.orig/src/compositor-fbdev.h	2017-01-14 08:59:52.297865829 -0600
++++ weston-1.11.1/src/compositor-fbdev.h	2017-01-14 08:59:52.841868527 -0600
 @@ -40,7 +40,8 @@
  	int tty;
  	char *device;
diff --git a/recipes-graphics/wayland/weston/0011-MGS-1724-xwld-G2D-compositor-build-failed-in-slevk-b.patch b/recipes-graphics/wayland/weston/0011-MGS-1724-xwld-G2D-compositor-build-failed-in-slevk-b.patch
index f7bee2f..42a3339 100644
--- a/recipes-graphics/wayland/weston/0011-MGS-1724-xwld-G2D-compositor-build-failed-in-slevk-b.patch
+++ b/recipes-graphics/wayland/weston/0011-MGS-1724-xwld-G2D-compositor-build-failed-in-slevk-b.patch
@@ -15,10 +15,10 @@ Signed-off-by: Yong Gan <yong.gan@nxp.com>
  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;
diff --git a/recipes-graphics/wayland/weston/0012-MGS-1783-xwld-Add-clone-mode-support-for-multi-displ.patch b/recipes-graphics/wayland/weston/0012-MGS-1783-xwld-Add-clone-mode-support-for-multi-displ.patch
index 10bae4d..6ff88a5 100644
--- a/recipes-graphics/wayland/weston/0012-MGS-1783-xwld-Add-clone-mode-support-for-multi-displ.patch
+++ b/recipes-graphics/wayland/weston/0012-MGS-1783-xwld-Add-clone-mode-support-for-multi-displ.patch
@@ -19,10 +19,10 @@ Signed-off-by: Yong Gan <yong.gan@nxp.com>
  src/g2d-renderer.h     |   4 +-
  3 files changed, 167 insertions(+), 41 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:17:41.738142236 -0500
-+++ weston-1.11.0/src/compositor-fbdev.c	2016-10-06 13:28:22.000000000 -0500
+--- weston-1.11.1.orig/src/compositor-fbdev.c	2017-01-14 10:07:19.425934454 -0600
++++ weston-1.11.1/src/compositor-fbdev.c	2017-01-14 10:07:19.509934870 -0600
 @@ -61,6 +61,8 @@
  	struct udev_input input;
  	int use_pixman;
@@ -88,10 +88,10 @@ Index: weston-1.11.0/src/compositor-fbdev.c
  #ifdef ENABLE_EGL
  		gl_renderer = weston_load_module("gl-renderer.so",
  						 "gl_renderer_interface");
-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:17:41.738142236 -0500
-+++ weston-1.11.0/src/g2d-renderer.c	2016-10-06 13:17:41.734142216 -0500
+--- weston-1.11.1.orig/src/g2d-renderer.c	2017-01-14 10:07:19.425934454 -0600
++++ weston-1.11.1/src/g2d-renderer.c	2017-01-14 10:24:55.000000000 -0600
 @@ -37,15 +37,16 @@
  #include <sys/ioctl.h>
  #include <fcntl.h>
@@ -373,10 +373,10 @@ Index: weston-1.11.0/src/g2d-renderer.c
  		pixman_region32_init(&go->buffer_damage[i]);
      return 0;
   }
-Index: weston-1.11.0/src/g2d-renderer.h
+Index: weston-1.11.1/src/g2d-renderer.h
 ===================================================================
---- weston-1.11.0.orig/src/g2d-renderer.h	2016-10-06 13:17:41.738142236 -0500
-+++ weston-1.11.0/src/g2d-renderer.h	2016-10-06 13:17:41.734142216 -0500
+--- weston-1.11.1.orig/src/g2d-renderer.h	2017-01-14 10:07:19.253933601 -0600
++++ weston-1.11.1/src/g2d-renderer.h	2017-01-14 10:24:55.000000000 -0600
 @@ -27,13 +27,11 @@
  #define __g2d_renderer_h_
  
@@ -392,29 +392,29 @@ Index: weston-1.11.0/src/g2d-renderer.h
  struct g2d_renderer_interface {
  
  	int (*create)(struct weston_compositor *ec);
-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-10-06 13:39:13.000000000 -0500
-+++ weston-1.11.0/src/main.c	2016-10-06 13:39:39.000000000 -0500
+--- weston-1.11.1.orig/src/main.c	2017-01-14 10:07:19.425934454 -0600
++++ weston-1.11.1/src/main.c	2017-01-14 10:31:37.000000000 -0600
 @@ -287,11 +287,12 @@
  		"  --device=DEVICE\tThe framebuffer device to use\n"
  #if defined ENABLE_EGL
- 		"  --no-use-gl\t\tDo not use the GL renderer\n"
--		"  --use-g2d\t\tUse the G2D renderer\n\n");
-+		"  --use-g2d\t\tUse the G2D renderer\n"
+ 		"  --use-gl=1\t\tUse the GL renderer (default is 1)\n"
+-		"  --use-g2d=1\t\tUse the G2D renderer (default is 0)\n\n");
++		"  --use-g2d=1\t\tUse the G2D renderer (default is 0)\n");
  #else
- 		"  --use-gl\t\tUse the GL renderer\n"
--		"  --no-use-g2d\t\tDo not use the G2D renderer\n\n");
-+		"  --no-use-g2d\t\tDo not use the G2D renderer\n"
+ 		"  --use-gl=1\t\tUse the GL renderer (default is 0)\n"
+-		"  --use-g2d=1\t\tUse the G2D renderer (default is 1)\n\n");
++		"  --use-g2d=1\t\tUse the G2D renderer (default is 1)\n");
  #endif
 +		"  --clone-mode\t\tClone display to multiple devices\n\n");
  #endif
  
  #if defined(BUILD_HEADLESS_COMPOSITOR)
-@@ -888,6 +889,7 @@
- 		{ WESTON_OPTION_BOOLEAN, "use-gl", 0, &config.use_gl },
- 		{ WESTON_OPTION_BOOLEAN, "no-use-g2d", 0, &no_use_g2d },
- #endif
+@@ -886,6 +887,7 @@
+ 		{ WESTON_OPTION_STRING, "device", 0, &config.device },
+ 		{ WESTON_OPTION_INTEGER, "use-gl", 0, &config.use_gl },
+ 		{ WESTON_OPTION_INTEGER, "use-g2d", 0, &config.use_g2d },
 +		{ WESTON_OPTION_BOOLEAN, "clone-mode", 0, &config.clone_mode },
  	};
  
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-01-15 14:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-15 14:50 [PATCH 1/4] weston: T3DStressTest_Wayland displays abnormally while using G2D compositor Tom Hochstein
2017-01-15 14:50 ` [PATCH 2/4] weston: Enable double buffer with fb_pan_display for weston compositor Tom Hochstein
2017-01-15 14:50 ` [PATCH 3/4] weston: xwayland: Fix crash when run with no input device Tom Hochstein
2017-01-15 14:50 ` [PATCH 4/4] weston: Undo recent command-line change for renderer selection Tom Hochstein

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.