diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2013-03-15 19:31:38 -0300 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2013-04-02 10:34:50 -0300 |
commit | 9349c7ef2236968f568948415cebbfcb2fea5335 (patch) | |
tree | fa9f85a7e711c9ea99635ee1b637715ca6082855 | |
parent | 60877da7fc85eab0f9542f037a26fda94a2d9471 (diff) | |
download | meta-fsl-arm-9349c7ef2236968f568948415cebbfcb2fea5335.tar.gz |
xf86-video-imxfb-vivante: Revert patch to update to newer Xorg Video API
As we're adding a Xorg backport we don't need to patch the driver code
to support newer Xorg Video API.
Change-Id: I268613a4123525db4d13964431bab41bc2b042f8
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
3 files changed, 11 insertions, 413 deletions
diff --git a/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante/fix-vivante-compile.patch b/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante/fix-vivante-compile.patch deleted file mode 100644 index bdbd2eb..0000000 --- a/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante/fix-vivante-compile.patch +++ /dev/null | |||
@@ -1,373 +0,0 @@ | |||
1 | This patch handles changes in the X server API which appeared in version 1.13 | ||
2 | The changes should be backwards compatible so this driver still works in earlier | ||
3 | versions of the X server. | ||
4 | |||
5 | Upstream-Status: Pending | ||
6 | |||
7 | Index: xserver-xorg-video-imx-viv-1.1.0/src/vivante_fbdev/vivante_dri.h | ||
8 | =================================================================== | ||
9 | --- xserver-xorg-video-imx-viv-1.1.0.orig/src/vivante_fbdev/vivante_dri.h | ||
10 | +++ xserver-xorg-video-imx-viv-1.1.0/src/vivante_fbdev/vivante_dri.h | ||
11 | @@ -67,7 +67,7 @@ typedef struct _vvtDeviceInfoRec { | ||
12 | } vvtDeviceInfo; | ||
13 | |||
14 | Bool VivDRIScreenInit(ScreenPtr pScreen); | ||
15 | -void VivDRICloseScreen(ScreenPtr pScreen); | ||
16 | +void VivDRICloseScreen(CLOSE_SCREEN_ARGS_DECL); | ||
17 | Bool VivDRIFinishScreenInit(ScreenPtr pScreen); | ||
18 | |||
19 | #endif /* _VIVANTE_DRI_H_ */ | ||
20 | Index: xserver-xorg-video-imx-viv-1.1.0/src/vivante_fbdev/vivante_fbdev_driver.c | ||
21 | =================================================================== | ||
22 | --- xserver-xorg-video-imx-viv-1.1.0.orig/src/vivante_fbdev/vivante_fbdev_driver.c | ||
23 | +++ xserver-xorg-video-imx-viv-1.1.0/src/vivante_fbdev/vivante_fbdev_driver.c | ||
24 | @@ -53,9 +53,8 @@ static const OptionInfoRec *VivAvailable | ||
25 | static void VivIdentify(int flags); | ||
26 | static Bool VivProbe(DriverPtr drv, int flags); | ||
27 | static Bool VivPreInit(ScrnInfoPtr pScrn, int flags); | ||
28 | -static Bool VivScreenInit(int Index, ScreenPtr pScreen, int argc, | ||
29 | - char **argv); | ||
30 | -static Bool VivCloseScreen(int scrnIndex, ScreenPtr pScreen); | ||
31 | +static Bool VivScreenInit(SCREEN_INIT_ARGS_DECL); | ||
32 | +static Bool VivCloseScreen(CLOSE_SCREEN_ARGS_DECL); | ||
33 | static Bool VivDriverFunc(ScrnInfoPtr pScrn, xorgDriverFuncOp op, | ||
34 | pointer ptr); | ||
35 | |||
36 | @@ -175,7 +174,7 @@ VivSetup(pointer module, pointer opts, i | ||
37 | |||
38 | static Bool InitExaLayer(ScreenPtr pScreen) { | ||
39 | ExaDriverPtr pExa; | ||
40 | - ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; | ||
41 | + ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); | ||
42 | VivPtr pViv = GET_VIV_PTR(pScrn); | ||
43 | |||
44 | TRACE_ENTER(); | ||
45 | @@ -258,7 +257,7 @@ static Bool InitExaLayer(ScreenPtr pScre | ||
46 | } | ||
47 | |||
48 | static Bool DestroyExaLayer(ScreenPtr pScreen) { | ||
49 | - ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; | ||
50 | + ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); | ||
51 | VivPtr pViv = GET_VIV_PTR(pScrn); | ||
52 | TRACE_ENTER(); | ||
53 | xf86DrvMsg(pScreen->myNum, X_INFO, "Shutdown EXA\n"); | ||
54 | @@ -570,7 +569,7 @@ VivPreInit(ScrnInfoPtr pScrn, int flags) | ||
55 | static Bool | ||
56 | VivCreateScreenResources(ScreenPtr pScreen) { | ||
57 | PixmapPtr pPixmap; | ||
58 | - ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; | ||
59 | + ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); | ||
60 | VivPtr fPtr = GET_VIV_PTR(pScrn); | ||
61 | Bool ret; | ||
62 | |||
63 | @@ -592,8 +591,8 @@ VivCreateScreenResources(ScreenPtr pScre | ||
64 | } | ||
65 | |||
66 | static Bool | ||
67 | -VivScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv) { | ||
68 | - ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; | ||
69 | +VivScreenInit(SCREEN_INIT_ARGS_DECL) { | ||
70 | + ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); | ||
71 | VivPtr fPtr = GET_VIV_PTR(pScrn); | ||
72 | VisualPtr visual; | ||
73 | int init_picture = 0; | ||
74 | @@ -611,7 +610,7 @@ VivScreenInit(int scrnIndex, ScreenPtr p | ||
75 | |||
76 | /*Mapping the Video memory*/ | ||
77 | if (NULL == (fPtr->mFB.mFBMemory = fbdevHWMapVidmem(pScrn))) { | ||
78 | - xf86DrvMsg(scrnIndex, X_ERROR, "mapping of video memory" | ||
79 | + xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "mapping of video memory" | ||
80 | " failed\n"); | ||
81 | TRACE_EXIT(FALSE); | ||
82 | } | ||
83 | @@ -626,17 +625,17 @@ VivScreenInit(int scrnIndex, ScreenPtr p | ||
84 | |||
85 | /*Init the hardware in current mode*/ | ||
86 | if (!fbdevHWModeInit(pScrn, pScrn->currentMode)) { | ||
87 | - xf86DrvMsg(scrnIndex, X_ERROR, "mode initialization failed\n"); | ||
88 | + xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "mode initialization failed\n"); | ||
89 | TRACE_EXIT(FALSE); | ||
90 | } | ||
91 | fbdevHWSaveScreen(pScreen, SCREEN_SAVER_ON); | ||
92 | - fbdevHWAdjustFrame(scrnIndex, 0, 0, 0); | ||
93 | + fbdevHWAdjustFrame(FBDEVHWADJUSTFRAME_ARGS(0, 0)); | ||
94 | |||
95 | /* mi layer */ | ||
96 | miClearVisualTypes(); | ||
97 | if (pScrn->bitsPerPixel > 8) { | ||
98 | if (!miSetVisualTypes(pScrn->depth, TrueColorMask, pScrn->rgbBits, TrueColor)) { | ||
99 | - xf86DrvMsg(scrnIndex, X_ERROR, "visual type setup failed" | ||
100 | + xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "visual type setup failed" | ||
101 | " for %d bits per pixel [1]\n", | ||
102 | pScrn->bitsPerPixel); | ||
103 | TRACE_EXIT(FALSE); | ||
104 | @@ -645,14 +644,14 @@ VivScreenInit(int scrnIndex, ScreenPtr p | ||
105 | if (!miSetVisualTypes(pScrn->depth, | ||
106 | miGetDefaultVisualMask(pScrn->depth), | ||
107 | pScrn->rgbBits, pScrn->defaultVisual)) { | ||
108 | - xf86DrvMsg(scrnIndex, X_ERROR, "visual type setup failed" | ||
109 | + xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "visual type setup failed" | ||
110 | " for %d bits per pixel [2]\n", | ||
111 | pScrn->bitsPerPixel); | ||
112 | TRACE_EXIT(FALSE); | ||
113 | } | ||
114 | } | ||
115 | if (!miSetPixmapDepths()) { | ||
116 | - xf86DrvMsg(scrnIndex, X_ERROR, "pixmap depth setup failed\n"); | ||
117 | + xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "pixmap depth setup failed\n"); | ||
118 | return FALSE; | ||
119 | } | ||
120 | |||
121 | @@ -660,14 +659,14 @@ VivScreenInit(int scrnIndex, ScreenPtr p | ||
122 | pScrn->displayWidth = fbdevHWGetLineLength(pScrn) / | ||
123 | (pScrn->bitsPerPixel / 8); | ||
124 | if (pScrn->displayWidth != pScrn->virtualX) { | ||
125 | - xf86DrvMsg(scrnIndex, X_INFO, | ||
126 | + xf86DrvMsg(pScrn->scrnIndex, X_INFO, | ||
127 | "Pitch updated to %d after ModeInit\n", | ||
128 | pScrn->displayWidth); | ||
129 | } | ||
130 | /*Logical start address*/ | ||
131 | fPtr->mFB.mFBStart = fPtr->mFB.mFBMemory + fPtr->mFB.mFBOffset; | ||
132 | |||
133 | - xf86DrvMsg(scrnIndex, X_INFO, | ||
134 | + xf86DrvMsg(pScrn->scrnIndex, X_INFO, | ||
135 | "FB Start = %p FB Base = %p FB Offset = %p\n", | ||
136 | fPtr->mFB.mFBStart, fPtr->mFB.mFBMemory, fPtr->mFB.mFBOffset); | ||
137 | |||
138 | @@ -684,7 +683,7 @@ VivScreenInit(int scrnIndex, ScreenPtr p | ||
139 | init_picture = 1; | ||
140 | break; | ||
141 | default: | ||
142 | - xf86DrvMsg(scrnIndex, X_ERROR, | ||
143 | + xf86DrvMsg(pScrn->scrnIndex, X_ERROR, | ||
144 | "internal error: invalid number of bits per" | ||
145 | " pixel (%d) encountered in" | ||
146 | " VivScreenInit()\n", pScrn->bitsPerPixel); | ||
147 | @@ -716,7 +715,7 @@ VivScreenInit(int scrnIndex, ScreenPtr p | ||
148 | if (fPtr->mFakeExa.mUseExaFlag) { | ||
149 | TRACE_INFO("Loading EXA"); | ||
150 | if (!InitExaLayer(pScreen)) { | ||
151 | - xf86DrvMsg(scrnIndex, X_ERROR, | ||
152 | + xf86DrvMsg(pScrn->scrnIndex, X_ERROR, | ||
153 | "internal error: initExaLayer failed " | ||
154 | "in VivScreenInit()\n"); | ||
155 | } | ||
156 | @@ -733,7 +732,7 @@ VivScreenInit(int scrnIndex, ScreenPtr p | ||
157 | |||
158 | /* colormap */ | ||
159 | if (!miCreateDefColormap(pScreen)) { | ||
160 | - xf86DrvMsg(scrnIndex, X_ERROR, | ||
161 | + xf86DrvMsg(pScrn->scrnIndex, X_ERROR, | ||
162 | "internal error: miCreateDefColormap failed " | ||
163 | "in VivScreenInit()\n"); | ||
164 | TRACE_EXIT(FALSE); | ||
165 | @@ -775,20 +774,20 @@ VivScreenInit(int scrnIndex, ScreenPtr p | ||
166 | } | ||
167 | |||
168 | static Bool | ||
169 | -VivCloseScreen(int scrnIndex, ScreenPtr pScreen) { | ||
170 | - ScrnInfoPtr pScrn = xf86Screens[scrnIndex]; | ||
171 | +VivCloseScreen(CLOSE_SCREEN_ARGS_DECL) { | ||
172 | + CLOSE_SCREEN_DECL_ScrnInfoPtr; | ||
173 | VivPtr fPtr = GET_VIV_PTR(pScrn); | ||
174 | Bool ret = FALSE; | ||
175 | TRACE_ENTER(); | ||
176 | |||
177 | #ifndef DISABLE_VIVANTE_DRI | ||
178 | - VivDRICloseScreen(pScreen); | ||
179 | + VivDRICloseScreen(CLOSE_SCREEN_ARGS); | ||
180 | #endif | ||
181 | |||
182 | if (fPtr->mFakeExa.mUseExaFlag) { | ||
183 | DEBUGP("UnLoading EXA"); | ||
184 | if (fPtr->mFakeExa.mIsInited && !DestroyExaLayer(pScreen)) { | ||
185 | - xf86DrvMsg(scrnIndex, X_ERROR, | ||
186 | + xf86DrvMsg(pScrn->scrnIndex, X_ERROR, | ||
187 | "internal error: DestroyExaLayer failed " | ||
188 | "in VivCloseScreen()\n"); | ||
189 | } | ||
190 | @@ -801,7 +800,7 @@ VivCloseScreen(int scrnIndex, ScreenPtr | ||
191 | |||
192 | pScreen->CreateScreenResources = fPtr->CreateScreenResources; | ||
193 | pScreen->CloseScreen = fPtr->CloseScreen; | ||
194 | - ret = (*pScreen->CloseScreen)(scrnIndex, pScreen); | ||
195 | + ret = (*pScreen->CloseScreen)(CLOSE_SCREEN_ARGS); | ||
196 | TRACE_EXIT(ret); | ||
197 | } | ||
198 | |||
199 | Index: xserver-xorg-video-imx-viv-1.1.0/src/vivante_util/compat-api.h | ||
200 | =================================================================== | ||
201 | --- /dev/null | ||
202 | +++ xserver-xorg-video-imx-viv-1.1.0/src/vivante_util/compat-api.h | ||
203 | @@ -0,0 +1,106 @@ | ||
204 | +/* | ||
205 | + * Copyright 2012 Red Hat, Inc. | ||
206 | + * | ||
207 | + * Permission is hereby granted, free of charge, to any person obtaining a | ||
208 | + * copy of this software and associated documentation files (the "Software"), | ||
209 | + * to deal in the Software without restriction, including without limitation | ||
210 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
211 | + * and/or sell copies of the Software, and to permit persons to whom the | ||
212 | + * Software is furnished to do so, subject to the following conditions: | ||
213 | + * | ||
214 | + * The above copyright notice and this permission notice (including the next | ||
215 | + * paragraph) shall be included in all copies or substantial portions of the | ||
216 | + * Software. | ||
217 | + * | ||
218 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
219 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
220 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
221 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
222 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
223 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
224 | + * DEALINGS IN THE SOFTWARE. | ||
225 | + * | ||
226 | + * Author: Dave Airlie <airlied@redhat.com> | ||
227 | + */ | ||
228 | + | ||
229 | +/* this file provides API compat between server post 1.13 and pre it, | ||
230 | + it should be reused inside as many drivers as possible */ | ||
231 | +#ifndef COMPAT_API_H | ||
232 | +#define COMPAT_API_H | ||
233 | + | ||
234 | +#ifndef GLYPH_HAS_GLYPH_PICTURE_ACCESSOR | ||
235 | +#define GetGlyphPicture(g, s) GlyphPicture((g))[(s)->myNum] | ||
236 | +#define SetGlyphPicture(g, s, p) GlyphPicture((g))[(s)->myNum] = p | ||
237 | +#endif | ||
238 | + | ||
239 | +#ifndef XF86_HAS_SCRN_CONV | ||
240 | +#define xf86ScreenToScrn(s) xf86Screens[(s)->myNum] | ||
241 | +#define xf86ScrnToScreen(s) screenInfo.screens[(s)->scrnIndex] | ||
242 | +#endif | ||
243 | + | ||
244 | +#ifndef XF86_SCRN_INTERFACE | ||
245 | + | ||
246 | +#define SCRN_ARG_TYPE int | ||
247 | +#define SCRN_INFO_PTR(arg1) ScrnInfoPtr pScrn = xf86Screens[(arg1)] | ||
248 | + | ||
249 | +#define SCREEN_ARG_TYPE int | ||
250 | +#define SCREEN_PTR(arg1) ScreenPtr pScreen = screenInfo.screens[(arg1)] | ||
251 | + | ||
252 | +#define SCREEN_INIT_ARGS_DECL int index, ScreenPtr pScreen, int argc, char **argv | ||
253 | + | ||
254 | +#define BLOCKHANDLER_ARGS_DECL int arg, pointer blockData, pointer pTimeout, pointer pReadmask | ||
255 | +#define BLOCKHANDLER_ARGS arg, blockData, pTimeout, pReadmask | ||
256 | + | ||
257 | +#define CLOSE_SCREEN_ARGS_DECL int scrnIndex, ScreenPtr pScreen | ||
258 | +#define CLOSE_SCREEN_ARGS scrnIndex, pScreen | ||
259 | +#define CLOSE_SCREEN_DECL_ScrnInfoPtr ScrnInfoPtr pScrn = xf86Screens[scrnIndex]; | ||
260 | + | ||
261 | +#define FBDEVHWADJUSTFRAME_ARGS(x, y) scrnIndex, (x), (y), 0 | ||
262 | + | ||
263 | +#define ADJUST_FRAME_ARGS_DECL int arg, int x, int y, int flags | ||
264 | + | ||
265 | +#define SWITCH_MODE_ARGS_DECL int arg, DisplayModePtr mode, int flags | ||
266 | + | ||
267 | +#define FREE_SCREEN_ARGS_DECL int arg, int flags | ||
268 | +#define FREE_SCREEN_ARGS(x) (x)->scrnIndex, 0 | ||
269 | + | ||
270 | +#define VT_FUNC_ARGS_DECL int arg, int flags | ||
271 | +#define VT_FUNC_ARGS(flags) pScrn->scrnIndex, (flags) | ||
272 | + | ||
273 | +#define ENABLE_DISABLE_FB_ACCESS_ARGS(pScrn, b) pScrn->scrnIndex, b | ||
274 | + | ||
275 | +#define XF86_ENABLEDISABLEFB_ARG(x) ((x)->scrnIndex) | ||
276 | +#else | ||
277 | +#define SCRN_ARG_TYPE ScrnInfoPtr | ||
278 | +#define SCRN_INFO_PTR(arg1) ScrnInfoPtr pScrn = (arg1) | ||
279 | + | ||
280 | +#define SCREEN_ARG_TYPE ScreenPtr | ||
281 | +#define SCREEN_PTR(arg1) ScreenPtr pScreen = (arg1) | ||
282 | + | ||
283 | +#define SCREEN_INIT_ARGS_DECL ScreenPtr pScreen, int argc, char **argv | ||
284 | + | ||
285 | +#define BLOCKHANDLER_ARGS_DECL ScreenPtr arg, pointer pTimeout, pointer pReadmask | ||
286 | +#define BLOCKHANDLER_ARGS arg, pTimeout, pReadmask | ||
287 | + | ||
288 | +#define CLOSE_SCREEN_ARGS_DECL ScreenPtr pScreen | ||
289 | +#define CLOSE_SCREEN_ARGS pScreen | ||
290 | +#define CLOSE_SCREEN_DECL_ScrnInfoPtr ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; | ||
291 | + | ||
292 | +#define FBDEVHWADJUSTFRAME_ARGS(x, y) pScrn, (x), (y) | ||
293 | + | ||
294 | +#define ADJUST_FRAME_ARGS_DECL ScrnInfoPtr arg, int x, int y | ||
295 | +#define SWITCH_MODE_ARGS_DECL ScrnInfoPtr arg, DisplayModePtr mode | ||
296 | + | ||
297 | +#define FREE_SCREEN_ARGS_DECL ScrnInfoPtr arg | ||
298 | +#define FREE_SCREEN_ARGS(x) (x) | ||
299 | + | ||
300 | +#define VT_FUNC_ARGS_DECL ScrnInfoPtr arg | ||
301 | +#define VT_FUNC_ARGS(flags) pScrn | ||
302 | + | ||
303 | +#define ENABLE_DISABLE_FB_ACCESS_ARGS(pScrn, b) pScrn, b | ||
304 | + | ||
305 | +#define XF86_ENABLEDISABLEFB_ARG(x) (x) | ||
306 | + | ||
307 | +#endif | ||
308 | + | ||
309 | +#endif | ||
310 | Index: xserver-xorg-video-imx-viv-1.1.0/src/vivante_util/vivante_common.h | ||
311 | =================================================================== | ||
312 | --- xserver-xorg-video-imx-viv-1.1.0.orig/src/vivante_util/vivante_common.h | ||
313 | +++ xserver-xorg-video-imx-viv-1.1.0/src/vivante_util/vivante_common.h | ||
314 | @@ -69,6 +69,9 @@ extern "C" { | ||
315 | #include "xf86Crtc.h" | ||
316 | #include "cursorstr.h" | ||
317 | |||
318 | + /* System API compatability */ | ||
319 | +#include "compat-api.h" | ||
320 | + | ||
321 | /*Debug*/ | ||
322 | #include "vivante_debug.h" | ||
323 | |||
324 | Index: xserver-xorg-video-imx-viv-1.1.0/src/vivante_fbdev/vivante.h | ||
325 | =================================================================== | ||
326 | --- xserver-xorg-video-imx-viv-1.1.0.orig/src/vivante_fbdev/vivante.h | ||
327 | +++ xserver-xorg-video-imx-viv-1.1.0/src/vivante_fbdev/vivante.h | ||
328 | @@ -92,11 +92,11 @@ extern "C" { | ||
329 | #define GET_VIV_PTR(p) ((VivPtr)((p)->driverPrivate)) | ||
330 | |||
331 | #define VIVPTR_FROM_PIXMAP(x) \ | ||
332 | - GET_VIV_PTR(xf86Screens[(x)->drawable.pScreen->myNum]) | ||
333 | + GET_VIV_PTR(xf86ScreenToScrn((x)->drawable.pScreen)) | ||
334 | #define VIVPTR_FROM_SCREEN(x) \ | ||
335 | - GET_VIV_PTR(xf86Screens[(x)->myNum]) | ||
336 | + GET_VIV_PTR(xf86ScreenToScrn((x))) | ||
337 | #define VIVPTR_FROM_PICTURE(x) \ | ||
338 | - GET_VIV_PTR(xf86Screens[(x)->pDrawable->pScreen->myNum]) | ||
339 | + GET_VIV_PTR(xf86ScreenToScrn((x)->pDrawable->pScreen)) | ||
340 | |||
341 | /******************************************************************************** | ||
342 | * | ||
343 | Index: xserver-xorg-video-imx-viv-1.1.0/src/vivante_fbdev/vivante_dri.c | ||
344 | =================================================================== | ||
345 | --- xserver-xorg-video-imx-viv-1.1.0.orig/src/vivante_fbdev/vivante_dri.c | ||
346 | +++ xserver-xorg-video-imx-viv-1.1.0/src/vivante_fbdev/vivante_dri.c | ||
347 | @@ -51,7 +51,7 @@ VivDestroyContext(ScreenPtr pScreen, drm | ||
348 | |||
349 | Bool | ||
350 | VivDRIFinishScreenInit(ScreenPtr pScreen) { | ||
351 | - ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; | ||
352 | + ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); | ||
353 | VivPtr pViv = GET_VIV_PTR(pScrn); | ||
354 | DRIInfoPtr pDRIInfo = (DRIInfoPtr) pViv->pDRIInfo; | ||
355 | |||
356 | @@ -81,7 +81,7 @@ VivDRIMoveBuffers(WindowPtr pParent, DDX | ||
357 | } | ||
358 | |||
359 | Bool VivDRIScreenInit(ScreenPtr pScreen) { | ||
360 | - ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; | ||
361 | + ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); | ||
362 | DRIInfoPtr pDRIInfo; | ||
363 | VivPtr pViv = GET_VIV_PTR(pScrn); | ||
364 | |||
365 | @@ -187,7 +187,7 @@ Bool VivDRIScreenInit(ScreenPtr pScreen) | ||
366 | } | ||
367 | |||
368 | void VivDRICloseScreen(ScreenPtr pScreen) { | ||
369 | - ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; | ||
370 | + ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); | ||
371 | VivPtr pViv = GET_VIV_PTR(pScrn); | ||
372 | |||
373 | if (pViv->pDRIInfo) { | ||
diff --git a/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante/remove-mibstore.patch b/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante/remove-mibstore.patch deleted file mode 100644 index 1bdfaf9..0000000 --- a/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante/remove-mibstore.patch +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | mibstore functions are no longer supported in the X server. | ||
2 | This patch removes them from this driver, following the pattern in | ||
3 | http://patches.openembedded.org/patch/46133/ | ||
4 | |||
5 | This checkin shows when/where the changes to the X server were made | ||
6 | that deleted the header mibstore.h and mentions the reasons. | ||
7 | http://lists.x.org/archives/xorg-devel/2012-September/033575.html | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | Signed-off-by: Gary Thomas <gary@mlbassoc.com> | ||
11 | -- | ||
12 | |||
13 | Index: xserver-xorg-video-imx-viv-12.09.01/src/vivante_util/vivante_common.h | ||
14 | =================================================================== | ||
15 | --- xserver-xorg-video-imx-viv-12.09.01.orig/src/vivante_util/vivante_common.h | ||
16 | +++ xserver-xorg-video-imx-viv-12.09.01/src/vivante_util/vivante_common.h | ||
17 | @@ -48,7 +48,6 @@ extern "C" { | ||
18 | |||
19 | |||
20 | #include "mipointer.h" | ||
21 | -#include "mibstore.h" | ||
22 | #include "micmap.h" | ||
23 | #include "mipointrst.h" | ||
24 | #include "inputstr.h" | ||
25 | Index: xserver-xorg-video-imx-viv-12.09.01/src/vivante_fbdev/vivante_fbdev_driver.c | ||
26 | =================================================================== | ||
27 | --- xserver-xorg-video-imx-viv-12.09.01.orig/src/vivante_fbdev/vivante_fbdev_driver.c | ||
28 | +++ xserver-xorg-video-imx-viv-12.09.01/src/vivante_fbdev/vivante_fbdev_driver.c | ||
29 | @@ -746,7 +746,6 @@ VivScreenInit(SCREEN_INIT_ARGS_DECL) { | ||
30 | |||
31 | |||
32 | xf86SetBlackWhitePixels(pScreen); | ||
33 | - miInitializeBackingStore(pScreen); | ||
34 | xf86SetBackingStore(pScreen); | ||
35 | |||
36 | pScrn->vtSema = TRUE; | ||
diff --git a/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_1.1.0.bb b/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_1.1.0.bb index 1ebe333..28491c9 100644 --- a/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_1.1.0.bb +++ b/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_1.1.0.bb | |||
@@ -5,15 +5,13 @@ | |||
5 | require recipes-graphics/xorg-driver/xorg-driver-video.inc | 5 | require recipes-graphics/xorg-driver/xorg-driver-video.inc |
6 | 6 | ||
7 | PE = "3" | 7 | PE = "3" |
8 | PR = "${INC_PR}.0" | 8 | PR = "${INC_PR}.2" |
9 | 9 | ||
10 | DEPENDS += "virtual/libx11 virtual/libgal-x11 gpu-viv-bin-mx6q" | 10 | DEPENDS += "virtual/libx11 virtual/libgal-x11 gpu-viv-bin-mx6q" |
11 | 11 | ||
12 | LIC_FILES_CHKSUM = "file://src/vivante_fbdev/vivante.h;endline=19;md5=93a322f91ec495569dcbcfbb2a95454a" | 12 | LIC_FILES_CHKSUM = "file://src/vivante_fbdev/vivante.h;endline=19;md5=93a322f91ec495569dcbcfbb2a95454a" |
13 | 13 | ||
14 | SRC_URI = "${FSL_MIRROR}/xserver-xorg-video-imx-viv-${PV}.tar.gz \ | 14 | SRC_URI = "${FSL_MIRROR}/xserver-xorg-video-imx-viv-${PV}.tar.gz \ |
15 | file://fix-vivante-compile.patch \ | ||
16 | file://remove-mibstore.patch \ | ||
17 | file://Makefile.am-remove-prefixed-include-path.patch" | 15 | file://Makefile.am-remove-prefixed-include-path.patch" |
18 | SRC_URI[md5sum] = "d872365c046738628a7016343ffdb79a" | 16 | SRC_URI[md5sum] = "d872365c046738628a7016343ffdb79a" |
19 | SRC_URI[sha256sum] = "d53216d5f9e3f7803983ac1577d83985dfda33145e4711300f4ad5cbbe28e32d" | 17 | SRC_URI[sha256sum] = "d53216d5f9e3f7803983ac1577d83985dfda33145e4711300f4ad5cbbe28e32d" |
@@ -38,7 +36,16 @@ do_install_append () { | |||
38 | find ${D}${includedir} -type f -exec chmod 660 {} \; | 36 | find ${D}${includedir} -type f -exec chmod 660 {} \; |
39 | } | 37 | } |
40 | 38 | ||
41 | RDEPENDS_${PN} += "xserver-xorg-module-exa" | 39 | RDEPENDS_${PN} += "xserver-xorg-module-exa xf86-dri-vivante" |
40 | |||
41 | # Add the ABI dependency at package generation time, as otherwise bitbake will | ||
42 | # attempt to find a provider for it (and fail) when it does the parse. | ||
43 | # | ||
44 | # This version *must* be kept correct. | ||
45 | python populate_packages_prepend() { | ||
46 | pn = d.getVar("PN", True) | ||
47 | d.appendVar("RDEPENDS_" + pn, " xorg-abi-video-11") | ||
48 | } | ||
42 | 49 | ||
43 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 50 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
44 | COMPATIBLE_MACHINE = "(mx6)" | 51 | COMPATIBLE_MACHINE = "(mx6)" |