diff options
Diffstat (limited to 'recipes-graphics/wayland/weston/0011-MGS-1724-xwld-G2D-compositor-build-failed-in-slevk-b.patch')
-rw-r--r-- | recipes-graphics/wayland/weston/0011-MGS-1724-xwld-G2D-compositor-build-failed-in-slevk-b.patch | 129 |
1 files changed, 0 insertions, 129 deletions
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 deleted file mode 100644 index 42a33394..00000000 --- a/recipes-graphics/wayland/weston/0011-MGS-1724-xwld-G2D-compositor-build-failed-in-slevk-b.patch +++ /dev/null | |||
@@ -1,129 +0,0 @@ | |||
1 | From b67a6184ed3b6d728894eba37a554a302c1b0312 Mon Sep 17 00:00:00 2001 | ||
2 | From: "yong.gan" <yong.gan@nxp.com> | ||
3 | Date: Sat, 2 Apr 2016 09:33:56 +0800 | ||
4 | Subject: [PATCH 3/3] MGS-1724: xwld: G2D compositor build failed in slevk | ||
5 | board | ||
6 | |||
7 | Add macro ENABLE_EGL to make sure the EGL was not built in slevk board. | ||
8 | Modify the wrong format for the shm buffer. | ||
9 | |||
10 | Upstream Status: Inappropriate [i.MX specific] | ||
11 | |||
12 | Signed-off-by: Yong Gan <yong.gan@nxp.com> | ||
13 | --- | ||
14 | src/compositor-fbdev.c | 11 ++++++++++- | ||
15 | src/g2d-renderer.c | 4 ++-- | ||
16 | 2 files changed, 12 insertions(+), 3 deletions(-) | ||
17 | |||
18 | Index: weston-1.11.1/src/compositor-fbdev.c | ||
19 | =================================================================== | ||
20 | --- weston-1.11.1.orig/src/compositor-fbdev.c 2017-01-14 09:47:24.064006974 -0600 | ||
21 | +++ weston-1.11.1/src/compositor-fbdev.c 2017-01-14 09:55:59.000000000 -0600 | ||
22 | @@ -63,7 +63,9 @@ | ||
23 | int use_g2d; | ||
24 | uint32_t output_transform; | ||
25 | struct wl_listener session_listener; | ||
26 | +#ifdef ENABLE_EGL | ||
27 | NativeDisplayType display; | ||
28 | +#endif | ||
29 | }; | ||
30 | |||
31 | struct fbdev_screeninfo { | ||
32 | @@ -96,9 +98,10 @@ | ||
33 | /* pixman details. */ | ||
34 | pixman_image_t *hw_surface; | ||
35 | uint8_t depth; | ||
36 | - | ||
37 | +#ifdef ENABLE_EGL | ||
38 | NativeDisplayType display; | ||
39 | NativeWindowType window; | ||
40 | +#endif | ||
41 | }; | ||
42 | |||
43 | struct gl_renderer_interface *gl_renderer; | ||
44 | @@ -450,10 +453,12 @@ | ||
45 | strerror(errno)); | ||
46 | |||
47 | output->fb = NULL; | ||
48 | +#ifdef ENABLE_EGL | ||
49 | if(output->window) | ||
50 | fbDestroyWindow(output->window); | ||
51 | if(output->display) | ||
52 | fbDestroyDisplay(output->display); | ||
53 | +#endif | ||
54 | } | ||
55 | |||
56 | static void fbdev_output_destroy(struct weston_output *base); | ||
57 | @@ -527,6 +532,7 @@ | ||
58 | } | ||
59 | |||
60 | } else { | ||
61 | +#ifdef ENABLE_EGL | ||
62 | setenv("HYBRIS_EGLPLATFORM", "wayland", 1); | ||
63 | output->window = fbCreateWindow(backend->display, -1, -1, 0, 0); | ||
64 | if (output->window == NULL) { | ||
65 | @@ -540,6 +546,7 @@ | ||
66 | weston_log("gl_renderer_output_create failed.\n"); | ||
67 | goto out_hw_surface; | ||
68 | } | ||
69 | +#endif | ||
70 | } | ||
71 | |||
72 | loop = wl_display_get_event_loop(backend->compositor->wl_display); | ||
73 | @@ -847,6 +854,7 @@ | ||
74 | } | ||
75 | } | ||
76 | else { | ||
77 | +#ifdef ENABLE_EGL | ||
78 | gl_renderer = weston_load_module("gl-renderer.so", | ||
79 | "gl_renderer_interface"); | ||
80 | if (!gl_renderer) { | ||
81 | @@ -866,6 +874,7 @@ | ||
82 | weston_log("gl_renderer_create failed.\n"); | ||
83 | goto out_launcher; | ||
84 | } | ||
85 | +#endif | ||
86 | } | ||
87 | if(!backend->use_g2d) | ||
88 | if (fbdev_output_create(backend, 0, 0, param->device) < 0) | ||
89 | Index: weston-1.11.1/src/g2d-renderer.c | ||
90 | =================================================================== | ||
91 | --- weston-1.11.1.orig/src/g2d-renderer.c 2017-01-14 09:47:24.152007410 -0600 | ||
92 | +++ weston-1.11.1/src/g2d-renderer.c 2017-01-14 09:48:56.000000000 -0600 | ||
93 | @@ -756,11 +756,11 @@ | ||
94 | |||
95 | switch (wl_shm_buffer_get_format(shm_buffer)) { | ||
96 | case WL_SHM_FORMAT_XRGB8888: | ||
97 | - g2dFormat = G2D_XRGB8888; | ||
98 | + g2dFormat = G2D_BGRX8888; | ||
99 | gs->bpp = 4; | ||
100 | break; | ||
101 | case WL_SHM_FORMAT_ARGB8888: | ||
102 | - g2dFormat = G2D_ARGB8888; | ||
103 | + g2dFormat = G2D_BGRA8888; | ||
104 | gs->bpp = 4; | ||
105 | break; | ||
106 | case WL_SHM_FORMAT_RGB565: | ||
107 | Index: weston-1.11.1/src/main.c | ||
108 | =================================================================== | ||
109 | --- weston-1.11.1.orig/src/main.c 2017-01-14 10:02:42.000000000 -0600 | ||
110 | +++ weston-1.11.1/src/main.c 2017-01-14 10:02:58.000000000 -0600 | ||
111 | @@ -866,7 +866,17 @@ | ||
112 | load_fbdev_backend(struct weston_compositor *c, char const * backend, | ||
113 | int *argc, char **argv, struct weston_config *wc) | ||
114 | { | ||
115 | - struct weston_fbdev_backend_config config = {{ 0, }}; | ||
116 | + struct weston_fbdev_backend_config config = { | ||
117 | + .base = {0}, | ||
118 | +#ifdef ENABLE_EGL | ||
119 | + .use_gl = 1, | ||
120 | + .use_g2d = 0, | ||
121 | +#else | ||
122 | + .use_gl = 0, | ||
123 | + .use_g2d = 1, | ||
124 | +#endif | ||
125 | + .clone_mode = 0, | ||
126 | + }; | ||
127 | struct weston_config_section *section; | ||
128 | char *s = NULL; | ||
129 | int ret = 0; | ||