Don't check precision qualifiers on cross-stage checks
[platform/upstream/glslang.git] / LICENSE.txt
1 Here, glslang proper means core GLSL parsing, HLSL parsing, and SPIR-V code
2 generation. Glslang proper requires use of a number of licenses, one that covers
3 preprocessing and others that covers non-preprocessing.
4
5 Bison was removed long ago. You can build glslang from the source grammar,
6 using tools of your choice, without using bison or any bison files.
7
8 Other parts, outside of glslang proper, include:
9
10 - gl_types.h, only needed for OpenGL-like reflection, and can be left out of
11   a parse and codegen project.  See it for its license.
12
13 - update_glslang_sources.py, which is not part of the project proper and does
14   not need to be used.
15
16 - the SPIR-V "remapper", which is optional, but has the same license as
17   glslang proper
18
19 - Google tests and SPIR-V tools, and anything in the external subdirectory
20   are external and optional; see them for their respective licenses.
21
22 --------------------------------------------------------------------------------
23
24 The core of glslang-proper, minus the preprocessor is licenced as follows:
25
26 --------------------------------------------------------------------------------
27 3-Clause BSD License
28 --------------------------------------------------------------------------------
29
30 //
31 // Copyright (C) 2015-2018 Google, Inc.
32 // Copyright (C) <various other dates and companies>
33 //
34 // All rights reserved.
35 //
36 // Redistribution and use in source and binary forms, with or without
37 // modification, are permitted provided that the following conditions
38 // are met:
39 //
40 //    Redistributions of source code must retain the above copyright
41 //    notice, this list of conditions and the following disclaimer.
42 //
43 //    Redistributions in binary form must reproduce the above
44 //    copyright notice, this list of conditions and the following
45 //    disclaimer in the documentation and/or other materials provided
46 //    with the distribution.
47 //
48 //    Neither the name of 3Dlabs Inc. Ltd. nor the names of its
49 //    contributors may be used to endorse or promote products derived
50 //    from this software without specific prior written permission.
51 //
52 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
53 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
54 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
55 // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
56 // COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
57 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
58 // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
59 // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
60 // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
61 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
62 // ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
63 // POSSIBILITY OF SUCH DAMAGE.
64 //
65
66
67 --------------------------------------------------------------------------------
68 2-Clause BSD License
69 --------------------------------------------------------------------------------
70
71 Copyright 2020 The Khronos Group Inc
72
73 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
74
75 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
76
77 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
78
79 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
80
81
82 --------------------------------------------------------------------------------
83 The MIT License
84 --------------------------------------------------------------------------------
85
86 Copyright 2020 The Khronos Group Inc
87
88 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:
89
90 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
91
92 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.
93
94
95 --------------------------------------------------------------------------------
96 APACHE LICENSE, VERSION 2.0
97 --------------------------------------------------------------------------------
98
99                                  Apache License
100                            Version 2.0, January 2004
101                         http://www.apache.org/licenses/
102
103    TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
104
105    1. Definitions.
106
107       "License" shall mean the terms and conditions for use, reproduction,
108       and distribution as defined by Sections 1 through 9 of this document.
109
110       "Licensor" shall mean the copyright owner or entity authorized by
111       the copyright owner that is granting the License.
112
113       "Legal Entity" shall mean the union of the acting entity and all
114       other entities that control, are controlled by, or are under common
115       control with that entity. For the purposes of this definition,
116       "control" means (i) the power, direct or indirect, to cause the
117       direction or management of such entity, whether by contract or
118       otherwise, or (ii) ownership of fifty percent (50%) or more of the
119       outstanding shares, or (iii) beneficial ownership of such entity.
120
121       "You" (or "Your") shall mean an individual or Legal Entity
122       exercising permissions granted by this License.
123
124       "Source" form shall mean the preferred form for making modifications,
125       including but not limited to software source code, documentation
126       source, and configuration files.
127
128       "Object" form shall mean any form resulting from mechanical
129       transformation or translation of a Source form, including but
130       not limited to compiled object code, generated documentation,
131       and conversions to other media types.
132
133       "Work" shall mean the work of authorship, whether in Source or
134       Object form, made available under the License, as indicated by a
135       copyright notice that is included in or attached to the work
136       (an example is provided in the Appendix below).
137
138       "Derivative Works" shall mean any work, whether in Source or Object
139       form, that is based on (or derived from) the Work and for which the
140       editorial revisions, annotations, elaborations, or other modifications
141       represent, as a whole, an original work of authorship. For the purposes
142       of this License, Derivative Works shall not include works that remain
143       separable from, or merely link (or bind by name) to the interfaces of,
144       the Work and Derivative Works thereof.
145
146       "Contribution" shall mean any work of authorship, including
147       the original version of the Work and any modifications or additions
148       to that Work or Derivative Works thereof, that is intentionally
149       submitted to Licensor for inclusion in the Work by the copyright owner
150       or by an individual or Legal Entity authorized to submit on behalf of
151       the copyright owner. For the purposes of this definition, "submitted"
152       means any form of electronic, verbal, or written communication sent
153       to the Licensor or its representatives, including but not limited to
154       communication on electronic mailing lists, source code control systems,
155       and issue tracking systems that are managed by, or on behalf of, the
156       Licensor for the purpose of discussing and improving the Work, but
157       excluding communication that is conspicuously marked or otherwise
158       designated in writing by the copyright owner as "Not a Contribution."
159
160       "Contributor" shall mean Licensor and any individual or Legal Entity
161       on behalf of whom a Contribution has been received by Licensor and
162       subsequently incorporated within the Work.
163
164    2. Grant of Copyright License. Subject to the terms and conditions of
165       this License, each Contributor hereby grants to You a perpetual,
166       worldwide, non-exclusive, no-charge, royalty-free, irrevocable
167       copyright license to reproduce, prepare Derivative Works of,
168       publicly display, publicly perform, sublicense, and distribute the
169       Work and such Derivative Works in Source or Object form.
170
171    3. Grant of Patent License. Subject to the terms and conditions of
172       this License, each Contributor hereby grants to You a perpetual,
173       worldwide, non-exclusive, no-charge, royalty-free, irrevocable
174       (except as stated in this section) patent license to make, have made,
175       use, offer to sell, sell, import, and otherwise transfer the Work,
176       where such license applies only to those patent claims licensable
177       by such Contributor that are necessarily infringed by their
178       Contribution(s) alone or by combination of their Contribution(s)
179       with the Work to which such Contribution(s) was submitted. If You
180       institute patent litigation against any entity (including a
181       cross-claim or counterclaim in a lawsuit) alleging that the Work
182       or a Contribution incorporated within the Work constitutes direct
183       or contributory patent infringement, then any patent licenses
184       granted to You under this License for that Work shall terminate
185       as of the date such litigation is filed.
186
187    4. Redistribution. You may reproduce and distribute copies of the
188       Work or Derivative Works thereof in any medium, with or without
189       modifications, and in Source or Object form, provided that You
190       meet the following conditions:
191
192       (a) You must give any other recipients of the Work or
193           Derivative Works a copy of this License; and
194
195       (b) You must cause any modified files to carry prominent notices
196           stating that You changed the files; and
197
198       (c) You must retain, in the Source form of any Derivative Works
199           that You distribute, all copyright, patent, trademark, and
200           attribution notices from the Source form of the Work,
201           excluding those notices that do not pertain to any part of
202           the Derivative Works; and
203
204       (d) If the Work includes a "NOTICE" text file as part of its
205           distribution, then any Derivative Works that You distribute must
206           include a readable copy of the attribution notices contained
207           within such NOTICE file, excluding those notices that do not
208           pertain to any part of the Derivative Works, in at least one
209           of the following places: within a NOTICE text file distributed
210           as part of the Derivative Works; within the Source form or
211           documentation, if provided along with the Derivative Works; or,
212           within a display generated by the Derivative Works, if and
213           wherever such third-party notices normally appear. The contents
214           of the NOTICE file are for informational purposes only and
215           do not modify the License. You may add Your own attribution
216           notices within Derivative Works that You distribute, alongside
217           or as an addendum to the NOTICE text from the Work, provided
218           that such additional attribution notices cannot be construed
219           as modifying the License.
220
221       You may add Your own copyright statement to Your modifications and
222       may provide additional or different license terms and conditions
223       for use, reproduction, or distribution of Your modifications, or
224       for any such Derivative Works as a whole, provided Your use,
225       reproduction, and distribution of the Work otherwise complies with
226       the conditions stated in this License.
227
228    5. Submission of Contributions. Unless You explicitly state otherwise,
229       any Contribution intentionally submitted for inclusion in the Work
230       by You to the Licensor shall be under the terms and conditions of
231       this License, without any additional terms or conditions.
232       Notwithstanding the above, nothing herein shall supersede or modify
233       the terms of any separate license agreement you may have executed
234       with Licensor regarding such Contributions.
235
236    6. Trademarks. This License does not grant permission to use the trade
237       names, trademarks, service marks, or product names of the Licensor,
238       except as required for reasonable and customary use in describing the
239       origin of the Work and reproducing the content of the NOTICE file.
240
241    7. Disclaimer of Warranty. Unless required by applicable law or
242       agreed to in writing, Licensor provides the Work (and each
243       Contributor provides its Contributions) on an "AS IS" BASIS,
244       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
245       implied, including, without limitation, any warranties or conditions
246       of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
247       PARTICULAR PURPOSE. You are solely responsible for determining the
248       appropriateness of using or redistributing the Work and assume any
249       risks associated with Your exercise of permissions under this License.
250
251    8. Limitation of Liability. In no event and under no legal theory,
252       whether in tort (including negligence), contract, or otherwise,
253       unless required by applicable law (such as deliberate and grossly
254       negligent acts) or agreed to in writing, shall any Contributor be
255       liable to You for damages, including any direct, indirect, special,
256       incidental, or consequential damages of any character arising as a
257       result of this License or out of the use or inability to use the
258       Work (including but not limited to damages for loss of goodwill,
259       work stoppage, computer failure or malfunction, or any and all
260       other commercial damages or losses), even if such Contributor
261       has been advised of the possibility of such damages.
262
263    9. Accepting Warranty or Additional Liability. While redistributing
264       the Work or Derivative Works thereof, You may choose to offer,
265       and charge a fee for, acceptance of support, warranty, indemnity,
266       or other liability obligations and/or rights consistent with this
267       License. However, in accepting such obligations, You may act only
268       on Your own behalf and on Your sole responsibility, not on behalf
269       of any other Contributor, and only if You agree to indemnify,
270       defend, and hold each Contributor harmless for any liability
271       incurred by, or claims asserted against, such Contributor by reason
272       of your accepting any such warranty or additional liability.
273
274    END OF TERMS AND CONDITIONS
275
276    APPENDIX: How to apply the Apache License to your work.
277
278       To apply the Apache License to your work, attach the following
279       boilerplate notice, with the fields enclosed by brackets "[]"
280       replaced with your own identifying information. (Don't include
281       the brackets!)  The text should be enclosed in the appropriate
282       comment syntax for the file format. We also recommend that a
283       file or class name and description of purpose be included on the
284       same "printed page" as the copyright notice for easier
285       identification within third-party archives.
286
287    Copyright [yyyy] [name of copyright owner]
288
289    Licensed under the Apache License, Version 2.0 (the "License");
290    you may not use this file except in compliance with the License.
291    You may obtain a copy of the License at
292
293        http://www.apache.org/licenses/LICENSE-2.0
294
295    Unless required by applicable law or agreed to in writing, software
296    distributed under the License is distributed on an "AS IS" BASIS,
297    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
298    See the License for the specific language governing permissions and
299    limitations under the License.
300
301
302 --------------------------------------------------------------------------------
303 GPL 3 with special bison exception
304 --------------------------------------------------------------------------------
305
306    Bison implementation for Yacc-like parsers in C
307
308    Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc.
309
310    This program is free software: you can redistribute it and/or modify
311    it under the terms of the GNU General Public License as published by
312    the Free Software Foundation, either version 3 of the License, or
313    (at your option) any later version.
314
315    This program is distributed in the hope that it will be useful,
316    but WITHOUT ANY WARRANTY; without even the implied warranty of
317    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
318    GNU General Public License for more details.
319
320    You should have received a copy of the GNU General Public License
321    along with this program.  If not, see <http://www.gnu.org/licenses/>.
322
323    As a special exception, you may create a larger work that contains
324    part or all of the Bison parser skeleton and distribute that work
325    under terms of your choice, so long as that work isn't itself a
326    parser generator using the skeleton or a modified version thereof
327    as a parser skeleton.  Alternatively, if you modify or redistribute
328    the parser skeleton itself, you may (at your option) remove this
329    special exception, which will cause the skeleton and the resulting
330    Bison output files to be licensed under the GNU General Public
331    License without this special exception.
332
333    This special exception was added by the Free Software Foundation in
334    version 2.2 of Bison.
335
336 --------------------------------------------------------------------------------
337 ================================================================================
338 --------------------------------------------------------------------------------
339
340 The preprocessor has the core licenses stated above, plus an additional licence:
341
342 /****************************************************************************\
343 Copyright (c) 2002, NVIDIA Corporation.
344
345 NVIDIA Corporation("NVIDIA") supplies this software to you in
346 consideration of your agreement to the following terms, and your use,
347 installation, modification or redistribution of this NVIDIA software
348 constitutes acceptance of these terms.  If you do not agree with these
349 terms, please do not use, install, modify or redistribute this NVIDIA
350 software.
351
352 In consideration of your agreement to abide by the following terms, and
353 subject to these terms, NVIDIA grants you a personal, non-exclusive
354 license, under NVIDIA's copyrights in this original NVIDIA software (the
355 "NVIDIA Software"), to use, reproduce, modify and redistribute the
356 NVIDIA Software, with or without modifications, in source and/or binary
357 forms; provided that if you redistribute the NVIDIA Software, you must
358 retain the copyright notice of NVIDIA, this notice and the following
359 text and disclaimers in all such redistributions of the NVIDIA Software.
360 Neither the name, trademarks, service marks nor logos of NVIDIA
361 Corporation may be used to endorse or promote products derived from the
362 NVIDIA Software without specific prior written permission from NVIDIA.
363 Except as expressly stated in this notice, no other rights or licenses
364 express or implied, are granted by NVIDIA herein, including but not
365 limited to any patent rights that may be infringed by your derivative
366 works or by other works in which the NVIDIA Software may be
367 incorporated. No hardware is licensed hereunder.
368
369 THE NVIDIA SOFTWARE IS BEING PROVIDED ON AN "AS IS" BASIS, WITHOUT
370 WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED,
371 INCLUDING WITHOUT LIMITATION, WARRANTIES OR CONDITIONS OF TITLE,
372 NON-INFRINGEMENT, MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
373 ITS USE AND OPERATION EITHER ALONE OR IN COMBINATION WITH OTHER
374 PRODUCTS.
375
376 IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY SPECIAL, INDIRECT,
377 INCIDENTAL, EXEMPLARY, CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
378 TO, LOST PROFITS; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
379 USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) OR ARISING IN ANY WAY
380 OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE
381 NVIDIA SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT,
382 TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF
383 NVIDIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
384 \****************************************************************************/