013a3b5ca27c4a6a626bf533668f35fc7f53e75f
[adaptation/intel_mfld/psb-video-mfld.git] / packaging / license.txt
1                                         User Space Graphics Driver Binary License
2 Copyright (c) 2008, Intel Corporation.
3 Portions (c), Imagination Technology, Ltd.
4 All rights reserved.
5 Redistribution and Use. Redistribution and use in binary form, without modification, of the software code
6 provided with this license (“Software”), are permitted provided that the following conditions are met:
7       • Redistributions must reproduce the above copyright notice and this license in the documentation and/or
8           other materials provided with the Software.
9       • Neither the name of Intel Corporation nor the name of Imagination Technology, Ltd may be used to endorse
10           or promote products derived from the Software without specific prior written permission.
11       • The Software can only be used in connection with the Intel hardware designed to use the Software as
12           outlined in the documentation. No other use is authorized.
13       • No reverse engineering, decompilation, or disassembly of the Software is permitted.
14       • The Software may not be distributed under terms different than this license.
15 Limited Patent License. Intel Corporation grants a world-wide, royalty-free, non-exclusive license under patents
16 it now or hereafter owns or controls to make, have made, use, import, offer to sell and sell (“Utilize”) the Software,
17 but solely to the extent that any such patent is necessary to Utilize the Software alone. The patent license shall not
18 apply to any combinations which include the Software. No hardware per se is licensed hereunder.
19 Ownership of Software and Copyrights. Title to all copies of the Software remains with the copyright holders. The
20 Software is copyrighted and protected by the laws of the United States and other countries, and international treaty
21 provisions.
22 DISCLAIMER. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
23 IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
24 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
25 NO EVENT SHALL THE COPYRIGHT OWNERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
26 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
28 OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
30 WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 /*
32   * (C) Copyright IBM Corporation 2002, 2004
33   * All Rights Reserved.
34   *
35   * Permission is hereby granted, free of charge, to any person obtaining a
36   * copy of this software and associated documentation files (the "Software"),
37   * to deal in the Software without restriction, including without limitation
38   * on the rights to use, copy, modify, merge, publish, distribute, sub
39   * license, and/or sell copies of the Software, and to permit persons to whom
40   * the Software is furnished to do so, subject to the following conditions:
41   *
42   * The above copyright notice and this permission notice (including the next
43   * paragraph) shall be included in all copies or substantial portions of the
44   * Software.
45   *
46   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
47   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
48   * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
49   * VA LINUX SYSTEM, IBM AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM,
50   * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
51   * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
52   * USE OR OTHER DEALINGS IN THE SOFTWARE.
53 */
54 /*
55  * Mesa 3-D graphics library
56  * Version: 7.1
57  *
58  * Copyright (C) 1999-2007 Brian Paul All Rights Reserved.
59  *
60  * Permission is hereby granted, free of charge, to any person obtaining a
61  * copy of this software and associated documentation files (the "Software"),
62  * to deal in the Software without restriction, including without limitation
63  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
64  * and/or sell copies of the Software, and to permit persons to whom the
65  * Software is furnished to do so, subject to the following conditions:
66  *
67  * The above copyright notice and this permission notice shall be included
68  * in all copies or substantial portions of the Software.
69  *
70  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
71  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
72  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
73  * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
74  * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
75  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
76  */
77 /**************************************************************************
78  *
79  * Copyright (c) Intel Corp. 2007.
80  * All Rights Reserved.
81  *
82  * Intel funded Tungsten Graphics (http://www.tungstengraphics.com) to
83  * develop this driver.
84  *
85  * Permission is hereby granted, free of charge, to any person obtaining a
86  * copy of this software and associated documentation files (the
87  * "Software"), to deal in the Software without restriction, including
88  * without limitation the rights to use, copy, modify, merge, publish,
89  * distribute, sub license, and/or sell copies of the Software, and to
90  * permit persons to whom the Software is furnished to do so, subject to
91  * the following conditions:
92  *
93  * The above copyright notice and this permission notice (including the
94  * next paragraph) shall be included in all copies or substantial portions
95  * of the Software.
96  *
97  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
98  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
99  * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
100  * THE COPYRIGHT HOLDERS, AUTHORS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM,
101  * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
102  * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
103  * USE OR OTHER DEALINGS IN THE SOFTWARE.
104  *
105  **************************************************************************/
106 /*
107  * Copyright (c) 2006-2007 Intel Corporation
108  *
109  * Permission is hereby granted, free of charge, to any person obtaining a
110  * copy of this software and associated documentation files (the "Software"),
111  * to deal in the Software without restriction, including without limitation
112  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
113  * and/or sell copies of the Software, and to permit persons to whom the
114  * Software is furnished to do so, subject to the following conditions:
115  *
116  * The above copyright notice and this permission notice (including the next
117  * paragraph) shall be included in all copies or substantial portions of the
118  * Software.
119  *
120  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
121  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
122  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
123  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
124  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
125  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
126  * SOFTWARE.
127  *
128  * Authors:
129  *     Eric Anholt <eric@anholt.net>
130  *     Thomas Hellstrom <thomas-at-tungstengraphics-dot-com>
131  *
132  */
133 /**************************************************************************
134 Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
135 Copyright © 2002 David Dawes
136 All Rights Reserved.
137 Permission is hereby granted, free of charge, to any person obtaining a
138 copy of this software and associated documentation files (the
139 "Software"), to deal in the Software without restriction, including
140 without limitation the rights to use, copy, modify, merge, publish,
141 distribute, sub license, and/or sell copies of the Software, and to
142 permit persons to whom the Software is furnished to do so, subject to
143 the following conditions:
144 The above copyright notice and this permission notice (including the
145 next paragraph) shall be included in all copies or substantial portions
146 of the Software.
147 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
148 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
149 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
150 IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
151 ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
152 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
153 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
154 **************************************************************************/
155 /*
156  * Authors:
157  * Keith Whitwell <keith@tungstengraphics.com>
158  * David Dawes <dawes@xfree86.org>
159  *
160  * Updated for Dual Head capabilities:
161  * Alan Hourihane <alanh@tungstengraphics.com>
162  *
163  * Add ARGB HW cursor support:
164  * Alan Hourihane <alanh@tungstengraphics.com>
165  *
166  * Poulsbo port
167  * Thomas Hellstrom <thomas-at-tungstengraphics-dot-com>
168  */
169 /*
170  * XFree86 Xv DDX written by Mark Vojkovich (markv@valinux.com)
171  */
172 /*
173  * Copyright (c) 1998-2003 by The XFree86 Project, Inc.
174  *
175  * Permission is hereby granted, free of charge, to any person obtaining a
176  * copy of this software and associated documentation files (the "Software"),
177  * to deal in the Software without restriction, including without limitation
178  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
179  * and/or sell copies of the Software, and to permit persons to whom the
180  * Software is furnished to do so, subject to the following conditions:
181  *
182  * The above copyright notice and this permission notice shall be included in
183  * all copies or substantial portions of the Software.
184  *
185  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
186  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
187  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
188  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
189  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
190  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
191  * OTHER DEALINGS IN THE SOFTWARE.
192  *
193  * Except as contained in this notice, the name of the copyright holder(s)
194  * and author(s) shall not be used in advertising or otherwise to promote
195  * the sale, use or other dealings in this Software without prior written
196  * authorization from the copyright holder(s) and author(s).
197  */
198 /*
199 ** Copyright (c) 2007-2009 The Khronos Group Inc.
200 **
201 ** Permission is hereby granted, free of charge, to any person obtaining a
202 ** copy of this software and/or associated documentation files (the
203 ** "Materials"), to deal in the Materials without restriction, including
204 ** without limitation the rights to use, copy, modify, merge, publish,
205 ** distribute, sublicense, and/or sell copies of the Materials, and to
206 ** permit persons to whom the Materials are furnished to do so, subject to
207 ** the following conditions:
208 **
209 ** The above copyright notice and this permission notice shall be included
210 ** in all copies or substantial portions of the Materials.
211 **
212 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
213 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
214 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
215 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
216 ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
217 ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
218 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
219 */
220 /*
221 ** License Applicability. Except to the extent portions of this file are
222 ** made subject to an alternative license as permitted in the SGI Free
223 ** Software License B, Version 1.0 (the "License"), the contents of this
224 ** file are subject only to the provisions of the License. You may not use
225 ** this file except in compliance with the License. You may obtain a copy
226 ** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
227 ** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
228 **
229 ** http://oss.sgi.com/projects/FreeB
230 **
231 ** Note that, as provided in the License, the Software is distributed on an
232 ** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
233 ** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
234 ** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
235 ** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
236 **
237 ** Original Code. The Original Code is: OpenGL Sample Implementation,
238 ** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
239 ** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
240 ** Copyright in any portions created by third parties is as indicated
241 ** elsewhere herein. All Rights Reserved.
242 **
243 ** Additional Notice Provisions: The application programming interfaces
244 ** established by SGI in conjunction with the Original Code are The
245 ** OpenGL(R) Graphics System: A Specification (Version 1.2.1), released
246 ** April 1, 1999; The OpenGL(R) Graphics System Utility Library (Version
247 ** 1.3), released November 4, 1998; and OpenGL(R) Graphics with the X
248 ** Window System(R) (Version 1.3), released October 19, 1998. This software
249 ** was created using the OpenGL(R) version 1.2.1 Sample Implementation
250 ** published by SGI, but has not been independently verified as being
251 ** compliant with the OpenGL(R) version 1.2.1 Specification.
252 */
253 /*
254  * This document is licensed under the SGI Free Software B License Version
255  * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ .
256  */
257 /*
258 ** License Applicability. Except to the extent portions of this file are
259 ** made subject to an alternative license as permitted in the SGI Free
260 ** Software License B, Version 1.0 (the "License"), the contents of this
261 ** file are subject only to the provisions of the License. You may not use
262 ** this file except in compliance with the License. You may obtain a copy
263     ** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
264     ** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
265     **
266     ** http://oss.sgi.com/projects/FreeB
267     **
268     ** Note that, as provided in the License, the Software is distributed on an
269     ** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
270     ** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
271     ** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
272     ** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
273     **
274     ** Original Code. The Original Code is: OpenGL Sample Implementation,
275     ** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
276     ** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
277     ** Copyright in any portions created by third parties is as indicated
278     ** elsewhere herein. All Rights Reserved.
279     **
280     ** Additional Notice Provisions: The application programming interfaces
281     ** established by SGI in conjunction with the Original Code are The
282     ** OpenGL(R) Graphics System: A Specification (Version 1.2.1), released
283     ** April 1, 1999; The OpenGL(R) Graphics System Utility Library (Version
284     ** 1.3), released November 4, 1998; and OpenGL(R) Graphics with the X
285     ** Window System(R) (Version 1.3), released October 19, 1998. This software
286     ** was created using the OpenGL(R) version 1.2.1 Sample Implementation
287     ** published by SGI, but has not been independently verified as being
288     ** compliant with the OpenGL(R) version 1.2.1 Specification.
289     */
290 /*
291  * This file contains code derived from files originally published under the
292  * "SGI Free Software License B, Version 1.1", see below:
293  */
294 /*
295 ** License Applicability. Except to the extent portions of this file are
296 ** made subject to an alternative license as permitted in the SGI Free
297 ** Software License B, Version 1.1 (the "License"), the contents of this
298 ** file are subject only to the provisions of the License. You may not use
299 ** this file except in compliance with the License. You may obtain a copy
300 ** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
301 ** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
302 **
303 ** http://oss.sgi.com/projects/FreeB
304 **
305 ** Note that, as provided in the License, the Software is distributed on an
306 ** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
307 ** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
308 ** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
309 ** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
310 **
311 ** Original Code. The Original Code is: OpenGL Sample Implementation,
312 ** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
313 ** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
314 ** Copyright in any portions created by third parties is as indicated
315 ** elsewhere herein. All Rights Reserved.
316 **/
317 /*!****************************************************************************
318  @File            convexitytest.c
319  @Title           Convex Polygon Classification
320  @Author            PowerVR
321  @Date             23 April 2007
322  @Copyright         Copyright 2007 by Imagination Technologies Limited.
323  @Platform         ANSI
324  @Description Functions for determining whether a polygon is convex or not.
325  @DoxygenVer          1.0 1st Release
326 ******************************************************************************/
327 /* convexitytest.c */
328 /*
329  * C code from the article
330  * "Testing the Convexity of a Polygon"
331  * by Peter Schorn and Frederick Fisher,
332  * (schorn@inf.ethz.ch, fred@kpc.com)
333  * in "Graphics Gems IV", Academic Press, 1994
334  */
335 /*!****************************************************************************
336  @File            drvvg.h
337  @Title           OpenVG Driver Header
338  @Author            PowerVR
339  @Date             22 June 2007
340  @Copyright         Copyright 2007- by Imagination Technologies Limited.
341  @Platform         ANSI
342  @Description Driver version of OpenVG Macro and API definitions
343  @DoxygenVer          1.0 1st Release
344 ******************************************************************************/
345 /**********************************************************************
346  *                                                                             *
347  * Sample implementation of openvg.h, version 1.0.1                             *
348  *                                                                              *
349  * Copyright (c) 2005-2007 The Khronos Group                                 *
350  *                                                                         *
351  **********************************************************************/
352 /*
353 ** Copyright (c) 2007-2009 The Khronos Group Inc.
354 **
355 ** Permission is hereby granted, free of charge, to any person obtaining a
356 ** copy of this software and/or associated documentation files (the
357 ** "Materials"), to deal in the Materials without restriction, including
358 ** without limitation the rights to use, copy, modify, merge, publish,
359 ** distribute, sublicense, and/or sell copies of the Materials, and to
360 ** permit persons to whom the Materials are furnished to do so, subject to
361 ** the following conditions:
362 **
363 ** The above copyright notice and this permission notice shall be included
364 ** in all copies or substantial portions of the Materials.
365 **
366 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
367 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
368 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
369 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
370 ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
371 ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
372 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
373 */
374 /*
375 ** Copyright (c) 2007-2009 The Khronos Group Inc.
376 **
377 ** Permission is hereby granted, free of charge, to any person obtaining a
378 ** copy of this software and/or associated documentation files (the
379 ** "Materials"), to deal in the Materials without restriction, including
380 ** without limitation the rights to use, copy, modify, merge, publish,
381 ** distribute, sublicense, and/or sell copies of the Materials, and to
382 ** permit persons to whom the Materials are furnished to do so, subject to
383 ** the following conditions:
384 **
385 ** The above copyright notice and this permission notice shall be included
386 ** in all copies or substantial portions of the Materials.
387 **
388 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
389 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
390 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
391 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
392 ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
393 ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
394 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
395 */
396 /* Platform-specific types and definitions for egl.h
397  * $Revision: 1.9 $ on $Date: 2009/03/18 12:53:58 $
398  *
399  * Adopters may modify khrplatform.h and this file to suit their platform.
400  * You are encouraged to submit all modifications to the Khronos group so that
401  * they can be included in future versions of this file. Please submit changes
402  * by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla)
403  * by filing a bug against product "EGL" component "Registry".
404  */
405 /*
406  * This document is licensed under the SGI Free Software B License Version
407  * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ .
408  */
409 /* Platform-specific types and definitions for OpenGL ES 1.X gl.h
410  * Last modified on 2008/12/19
411  *
412  * Adopters may modify khrplatform.h and this file to suit their platform.
413  * You are encouraged to submit all modifications to the Khronos group so that
414  * they can be included in future versions of this file. Please submit changes
415  * by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla)
416  * by filing a bug against product "OpenGL-ES" component "Registry".
417  */
418 / * File:         fpcomp.c
419    *
420    * Purpose:        Sample parser for ARB_fragment_program
421    *
422    *
423    * Author:         Benj Lipchak, ATI Research
424    *
425    *                Based on ARB_vertex_program sample
426    *                implementation from NVIDIA
427    *
428    * Copyright:       Copyright (c) 2002 ATI Technologies Inc
429    *
430    * Use of this sample code is subject to the terms and conditions of the
431    * ATI Technologies Inc. Software Development Kit License Agreement.
432    * If you have not accepted and agreed to this License, you have no
433    * rights to use the software contained herein.
434    */
435  /*
436  ** Copyright (C) 2002, NVIDIA Corporation.
437  **
438  ** NVIDIA Corporation("NVIDIA") supplies this software to you in consideration
439  ** of your agreement to the following terms, and your use, installation,
440  ** modification or redistribution of this NVIDIA software constitutes
441  ** acceptance of these terms. If you do not agree with these terms, please do
442  ** not use, install, modify or redistribute this NVIDIA software.
443  **
444  ** In consideration of your agreement to abide by the following terms, and
445  ** subject to these terms, NVIDIA grants you a personal, non-exclusive
446  ** license, under NVIDIA's copyrights in this original NVIDIA software (the
447  ** "NVIDIA Software"), to use, reproduce, modify and redistribute the NVIDIA
448  ** Software, with or without modifications, in source and/or binary forms;
449  ** provided that if you redistribute the NVIDIA Software, you must retain the
450  ** copyright notice of NVIDIA, this notice and the following text and
451  ** disclaimers in all such redistributions of the NVIDIA Software. Neither the
452  ** name, trademarks, service marks nor logos of NVIDIA Corporation may be used
453  ** to endorse or promote products derived from the NVIDIA Software without
454  ** specific prior written permission from NVIDIA. Except as expressly stated
455  ** in this notice, no other rights or licenses express or implied, are granted
456  ** by NVIDIA herein, including but not limited to any patent rights that may
457  ** be infringed by your derivative works or by other works in which the NVIDIA
458  ** Software may be incorporated. No hardware is licensed hereunder.
459  **
460  ** The NVIDIA Software is provided by NVIDIA on an "AS IS" BASIS, WITHOUT
461  ** WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING
462  ** WITHOUT LIMITATION WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,
463  ** MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, REGARDING THE NVIDIA
464  ** SOFTWARE OR ITS USE AND OPERATION ALONE OR IN COMBINATION WITH YOUR
465  ** PRODUCTS.
466   **
467   ** IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL,
468   ** SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
469   ** LOST PROFITS; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
470   ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ARISING IN ANY WAY OUT OF THE
471   ** USE, REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE NVIDIA SOFTWARE,
472   ** HOWEVER CAUSED, AND WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING
473   ** NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF NVIDIA HAS BEEN ADVISED
474   ** OF THE POSSIBILITY OF SUCH DAMAGE.*/
475  /* A Bison parser, made by GNU Bison 2.3. */
476  /* Skeleton interface for Bison's Yacc-like parsers in C
477     Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
478     Free Software Foundation, Inc.
479     This program is free software; you can redistribute it and/or modify
480     it under the terms of the GNU General Public License as published by
481     the Free Software Foundation; either version 2, or (at your option)
482     any later version.
483     This program is distributed in the hope that it will be useful,
484     but WITHOUT ANY WARRANTY; without even the implied warranty of
485     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
486     GNU General Public License for more details.
487     You should have received a copy of the GNU General Public License
488     along with this program; if not, write to the Free Software
489     Foundation, Inc., 51 Franklin Street, Fifth Floor,
490     Boston, MA 02110-1301, USA. */
491  /* As a special exception, you may create a larger work that contains
492     part or all of the Bison parser skeleton and distribute that work
493     under terms of your choice, so long as that work isn't itself a
494     parser generator using the skeleton or a modified version thereof
495     as a parser skeleton. Alternatively, if you modify or redistribute
496     the parser skeleton itself, you may (at your option) remove this
497     special exception, which will cause the skeleton and the resulting
498     Bison output files to be licensed under the GNU General Public
499     License without this special exception.
500     This special exception was added by the Free Software Foundation in
501     version 2.2 of Bison. */
502 /**************************************************************************
503  *
504  * Copyright 2006 Tungsten Graphics, Inc., Bismarck, ND. USA.
505  * All Rights Reserved.
506  *
507  * Permission is hereby granted, free of charge, to any person obtaining a
508  * copy of this software and associated documentation files (the
509  * "Software"), to deal in the Software without restriction, including
510  * without limitation the rights to use, copy, modify, merge, publish,
511  * distribute, sub license, and/or sell copies of the Software, and to
512  * permit persons to whom the Software is furnished to do so, subject to
513  * the following conditions:
514  *
515  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
516  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
517  * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
518  * THE COPYRIGHT HOLDERS, AUTHORS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM,
519  * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
520  * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
521  * USE OR OTHER DEALINGS IN THE SOFTWARE.
522  *
523  * The above copyright notice and this permission notice (including the
524  * next paragraph) shall be included in all copies or substantial portions
525  * of the Software.
526  *
527  *
528  **************************************************************************/
529 /*
530  * Copyright © 2007 Red Hat, Inc.
531  *
532  * Permission is hereby granted, free of charge, to any person obtaining a
533  * copy of this software and associated documentation files (the "Software"),
534  * to deal in the Software without restriction, including without limitation
535  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
536  * and/or sell copies of the Software, and to permit persons to whom the
537  * Software is furnished to do so, subject to the following conditions:
538  *
539  * The above copyright notice and this permission notice (including the next
540  * paragraph) shall be included in all copies or substantial portions of the
541  * Software.
542  *
543  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
544  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
545  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
546  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
547  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
548  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
549  * SOFTWARE.
550  *
551  * Authors:
552  *     Dave Airlie <airlied@redhat.com>
553