board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / qt / 0002-eglwsegl-use-system.patch
blobcb3038138ff408248bcd8a767834febb4df2061e
1 Patch to remove obsolete powervr headers and instead use the headers provided
2 on the system.
4 Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
5 ---
6 Index: qt-4.8.5/src/3rdparty/powervr/pvr2d.h
7 ===================================================================
8 --- qt-4.8.5.orig/src/3rdparty/powervr/pvr2d.h 2013-07-08 11:24:33.010516867 -0500
9 +++ /dev/null 1970-01-01 00:00:00.000000000 +0000
10 @@ -1,502 +0,0 @@
11 -/*!****************************************************************************
12 -@File pvr2d.h
13 -@Title PVR2D external header file
14 -@Author Imagination Technologies
15 -@Copyright Copyright (c) by Imagination Technologies Limited.
16 - This specification is protected by copyright laws and contains
17 - material proprietary to Imagination Technologies Limited.
18 - You may use and distribute this specification free of charge for implementing
19 - the functionality therein, without altering or removing any trademark, copyright,
20 - or other notice from the specification.
21 -@Platform Generic
22 -@Description PVR2D definitions for PVR2D clients
23 -******************************************************************************/
26 -/******************************************************************************
27 -Modifications :-
28 -$Log: pvr2d.h $
29 -******************************************************************************/
31 -#ifndef _PVR2D_H_
32 -#define _PVR2D_H_
34 -#ifdef __cplusplus
35 -extern "C" {
36 -#endif
38 -/* PVR2D Platform-specific definitions */
39 -#define PVR2D_EXPORT
40 -#define PVR2D_IMPORT
43 -#define PVR2D_REV_MAJOR 2
44 -#define PVR2D_REV_MINOR 1
46 -typedef enum
48 - PVR2D_FALSE = 0,
49 - PVR2D_TRUE
50 -} PVR2D_BOOL;
53 -/* error codes */
54 -typedef enum
56 - PVR2D_OK = 0,
57 - PVR2DERROR_INVALID_PARAMETER = -1,
58 - PVR2DERROR_DEVICE_UNAVAILABLE = -2,
59 - PVR2DERROR_INVALID_CONTEXT = -3,
60 - PVR2DERROR_MEMORY_UNAVAILABLE = -4,
61 - PVR2DERROR_DEVICE_NOT_PRESENT = -5,
62 - PVR2DERROR_IOCTL_ERROR = -6,
63 - PVR2DERROR_GENERIC_ERROR = -7,
64 - PVR2DERROR_BLT_NOTCOMPLETE = -8,
65 - PVR2DERROR_HW_FEATURE_NOT_SUPPORTED = -9,
66 - PVR2DERROR_NOT_YET_IMPLEMENTED = -10,
67 - PVR2DERROR_MAPPING_FAILED = -11
68 -}PVR2DERROR;
71 -/* pixel formats */
72 -typedef enum
74 - PVR2D_1BPP = 0,
75 - PVR2D_RGB565,
76 - PVR2D_ARGB4444,
77 - PVR2D_RGB888,
78 - PVR2D_ARGB8888,
79 - PVR2D_ARGB1555,
80 - PVR2D_ALPHA8,
81 - PVR2D_ALPHA4,
82 - PVR2D_PAL2,
83 - PVR2D_PAL4,
84 - PVR2D_PAL8,
85 - PVR2D_VGAEMU
87 -}PVR2DFORMAT;
90 -/* wrap surface type */
91 -typedef enum
93 - PVR2D_WRAPFLAG_NONCONTIGUOUS = 0,
94 - PVR2D_WRAPFLAG_CONTIGUOUS = 1,
96 -}PVR2DWRAPFLAGS;
98 -/* flags for control information of additional blits */
99 -typedef enum
101 - PVR2D_BLIT_DISABLE_ALL = 0x0000, /* disable all additional controls */
102 - PVR2D_BLIT_CK_ENABLE = 0x0001, /* enable colour key */
103 - PVR2D_BLIT_GLOBAL_ALPHA_ENABLE = 0x0002, /* enable standard global alpha */
104 - PVR2D_BLIT_PERPIXEL_ALPHABLEND_ENABLE = 0x0004, /* enable per-pixel alpha bleding */
105 - PVR2D_BLIT_PAT_SURFACE_ENABLE = 0x0008, /* enable pattern surf (disable fill) */
106 - PVR2D_BLIT_FULLY_SPECIFIED_ALPHA_ENABLE = 0x0010, /* enable fully specified alpha */
107 - PVR2D_BLIT_ROT_90 = 0x0020, /* apply 90 degree rotation to the blt */
108 - PVR2D_BLIT_ROT_180 = 0x0040, /* apply 180 degree rotation to the blt */
109 - PVR2D_BLIT_ROT_270 = 0x0080, /* apply 270 degree rotation to the blt */
110 - PVR2D_BLIT_COPYORDER_TL2BR = 0x0100, /* copy order overrides */
111 - PVR2D_BLIT_COPYORDER_BR2TL = 0x0200,
112 - PVR2D_BLIT_COPYORDER_TR2BL = 0x0400,
113 - PVR2D_BLIT_COPYORDER_BL2TR = 0x0800,
114 - PVR2D_BLIT_COLKEY_SOURCE = 0x1000, /* Key colour is on the source surface */
115 - PVR2D_BLIT_COLKEY_DEST = 0x2000 /* Key colour is on the destination surface */
117 -} PVR2DBLITFLAGS;
119 -/* standard alpha-blending functions, AlphaBlendingFunc field of PVR2DBLTINFO */
120 -typedef enum
122 - PVR2D_ALPHA_OP_SRC_DSTINV = 1, /* source alpha : Cdst = Csrc*Asrc + Cdst*(1-Asrc) */
123 - PVR2D_ALPHA_OP_SRCP_DSTINV = 2 /* premultiplied source alpha : Cdst = Csrc + Cdst*(1-Asrc) */
124 -} PVR2D_ALPHABLENDFUNC;
126 -/* blend ops for fully specified alpha */
127 -typedef enum
129 - PVR2D_BLEND_OP_ZERO = 0,
130 - PVR2D_BLEND_OP_ONE = 1,
131 - PVR2D_BLEND_OP_SRC = 2,
132 - PVR2D_BLEND_OP_DST = 3,
133 - PVR2D_BLEND_OP_GLOBAL = 4,
134 - PVR2D_BLEND_OP_SRC_PLUS_GLOBAL = 5,
135 - PVR2D_BLEND_OP_DST_PLUS_GLOBAL = 6
136 -}PVR2D_BLEND_OP;
139 -typedef void* PVR2D_HANDLE;
142 -/* Fully specified alpha blend : pAlpha field of PVR2DBLTINFO structure */
143 -/* a fully specified Alpha Blend operation is defined as */
144 -/* DST (ALPHA) = (ALPHA_1 * SRC (ALPHA)) + (ALPHA_3 * DST (ALPHA)) */
145 -/* DST (RGB) = (ALPHA_2 * SRC (RGB)) + (ALPHA_4 * DST (RGB)) */
146 -/* if the pre-multiplication stage is enabled then the equations become the following: */
147 -/* PRE_MUL = ((SRC(A)) * (Global Alpha Value)) */
148 -/* DST (ALPHA) = (ALPHA_1 * SRC (ALPHA)) + (PRE_MUL * DST (ALPHA)) */
149 -/* DST (RGB) = (ALPHA_2 * SRC (RGB)) + (PRE_MUL * DST (RGB)) */
150 -/* if the transparent source alpha stage is enabled then a source alpha of zero forces the */
151 -/* source to be transparent for that pixel regardless of the blend equation being used. */
152 -typedef struct _PVR2D_ALPHABLT
154 - PVR2D_BLEND_OP eAlpha1;
155 - PVR2D_BOOL bAlpha1Invert;
156 - PVR2D_BLEND_OP eAlpha2;
157 - PVR2D_BOOL bAlpha2Invert;
158 - PVR2D_BLEND_OP eAlpha3;
159 - PVR2D_BOOL bAlpha3Invert;
160 - PVR2D_BLEND_OP eAlpha4;
161 - PVR2D_BOOL bAlpha4Invert;
162 - PVR2D_BOOL bPremulAlpha; /* enable pre-multiplication stage */
163 - PVR2D_BOOL bTransAlpha; /* enable transparent source alpha stage */
164 - PVR2D_BOOL bUpdateAlphaLookup; /* enable and update the 1555-Lookup alpha table */
165 - unsigned char uAlphaLookup0; /* 8 bit alpha when A=0 in a 1555-Lookup surface */
166 - unsigned char uAlphaLookup1; /* 8 bit alpha when A=1 in a 1555-Lookup surface */
167 - unsigned char uGlobalRGB; /* Global Alpha Value for RGB, 0=transparent 255=opaque */
168 - unsigned char uGlobalA; /* Global Alpha Value for Alpha */
170 -} PVR2D_ALPHABLT, *PPVR2D_ALPHABLT;
173 -/* surface memory info structure */
174 -typedef struct _PVR2DMEMINFO
176 - void *pBase;
177 - unsigned long ui32MemSize;
178 - unsigned long ui32DevAddr;
179 - unsigned long ulFlags;
180 - void *hPrivateData;
181 - void *hPrivateMapData;
183 -}PVR2DMEMINFO, *PPVR2DMEMINFO;
186 -#define PVR2D_MAX_DEVICE_NAME 20
188 -typedef struct _PVR2DDEVICEINFO
190 - unsigned long ulDevID;
191 - char szDeviceName[PVR2D_MAX_DEVICE_NAME];
192 -}PVR2DDEVICEINFO;
195 -typedef struct _PVR2DISPLAYINFO
197 - unsigned long ulMaxFlipChains;
198 - unsigned long ulMaxBuffersInChain;
199 - PVR2DFORMAT eFormat;
200 - unsigned long ulWidth;
201 - unsigned long ulHeight;
202 - long lStride;
203 - unsigned long ulMinFlipInterval;
204 - unsigned long ulMaxFlipInterval;
206 -}PVR2DDISPLAYINFO;
209 -typedef struct _PVR2DBLTINFO
211 - unsigned long CopyCode; /* rop code */
212 - unsigned long Colour; /* fill colour */
213 - unsigned long ColourKey; /* colour key */
214 - unsigned char GlobalAlphaValue; /* global alpha blending */
215 - unsigned char AlphaBlendingFunc; /* per-pixel alpha-blending function */
217 - PVR2DBLITFLAGS BlitFlags; /* additional blit control information */
219 - PVR2DMEMINFO *pDstMemInfo; /* destination memory */
220 - unsigned long DstOffset; /* byte offset from start of allocation to destination surface pixel 0,0 */
221 - long DstStride; /* signed stride, the number of bytes from pixel 0,0 to 0,1 */
222 - long DstX, DstY; /* pixel offset from start of dest surface to start of blt rectangle */
223 - long DSizeX,DSizeY; /* blt size */
224 - PVR2DFORMAT DstFormat; /* dest format */
225 - unsigned long DstSurfWidth; /* size of dest surface in pixels */
226 - unsigned long DstSurfHeight; /* size of dest surface in pixels */
228 - PVR2DMEMINFO *pSrcMemInfo; /* source mem, (source fields are also used for patterns) */
229 - unsigned long SrcOffset; /* byte offset from start of allocation to src/pat surface pixel 0,0 */
230 - long SrcStride; /* signed stride, the number of bytes from pixel 0,0 to 0,1 */
231 - long SrcX, SrcY; /* pixel offset from start of surface to start of source rectangle */
232 - /* for patterns this is the start offset within the pattern */
233 - long SizeX,SizeY; /* source rectangle size or pattern size in pixels */
234 - PVR2DFORMAT SrcFormat; /* source/pattern format */
235 - PVR2DMEMINFO *pPalMemInfo; /* source/pattern palette memory containing argb8888 colour table */
236 - unsigned long PalOffset; /* byte offset from start of allocation to start of palette */
237 - unsigned long SrcSurfWidth; /* size of source surface in pixels */
238 - unsigned long SrcSurfHeight; /* size of source surface in pixels */
240 - PVR2DMEMINFO *pMaskMemInfo; /* mask memory, 1bpp format implied */
241 - unsigned long MaskOffset; /* byte offset from start of allocation to mask surface pixel 0,0 */
242 - long MaskStride; /* signed stride, the number of bytes from pixel 0,0 to 0,1 */
243 - long MaskX, MaskY; /* mask rect top left (mask size = blt size) */
244 - unsigned long MaskSurfWidth; /* size of mask surface in pixels */
245 - unsigned long MaskSurfHeight; /* size of mask surface in pixels */
247 - PPVR2D_ALPHABLT pAlpha; /* fully specified alpha blend */
249 -}PVR2DBLTINFO, *PPVR2DBLTINFO;
251 -typedef struct _PVR2DRECT
253 - long left, top;
254 - long right, bottom;
255 -} PVR2DRECT;
257 -typedef struct
259 - PVR2DMEMINFO *pSurfMemInfo; /* surface memory */
260 - unsigned long SurfOffset; /* byte offset from start of allocation to destination surface pixel 0,0 */
261 - long Stride; /* signed stride */
262 - PVR2DFORMAT Format;
263 - unsigned long SurfWidth; /* surface size in pixels */
264 - unsigned long SurfHeight;
266 -} PVR2D_SURFACE, *PPVR2D_SURFACE;
268 -typedef struct
270 - unsigned long *pUseCode; /* USSE code */
271 - unsigned long UseCodeSize; /* usse code size in bytes */
273 -} PVR2D_USECODE, *PPVR2D_USECODE;
275 -typedef struct
277 - PVR2D_SURFACE sDst; /* destination surface */
278 - PVR2D_SURFACE sSrc; /* source surface */
279 - PVR2DRECT rcDest; /* destination rectangle */
280 - PVR2DRECT rcSource; /* source rectangle */
281 - PVR2D_HANDLE hUseCode; /* custom USE code (NULL implies source copy) */
282 - unsigned long UseParams[2]; /* per-blt params for use code */
284 -} PVR2D_3DBLT, *PPVR2D_3DBLT;
287 -#define MAKE_COPY_BLIT(src,soff,dest,doff,sx,sy,dx,dy,sz)
289 -typedef void* PVR2DCONTEXTHANDLE;
290 -typedef void* PVR2DFLIPCHAINHANDLE;
293 -// CopyCode field of PVR2DBLTINFO structure:
294 -// the CopyCode field of the PVR2DBLTINFO structure should contain a rop3 or rop4 code.
295 -// a rop3 is an 8 bit code that describes a blt with three inputs : source dest and pattern
296 -// rop4 is a 16 bit code that describes a blt with four inputs : source dest pattern and mask
297 -// common rop3 codes are defined below
298 -// a colour fill blt is processed in the pattern channel as a constant colour with a rop code of 0xF0
299 -// PVR2D_BLIT_PAT_SURFACE_ENABLE defines whether the pattern channel is a surface or a fill colour.
300 -// a rop4 is defined by two rop3 codes, and the 1 bit-per-pixel mask surface defines which is used.
301 -// a common rop4 is 0xAAF0 which is the mask copy blt used for text glyphs.
302 -// CopyCode is taken to be a rop4 when pMaskMemInfo is non zero, otherwise it is assumed to be a rop3
303 -// use the PVR2DMASKROP4 macro below to construct a rop4 from two rop3's
304 -// rop3a is the rop used when mask pixel = 1, and rop3b when mask = 0
305 -#define PVR2DROP4(rop3b, rop3a) ((rop3b<<8)|rop3a)
307 -/* common rop codes */
308 -#define PVR2DROPclear 0x00 /* 0 (whiteness) */
309 -#define PVR2DROPset 0xFF /* 1 (blackness) */
310 -#define PVR2DROPnoop 0xAA /* dst (used for masked blts) */
312 -/* source and dest rop codes */
313 -#define PVR2DROPand 0x88 /* src AND dst */
314 -#define PVR2DROPandReverse 0x44 /* src AND NOT dst */
315 -#define PVR2DROPcopy 0xCC /* src (used for source copy and alpha blts) */
316 -#define PVR2DROPandInverted 0x22 /* NOT src AND dst */
317 -#define PVR2DROPxor 0x66 /* src XOR dst */
318 -#define PVR2DROPor 0xEE /* src OR dst */
319 -#define PVR2DROPnor 0x11 /* NOT src AND NOT dst */
320 -#define PVR2DROPequiv 0x99 /* NOT src XOR dst */
321 -#define PVR2DROPinvert 0x55 /* NOT dst */
322 -#define PVR2DROPorReverse 0xDD /* src OR NOT dst */
323 -#define PVR2DROPcopyInverted 0x33 /* NOT src */
324 -#define PVR2DROPorInverted 0xBB /* NOT src OR dst */
325 -#define PVR2DROPnand 0x77 /* NOT src OR NOT dst */
327 -/* pattern rop codes */
328 -#define PVR2DPATROPand 0xA0 /* pat AND dst */
329 -#define PVR2DPATROPandReverse 0x50 /* pat AND NOT dst */
330 -#define PVR2DPATROPcopy 0xF0 /* pat (used for solid color fills and pattern blts) */
331 -#define PVR2DPATROPandInverted 0x0A /* NOT pat AND dst */
332 -#define PVR2DPATROPxor 0x5A /* pat XOR dst */
333 -#define PVR2DPATROPor 0xFA /* pat OR dst */
334 -#define PVR2DPATROPnor 0x05 /* NOT pat AND NOT dst */
335 -#define PVR2DPATROPequiv 0xA5 /* NOT pat XOR dst */
336 -#define PVR2DPATROPinvert 0x55 /* NOT dst */
337 -#define PVR2DPATROPorReverse 0xF5 /* pat OR NOT dst */
338 -#define PVR2DPATROPcopyInverted 0x0F /* NOT pat */
339 -#define PVR2DPATROPorInverted 0xAF /* NOT pat OR dst */
340 -#define PVR2DPATROPnand 0x5F /* NOT pat OR NOT dst */
342 -/* common rop4 codes */
343 -#define PVR2DROP4MaskedCopy PVR2DROP4(PVR2DROPnoop,PVR2DROPcopy) /* masked source copy blt (used for rounded window corners etc) */
344 -#define PVR2DROP4MaskedFill PVR2DROP4(PVR2DROPnoop,PVR2DPATROPcopy) /* masked colour fill blt (used for text) */
346 -/* Legacy support */
347 -#define PVR2DROP3_PATMASK PVR2DPATROPcopy
348 -#define PVR2DROP3_SRCMASK PVR2DROPcopy
350 -/* pixmap memory alignment */
351 -#define PVR2D_ALIGNMENT_4 4 /* DWORD alignment */
352 -#define PVR2D_ALIGNMENT_ANY 0 /* no alignment */
353 -#define PVR2D_ALIGNMENT_PALETTE 16 /* 16 byte alignment is required for palettes */
355 -/* Heap number for PVR2DGetFrameBuffer */
356 -#define PVR2D_FB_PRIMARY_SURFACE 0
358 -#define PVR2D_PRESENT_PROPERTY_SRCSTRIDE (1 << 0)
359 -#define PVR2D_PRESENT_PROPERTY_DSTSIZE (1 << 1)
360 -#define PVR2D_PRESENT_PROPERTY_DSTPOS (1 << 2)
361 -#define PVR2D_PRESENT_PROPERTY_CLIPRECTS (1 << 3)
362 -#define PVR2D_PRESENT_PROPERTY_INTERVAL (1 << 4)
365 -#define PVR2D_CREATE_FLIPCHAIN_SHARED (1 << 0)
366 -#define PVR2D_CREATE_FLIPCHAIN_QUERY (1 << 1)
368 -/* Functions that the library exports */
370 -PVR2D_IMPORT
371 -int PVR2DEnumerateDevices(PVR2DDEVICEINFO *pDevInfo);
373 -PVR2D_IMPORT
374 -PVR2DERROR PVR2DCreateDeviceContext(unsigned long ulDevID,
375 - PVR2DCONTEXTHANDLE* phContext,
376 - unsigned long ulFlags);
378 -PVR2D_IMPORT
379 -PVR2DERROR PVR2DDestroyDeviceContext(PVR2DCONTEXTHANDLE hContext);
381 -PVR2D_IMPORT
382 -PVR2DERROR PVR2DGetDeviceInfo(PVR2DCONTEXTHANDLE hContext,
383 - PVR2DDISPLAYINFO *pDisplayInfo);
385 -PVR2D_IMPORT
386 -PVR2DERROR PVR2DGetScreenMode(PVR2DCONTEXTHANDLE hContext,
387 - PVR2DFORMAT *pFormat,
388 - long *plWidth,
389 - long *plHeight,
390 - long *plStride,
391 - int *piRefreshRate);
393 -PVR2D_IMPORT
394 -PVR2DERROR PVR2DGetFrameBuffer(PVR2DCONTEXTHANDLE hContext,
395 - int nHeap,
396 - PVR2DMEMINFO **ppsMemInfo);
398 -PVR2D_IMPORT
399 -PVR2DERROR PVR2DMemAlloc(PVR2DCONTEXTHANDLE hContext,
400 - unsigned long ulBytes,
401 - unsigned long ulAlign,
402 - unsigned long ulFlags,
403 - PVR2DMEMINFO **ppsMemInfo);
405 -PVR2D_IMPORT
406 -PVR2DERROR PVR2DMemWrap(PVR2DCONTEXTHANDLE hContext,
407 - void *pMem,
408 - unsigned long ulFlags,
409 - unsigned long ulBytes,
410 - unsigned long alPageAddress[],
411 - PVR2DMEMINFO **ppsMemInfo);
413 -PVR2D_IMPORT
414 -PVR2DERROR PVR2DMemMap(PVR2DCONTEXTHANDLE hContext,
415 - unsigned long ulFlags,
416 - void *hPrivateMapData,
417 - PVR2DMEMINFO **ppsDstMem);
419 -PVR2D_IMPORT
420 -PVR2DERROR PVR2DMemFree(PVR2DCONTEXTHANDLE hContext,
421 - PVR2DMEMINFO *psMemInfo);
423 -PVR2D_IMPORT
424 -PVR2DERROR PVR2DBlt(PVR2DCONTEXTHANDLE hContext,
425 - PVR2DBLTINFO *pBltInfo);
427 -PVR2D_IMPORT
428 -PVR2DERROR PVR2DBltClipped(PVR2DCONTEXTHANDLE hContext,
429 - PVR2DBLTINFO *pBltInfo,
430 - unsigned long ulNumClipRects,
431 - PVR2DRECT *pClipRects);
433 -PVR2D_IMPORT
434 -PVR2DERROR PVR2DQueryBlitsComplete(PVR2DCONTEXTHANDLE hContext,
435 - PVR2DMEMINFO *pMemInfo,
436 - unsigned int uiWaitForComplete);
438 -PVR2D_IMPORT
439 -PVR2DERROR PVR2DSetPresentBltProperties(PVR2DCONTEXTHANDLE hContext,
440 - unsigned long ulPropertyMask,
441 - long lSrcStride,
442 - unsigned long ulDstWidth,
443 - unsigned long ulDstHeight,
444 - long lDstXPos,
445 - long lDstYPos,
446 - unsigned long ulNumClipRects,
447 - PVR2DRECT *pClipRects,
448 - unsigned long ulSwapInterval);
450 -PVR2D_IMPORT
451 -PVR2DERROR PVR2DPresentBlt(PVR2DCONTEXTHANDLE hContext,
452 - PVR2DMEMINFO *pMemInfo,
453 - long lRenderID);
455 -PVR2D_IMPORT
456 -PVR2DERROR PVR2DCreateFlipChain(PVR2DCONTEXTHANDLE hContext,
457 - unsigned long ulFlags,
458 - unsigned long ulNumBuffers,
459 - unsigned long ulWidth,
460 - unsigned long ulHeight,
461 - PVR2DFORMAT eFormat,
462 - long *plStride,
463 - unsigned long *pulFlipChainID,
464 - PVR2DFLIPCHAINHANDLE *phFlipChain);
466 -PVR2D_IMPORT
467 -PVR2DERROR PVR2DDestroyFlipChain(PVR2DCONTEXTHANDLE hContext,
468 - PVR2DFLIPCHAINHANDLE hFlipChain);
470 -PVR2D_IMPORT
471 -PVR2DERROR PVR2DGetFlipChainBuffers(PVR2DCONTEXTHANDLE hContext,
472 - PVR2DFLIPCHAINHANDLE hFlipChain,
473 - unsigned long *pulNumBuffers,
474 - PVR2DMEMINFO *psMemInfo[]);
476 -PVR2D_IMPORT
477 -PVR2DERROR PVR2DSetPresentFlipProperties(PVR2DCONTEXTHANDLE hContext,
478 - PVR2DFLIPCHAINHANDLE hFlipChain,
479 - unsigned long ulPropertyMask,
480 - long lDstXPos,
481 - long lDstYPos,
482 - unsigned long ulNumClipRects,
483 - PVR2DRECT *pClipRects,
484 - unsigned long ulSwapInterval);
486 -PVR2D_IMPORT
487 -PVR2DERROR PVR2DPresentFlip(PVR2DCONTEXTHANDLE hContext,
488 - PVR2DFLIPCHAINHANDLE hFlipChain,
489 - PVR2DMEMINFO *psMemInfo,
490 - long lRenderID);
492 -PVR2D_IMPORT
493 -PVR2DERROR PVR2DGetAPIRev(long *lRevMajor, long *lRevMinor);
495 -PVR2D_IMPORT
496 -PVR2DERROR PVR2DLoadUseCode (const PVR2DCONTEXTHANDLE hContext, const unsigned char *pUseCode,
497 - const unsigned long UseCodeSize, PVR2D_HANDLE *pUseCodeHandle);
498 -PVR2D_IMPORT
499 -PVR2DERROR PVR2DFreeUseCode (const PVR2DCONTEXTHANDLE hContext, const PVR2D_HANDLE hUseCodeHandle);
501 -PVR2D_IMPORT
502 -PVR2DERROR PVR2DBlt3D (const PVR2DCONTEXTHANDLE hContext, const PPVR2D_3DBLT pBlt3D);
504 -#ifdef __cplusplus
506 -#endif
508 -#endif /* _PVR2D_H_ */
510 -/******************************************************************************
511 - End of file (pvr2d.h)
512 -******************************************************************************/
513 Index: qt-4.8.5/src/3rdparty/powervr/wsegl.h
514 ===================================================================
515 --- qt-4.8.5.orig/src/3rdparty/powervr/wsegl.h 2013-07-08 11:24:33.010516867 -0500
516 +++ /dev/null 1970-01-01 00:00:00.000000000 +0000
517 @@ -1,240 +0,0 @@
518 -/******************************************************************************
519 - Name : wsegl.h
520 - Copyright : Copyright (c) Imagination Technologies Limited.
521 - This specification is protected by copyright laws and contains
522 - material proprietary to Imagination Technologies Limited.
523 - You may use and distribute this specification free of charge for implementing
524 - the functionality therein, without altering or removing any trademark, copyright,
525 - or other notice from the specification.
526 - Platform : ANSI
527 -*****************************************************************************/
530 -#if !defined(__WSEGL_H__)
531 -#define __WSEGL_H__
533 -#ifdef __cplusplus
534 -extern "C" {
535 -#endif
538 -// WSEGL Platform-specific definitions
540 -#define WSEGL_EXPORT
541 -#define WSEGL_IMPORT
544 -// WSEGL API Version Number
547 -#define WSEGL_VERSION 1
548 -#define WSEGL_DEFAULT_DISPLAY 0
549 -#define WSEGL_DEFAULT_NATIVE_ENGINE 0
551 -#define WSEGL_FALSE 0
552 -#define WSEGL_TRUE 1
553 -#define WSEGL_NULL 0
555 -#define WSEGL_UNREFERENCED_PARAMETER(param) (param) = (param)
558 -// WSEGL handles
560 -typedef void *WSEGLDisplayHandle;
561 -typedef void *WSEGLDrawableHandle;
564 -// Display capability type
566 -typedef enum WSEGLCapsType_TAG
568 - WSEGL_NO_CAPS = 0,
569 - WSEGL_CAP_MIN_SWAP_INTERVAL = 1, /* System default value = 1 */
570 - WSEGL_CAP_MAX_SWAP_INTERVAL = 2, /* System default value = 1 */
571 - WSEGL_CAP_WINDOWS_USE_HW_SYNC = 3, /* System default value = 0 (FALSE) */
572 - WSEGL_CAP_PIXMAPS_USE_HW_SYNC = 4, /* System default value = 0 (FALSE) */
574 -} WSEGLCapsType;
577 -// Display capability
579 -typedef struct WSEGLCaps_TAG
581 - WSEGLCapsType eCapsType;
582 - unsigned long ui32CapsValue;
584 -} WSEGLCaps;
587 -// Drawable type
589 -#define WSEGL_NO_DRAWABLE 0x0
590 -#define WSEGL_DRAWABLE_WINDOW 0x1
591 -#define WSEGL_DRAWABLE_PIXMAP 0x2
595 -// Pixel format of display/drawable
597 -typedef enum WSEGLPixelFormat_TAG
599 - WSEGL_PIXELFORMAT_565 = 0,
600 - WSEGL_PIXELFORMAT_4444 = 1,
601 - WSEGL_PIXELFORMAT_8888 = 2,
602 - WSEGL_PIXELFORMAT_1555 = 3
604 -} WSEGLPixelFormat;
607 -// Transparent of display/drawable
609 -typedef enum WSEGLTransparentType_TAG
611 - WSEGL_OPAQUE = 0,
612 - WSEGL_COLOR_KEY = 1,
614 -} WSEGLTransparentType;
617 -// Display/drawable configuration
619 -typedef struct WSEGLConfig_TAG
621 - /*
622 - // Type of drawables this configuration applies to -
623 - // OR'd values of drawable types.
624 - */
625 - unsigned long ui32DrawableType;
627 - /* Pixel format */
628 - WSEGLPixelFormat ePixelFormat;
630 - /* Native Renderable - set to WSEGL_TRUE if native renderable */
631 - unsigned long ulNativeRenderable;
633 - /* FrameBuffer Level Parameter */
634 - unsigned long ulFrameBufferLevel;
636 - /* Native Visual ID */
637 - unsigned long ulNativeVisualID;
639 - /* Native Visual */
640 - void *hNativeVisual;
642 - /* Transparent Type */
643 - WSEGLTransparentType eTransparentType;
645 - /* Transparent Color - only used if transparent type is COLOR_KEY */
646 - unsigned long ulTransparentColor; /* packed as 0x00RRGGBB */
649 -} WSEGLConfig;
652 -// WSEGL errors
654 -typedef enum WSEGLError_TAG
656 - WSEGL_SUCCESS = 0,
657 - WSEGL_CANNOT_INITIALISE = 1,
658 - WSEGL_BAD_NATIVE_DISPLAY = 2,
659 - WSEGL_BAD_NATIVE_WINDOW = 3,
660 - WSEGL_BAD_NATIVE_PIXMAP = 4,
661 - WSEGL_BAD_NATIVE_ENGINE = 5,
662 - WSEGL_BAD_DRAWABLE = 6,
663 - WSEGL_BAD_CONFIG = 7,
664 - WSEGL_OUT_OF_MEMORY = 8
666 -} WSEGLError;
669 -// Drawable orientation (in degrees anti-clockwise)
671 -typedef enum WSEGLRotationAngle_TAG
673 - WSEGL_ROTATE_0 = 0,
674 - WSEGL_ROTATE_90 = 1,
675 - WSEGL_ROTATE_180 = 2,
676 - WSEGL_ROTATE_270 = 3
678 -} WSEGLRotationAngle;
681 -// Drawable information required by OpenGL-ES driver
683 -typedef struct WSEGLDrawableParams_TAG
685 - /* Width in pixels of the drawable */
686 - unsigned long ui32Width;
688 - /* Height in pixels of the drawable */
689 - unsigned long ui32Height;
691 - /* Stride in pixels of the drawable */
692 - unsigned long ui32Stride;
694 - /* Pixel format of the drawable */
695 - WSEGLPixelFormat ePixelFormat;
697 - /* User space cpu virtual address of the drawable */
698 - void *pvLinearAddress;
700 - /* HW address of the drawable */
701 - unsigned long ui32HWAddress;
703 - /* Private data for the drawable */
704 - void *hPrivateData;
706 -} WSEGLDrawableParams;
710 -// Table of function pointers that is returned by WSEGL_GetFunctionTablePointer()
712 -// The first entry in the table is the version number of the wsegl.h header file that
713 -// the module has been written against, and should therefore be set to WSEGL_VERSION
715 -typedef struct WSEGL_FunctionTable_TAG
717 - unsigned long ui32WSEGLVersion;
719 - WSEGLError (*pfnWSEGL_IsDisplayValid)(NativeDisplayType);
721 - WSEGLError (*pfnWSEGL_InitialiseDisplay)(NativeDisplayType, WSEGLDisplayHandle *, const WSEGLCaps **, WSEGLConfig **);
723 - WSEGLError (*pfnWSEGL_CloseDisplay)(WSEGLDisplayHandle);
725 - WSEGLError (*pfnWSEGL_CreateWindowDrawable)(WSEGLDisplayHandle, WSEGLConfig *, WSEGLDrawableHandle *, NativeWindowType, WSEGLRotationAngle *);
727 - WSEGLError (*pfnWSEGL_CreatePixmapDrawable)(WSEGLDisplayHandle, WSEGLConfig *, WSEGLDrawableHandle *, NativePixmapType, WSEGLRotationAngle *);
729 - WSEGLError (*pfnWSEGL_DeleteDrawable)(WSEGLDrawableHandle);
731 - WSEGLError (*pfnWSEGL_SwapDrawable)(WSEGLDrawableHandle, unsigned long);
733 - WSEGLError (*pfnWSEGL_SwapControlInterval)(WSEGLDrawableHandle, unsigned long);
735 - WSEGLError (*pfnWSEGL_WaitNative)(WSEGLDrawableHandle, unsigned long);
737 - WSEGLError (*pfnWSEGL_CopyFromDrawable)(WSEGLDrawableHandle, NativePixmapType);
739 - WSEGLError (*pfnWSEGL_CopyFromPBuffer)(void *, unsigned long, unsigned long, unsigned long, WSEGLPixelFormat, NativePixmapType);
741 - WSEGLError (*pfnWSEGL_GetDrawableParameters)(WSEGLDrawableHandle, WSEGLDrawableParams *, WSEGLDrawableParams *);
744 -} WSEGL_FunctionTable;
747 -WSEGL_IMPORT const WSEGL_FunctionTable *WSEGL_GetFunctionTablePointer(void);
749 -#ifdef __cplusplus
751 -#endif
753 -#endif /* __WSEGL_H__ */
755 -/******************************************************************************
756 - End of file (wsegl.h)
757 -******************************************************************************/
758 Index: qt-4.8.5/src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwswsegl.c
759 ===================================================================
760 --- qt-4.8.5.orig/src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwswsegl.c 2013-07-08 11:24:33.010516867 -0500
761 +++ qt-4.8.5/src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwswsegl.c 2013-07-08 11:28:26.142521123 -0500
762 @@ -39,7 +39,7 @@
764 ****************************************************************************/
766 -#include <GLES/eglplatform.h>
767 +#include <EGL/eglplatform.h>
768 #include <wsegl.h>
769 #include <pvr2d.h>
770 #include <string.h>
771 @@ -379,6 +379,20 @@
772 return WSEGL_SUCCESS;
775 +/* Function stub for ConnectDrawable() */
776 +static WSEGLError wseglConnectDrawable(WSEGLDrawableHandle hDrawable)
778 + WSEGL_UNREFERENCED_PARAMETER(hDrawable);
779 + return WSEGL_SUCCESS;
782 +/* Function stub for DisconnectDrawable() */
783 +static WSEGLError wseglDisconnectDrawable(WSEGLDrawableHandle hDrawable)
785 + WSEGL_UNREFERENCED_PARAMETER(hDrawable);
786 + return WSEGL_SUCCESS;
789 static WSEGL_FunctionTable const wseglFunctions = {
790 WSEGL_VERSION,
791 wseglIsDisplayValid,
792 @@ -392,7 +406,9 @@
793 wseglWaitNative,
794 wseglCopyFromDrawable,
795 wseglCopyFromPBuffer,
796 - wseglGetDrawableParameters
797 + wseglGetDrawableParameters,
798 + wseglConnectDrawable,
799 + wseglDisconnectDrawable
802 /* Return the table of WSEGL functions to the EGL implementation */