-
Notifications
You must be signed in to change notification settings - Fork 11
/
LICENSE
447 lines (316 loc) · 14.3 KB
/
LICENSE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
wsegl.h:
/******************************************************************************
Name : wsegl.h
Copyright : Copyright (c) Imagination Technologies Limited.
This specification is protected by copyright laws and contains
material proprietary to Imagination Technologies Limited.
You may use and distribute this specification free of charge for implementing
the functionality therein, without altering or removing any trademark, copyright,
or other notice from the specification.
Platform : ANSI
*****************************************************************************/
Origin:
https://qt.gitorious.org/qt/qt/blobs/4.7/src/3rdparty/powervr/wsegl.h
Comment:
Newer version also exists in
http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/latest/index_FDS.html
Release notes at http://processors.wiki.ti.com/index.php/RN_4_03_00_02
linux/omapfb.h:
/*
* File: include/linux/omapfb.h
*
* Framebuffer driver for TI OMAP boards
*
* Copyright (C) 2004 Nokia Corporation
* Author: Imre Deak <[email protected]>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
Origin:
From Linux kernel, workaround to not include kernel-adaptation-n900-devel
directly. Is a kernel header.
Comment:
Similar method as used in xserver-xorg-video-fbdev (SGX variant)
doc/reference/pvr2d.h:
**********************************************************************
*
* Copyright(c) Imagination Technologies Ltd.
*
* The contents of this file are subject to the MIT license as set out below.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy
* of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
* CLAIM,
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
* OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
* OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* This License is also included in this distribution in the file called
* "COPYING".
*
***************************************
Origin:
http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/latest/index_FDS.html
Release notes at http://processors.wiki.ti.com/index.php/RN_4_03_00_02
Comment:
Exact file not used in code, instead SGX driver's header file is used. Older
version also exists in Qt tree at
https://qt.gitorious.org/qt/qt/blobs/4.7/src/3rdparty/powervr/pvr2d.h
What is used from here especially is the PVR2DMemExport and PVR2DMemMap
calls, used to share hardware buffers across processes.
waylandwsegl.c/wayland-egl.c/wayland-egl-priv.h is described per feature added.
waylandwsegl.c/Basic WSEGL skeleton:
Origin:
https://qt.gitorious.org/qt/qt/blobs/4.7/src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwswsegl.c
Licensing:
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation ([email protected])
**
** This file is part of the plugins of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at [email protected].
wayland-egl.c/wayland-egl-priv.h -- Basic wayland-egl implementation
Origin:
http://cgit.freedesktop.org/mesa/mesa/tree/src/egl/wayland/wayland-egl/wayland-egl-priv.h
http://cgit.freedesktop.org/mesa/mesa/tree/src/egl/wayland/wayland-egl/wayland-egl.c
Licensing:
No direct licensing indicated in file headers but
http://cgit.freedesktop.org/mesa/mesa/plain/docs/license.html states default
license is:
Copyright (C) 1999-2007 Brian Paul All Rights Reserved.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
wayland-egl-priv.h, waylandwsegl.c: Declare that NativeDisplay/Pixmap/WindowType is
wayland objects
Method:
Seen in mesa include/EGL/eglplatform.h
Licensing:
** Copyright (c) 2007-2009 The Khronos Group Inc.
**
** Permission is hereby granted, free of charge, to any person obtaining a
** copy of this software and/or associated documentation files (the
** "Materials"), to deal in the Materials without restriction, including
** without limitation the rights to use, copy, modify, merge, publish,
** distribute, sublicense, and/or sell copies of the Materials, and to
** permit persons to whom the Materials are furnished to do so, subject to
** the following conditions:
**
** The above copyright notice and this permission notice shall be included
** in all copies or substantial portions of the Materials.
**
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
--
wayland-egl-priv.h, waylandwsegl.c: Make internal structure for hosting
wsegl-specific information about wayland display.
Method:
Reused old wl_egl_display* helper functions from older wayland-egl implementation
Licensing:
See wayland-egl.c/wayland-egl-priv.h -- Basic wayland-egl implementation
--
wayland-egl-priv.h, waylandwsegl.c: Each egl display can have different
attributes such as colorspace etc.
Method:
Manually initializing using information from pvr2d.h
Licensing:
LGPLv2.1. Author: Carsten Munk <[email protected]>
--
wayland-egl-priv.h, waylandwsegl.c: Each egl display should have a PVR2D
context.
Method:
WSEGL Display initialization/destruction seen in
https://qt.gitorious.org/qt/qt/blobs/4.7/src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwswsegl.c
lines 85-124, 128-132. Context initialization seen in
https://qt.gitorious.org/qt/qt/blobs/4.7/src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwsdrawable.c
lines 184-213, 362-364
Licensing:
For display initialization/context initalization, see above for Qt
licensing. For rest, contribution by Carsten Munk <[email protected]>,
LGPLv2.1.
----
wayland-egl-priv.h, waylandwsegl.c: If a native display is NULL, it wants
the framebuffer. Collect information on pixel format and other framebuffer
properties and store in egl display structure.
Method:
Framebuffer properties collection and mapping to pixel format seen in
https://qt.gitorious.org/qt/qt/blobs/4.7/src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwsdrawable.c
lines 79-119. WSEGL_PIXELFORMAT conversion is simple conversion based on
wsegl.h
Licensing:
See Qt licensing. For rest, contribution by Carsten Munk <[email protected]>,
LGPL v2.1.
---
Makefile:
Licensing:
LGPL v2.1. Contribution by Carsten Munk <[email protected]>
---
wayland-egl-priv.h, waylandwsegl.c: Making a window drawable, if native window is NULL, we want the
framebuffer. Collect information on flipbuffer availiability. Return
rotation angle and re-use egldisplay as drawable handle.
Method:
See
https://qt.gitorious.org/qt/qt/blobs/4.7/src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwsdrawable.c
lines 216-220 for flipbuffer availability code. Return rotation angle,
drawable seen in
https://qt.gitorious.org/qt/qt/blobs/4.7/src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwswsegl.c
lines 141, 175-179
Licensing:
See Qt licensing, for rest, contribution by Carsten Munk <[email protected]>
----
wayland-egl-priv.h, waylandwsegl.c: Drawables need something to draw into.
To get frames to display, there's two methods, flip chains (note that you
want a change in frames to happen) or blitting (blit onto a front buffer).
This sets up back buffering structures and flip chains.
Method:
See
https://qt.gitorious.org/qt/qt/blobs/4.7/src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwsdrawable.c
lines 665-696 for allocation of back buffers and general logic, lines
241-248 for getting memory handle for framebuffer (front buffer) and lines
258-273 for flip chain allocation. Stride is 32 in that source code, but as per
http://processors.wiki.ti.com/index.php/Render_to_Texture_with_OpenGL_ES#Stride
we can save memory and only have 8 on SGX rev 121. Pixel width in bytes is
based on RGB565/ARGB8888 definitions.
Licensing:
See Qt licensing, for rest, contribution by Carsten Munk <[email protected]>
----
wayland-egl-priv.h, waylandwsegl.c: To start rendering the SGX drivers need
information on buffers and do buffer swapping.
Method:
See
https://qt.gitorious.org/qt/qt/blobs/4.7/src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwsdrawable.c
lines 720-730 for buffer swapping,
https://qt.gitorious.org/qt/qt/blobs/4.7/src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwswsegl.c
lines 336-379 for information passing.
Licensing:
See Qt licensing
---
wayland-egl-priv.h, waylandwsegl.c: Implement blitting and present flip for
flipchains.
Method:
See
https://qt.gitorious.org/qt/qt/blobs/4.7/src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwsdrawable.c
lines 761-762, 790-813, 787 for blitting, present flip and querying blit
completion,
https://qt.gitorious.org/qt/qt/blobs/4.7/src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwswsegl.c
lines 212-220 for WSEGL part.
Licensing:
See Qt licensing
----
wayland-egl-priv.h, waylandwsegl.c: Start implementing wayland windows,
gather information on visuals for buffers and connect to DRM object
Method:
See
http://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/state_trackers/egl/wayland/native_drm.c
lines 73-90 for DRM object roundtrip forcing logic, lines 188-248 for DRM
object connection logic.
Licensing:
See Mesa licensing, visual comparison is simple wayland method contributed
by Carsten Munk <[email protected]>
---
waylandwsegl.c: Handle deleting drawables
Method:
See
https://qt.gitorious.org/qt/qt/blobs/4.7/src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwswsegl.c
lines 705-712
Licensing:
See Qt licensing
---
waylandwsegl.c: Share hardware buffers with DRM object through a handle.
Method:
We are using MemExport in xserver-xorg-video-fbdev for SGX, which gives us a
memory handle which is passed on to DRI clients. pvr2d.h. In this, I use
PVR2DMemExport to get a shared memory handle for my hardware buffer.
Licensing:
LGPLv2.1, Contribution by Carsten Munk <[email protected]>.
---
waylandwsegl.c, wayland-egl-priv.h, wayland-egl.c: Make way to differentiate
between different drawable types
Method:
Just a simple header for the internal structures.
Licensing:
LGPLv2.1, Contribution by Carsten Munk <[email protected]>
----
waylandwsegl.c: Add swap buffering for wayland windows/DRM buffers
Method:
Basically just logic seen in mesa already, protocol for attaching buffers to
wayland windows
Seen in http://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/state_trackers/egl/wayland/native_wayland.c
lines 253-294
Licensing:
See Mesa licensing.
---
waylandwsegl.c: If we get a specially crafted pixmap (pixmap drawables) that contains a DRM
handle, we map it into space and use it as a pixmap.
Method:
The inverse of a PVR2DMemExport is logically a PVR2DMemMap (and takes a
PVR2D_HANDLE too). We make a fake pixmap structure for internal usage and
map in the buffer into our memory space/SGX contexts. When render
information is requested, we can pass the memory information to the SGX
drivers.
Licensing:
LGPLv2.1, Contribution by Carsten Munk <[email protected]>