platform/upstream/glslang.git
9 years agoupdate Window's binary
John Kessenich [Fri, 22 May 2015 23:32:53 +0000 (23:32 +0000)]
update Window's binary

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31280 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoupdate linux binary
John Kessenich [Fri, 22 May 2015 23:32:33 +0000 (23:32 +0000)]
update linux binary

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31279 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang -> SPV: Improvements in swizzles on access chains: Bug 14007 (wrong type...
John Kessenich [Fri, 22 May 2015 21:57:58 +0000 (21:57 +0000)]
glslang -> SPV: Improvements in swizzles on access chains: Bug 14007 (wrong type), simplications, tests, support mixed swizzle with dynamic component selection.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31277 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang -> SPV: add decorations for built-ins that are inside blocks.
John Kessenich [Fri, 22 May 2015 01:53:15 +0000 (01:53 +0000)]
glslang -> SPV: add decorations for built-ins that are inside blocks.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31266 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang -> SPV: translate the source profile to the SPV source language.
John Kessenich [Fri, 22 May 2015 01:21:31 +0000 (01:21 +0000)]
glslang -> SPV: translate the source profile to the SPV source language.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31265 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglsl -> SPV: fix OpVectorInsertDynamic result type bug.
John Kessenich [Fri, 22 May 2015 00:58:41 +0000 (00:58 +0000)]
glsl -> SPV: fix OpVectorInsertDynamic result type bug.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31262 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoCorrect some English spellings of SPIR-V.
John Kessenich [Wed, 20 May 2015 16:13:01 +0000 (16:13 +0000)]
Correct some English spellings of SPIR-V.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31237 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoSPV compression: Final check-in enabling this on MSVC 2012. All compression submissi...
John Kessenich [Wed, 20 May 2015 16:04:17 +0000 (16:04 +0000)]
SPV compression: Final check-in enabling this on MSVC 2012.  All compression submissions from Steve (spvremapper@lunarg.com).

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31236 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoSPIR-V compression: Requires rerunning CMake. Adds a standalone tool for running...
John Kessenich [Tue, 19 May 2015 21:07:04 +0000 (21:07 +0000)]
SPIR-V compression: Requires rerunning CMake.  Adds a standalone tool for running the SPV compression.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31232 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang -> SPV: Use the new TBuiltInVariable instead of string compares to get the...
John Kessenich [Mon, 18 May 2015 23:25:32 +0000 (23:25 +0000)]
glslang -> SPV: Use the new TBuiltInVariable instead of string compares to get the type of SPV built in. Also fixed gl_FragData and gl_PrimitiveIDIn.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31226 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang: Formally track all built-in variables, right from the beginning, to enable...
John Kessenich [Mon, 18 May 2015 16:45:49 +0000 (16:45 +0000)]
glslang: Formally track all built-in variables, right from the beginning, to enable avoiding all textual compares at any subsequent stage in the stack.  (To be used in future check ins.)

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31224 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang: Fix a few more warnings, and see it using nullptr causes anyone problems...
John Kessenich [Mon, 18 May 2015 01:59:45 +0000 (01:59 +0000)]
glslang: Fix a few more warnings, and see it using nullptr causes anyone problems (testing c++11 portability).

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31218 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang PP: make decimal number parser clearer and add boundary tests. Also, disable...
John Kessenich [Sat, 16 May 2015 01:15:41 +0000 (01:15 +0000)]
glslang PP: make decimal number parser clearer and add boundary tests.  Also, disable the warning for "do {} while (true);"

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31215 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang tests: Add Success/Failed message to summarize results.
John Kessenich [Fri, 15 May 2015 21:54:24 +0000 (21:54 +0000)]
glslang tests: Add Success/Failed message to summarize results.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31214 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang SPV tests: Add two more source tests for the last check in.
John Kessenich [Fri, 15 May 2015 21:36:01 +0000 (21:36 +0000)]
glslang SPV tests: Add two more source tests for the last check in.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31213 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang SPV tests: Add a set of SPV tests.
John Kessenich [Fri, 15 May 2015 21:32:46 +0000 (21:32 +0000)]
glslang SPV tests: Add a set of SPV tests.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31212 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang tests: Get same form of IEEE INF across platforms. Submitted by Lei Zhang...
John Kessenich [Fri, 15 May 2015 20:26:13 +0000 (20:26 +0000)]
glslang tests: Get same form of IEEE INF across platforms.  Submitted by Lei Zhang (antiagainst@google.com) and David Neto (dneto@google.com).

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31210 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang tests: Track accumulative success/fail result. Contributed by Lei Zhang...
John Kessenich [Fri, 15 May 2015 19:01:17 +0000 (19:01 +0000)]
glslang tests:  Track accumulative success/fail result.  Contributed by Lei Zhang (antiagainst@google.com).

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31207 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang -> SPV testing: Add two missing test results.
John Kessenich [Fri, 15 May 2015 18:50:14 +0000 (18:50 +0000)]
glslang -> SPV testing:  Add two missing test results.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31206 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang -> SPV: improved support for do-while/continue. Contributed by David Neto...
John Kessenich [Fri, 15 May 2015 18:44:16 +0000 (18:44 +0000)]
glslang -> SPV: improved support for do-while/continue.  Contributed by David Neto (dneto@google.com).

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31205 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang: Fix over 100 warnings from MSVC warning level 4.
John Kessenich [Fri, 15 May 2015 17:30:55 +0000 (17:30 +0000)]
glslang: Fix over 100 warnings from MSVC warning level 4.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31202 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoSPV compression: Remove file/path manipulation stuff, setting up for that to be a...
John Kessenich [Fri, 15 May 2015 16:02:07 +0000 (16:02 +0000)]
SPV compression: Remove file/path manipulation stuff, setting up for that to be a separate tool.  Added copyright messages as well.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31201 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoSPIR-V compression: restore a line of code deleted by the previous submission.
John Kessenich [Wed, 13 May 2015 20:53:52 +0000 (20:53 +0000)]
SPIR-V compression: restore a line of code deleted by the previous submission.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31181 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoSPIR-V compression: Add stripping and remapping tools for compressibility of generate...
John Kessenich [Wed, 13 May 2015 20:38:44 +0000 (20:38 +0000)]
SPIR-V compression: Add stripping and remapping tools for compressibility of generated SPIR-V.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31180 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang spvIR.h: Portability improvement.
John Kessenich [Mon, 11 May 2015 18:50:01 +0000 (18:50 +0000)]
glslang spvIR.h: Portability improvement.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31139 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang: Fix rename in previous check in.
John Kessenich [Mon, 11 May 2015 16:20:43 +0000 (16:20 +0000)]
glslang: Fix rename in previous check in.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31138 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang parser: Arrays-of-arrays name-mangling and error messages (lots of A-of-A...
John Kessenich [Mon, 11 May 2015 16:16:49 +0000 (16:16 +0000)]
glslang parser: Arrays-of-arrays name-mangling and error messages (lots of A-of-A stuff to come a bit later).  This patch from Google, David Neto <dneto@google.com>.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31137 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang tear down: Include deleting the keyword map in tear down. From johnk and...
John Kessenich [Fri, 8 May 2015 02:28:33 +0000 (02:28 +0000)]
glslang tear down: Include deleting the keyword map in tear down.  From johnk and sawato shusaku (shusaku.sawato@dmprof.com).

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31115 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang linker: Make some methods static that can be static. Contributor: Lei Zhang...
John Kessenich [Fri, 8 May 2015 01:44:42 +0000 (01:44 +0000)]
glslang linker: Make some methods static that can be static.  Contributor: Lei Zhang (antiagainst@google.com).

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31113 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang tests: Correct linux ^M problem in testlist
John Kessenich [Fri, 8 May 2015 01:21:26 +0000 (01:21 +0000)]
glslang tests: Correct linux ^M problem in testlist

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31112 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang build: Always run a custom command for Bison. The Cmake BISON_TARGET rule...
John Kessenich [Fri, 8 May 2015 01:12:45 +0000 (01:12 +0000)]
glslang build: Always run a custom command for Bison. The Cmake BISON_TARGET rule doesn't understand this use of --defines, and so the targets are always rebuilt even if no source files change.  Contributor: Stefanus Du Toit (stefanus@google.com).

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31111 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang: In ShFinalize: 1) Delete CommonSymbolTable entries. 2) After deleting objec...
John Kessenich [Fri, 8 May 2015 01:03:55 +0000 (01:03 +0000)]
glslang: In ShFinalize: 1) Delete CommonSymbolTable entries.  2) After deleting objects, set the pointers to NULL. This allows us to cleanly restart glslang a second time in the same process, because it forces a new allocation. Contributor: Andrew Woloszyn (awoloszyn@google.com).

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31110 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang parser: Fix crash for ES shader with a uniform block with an unsized array...
John Kessenich [Fri, 8 May 2015 00:54:34 +0000 (00:54 +0000)]
glslang parser: Fix crash for ES shader with a uniform block with an unsized array that is later accessed. David Neto (dneto@google.com).

Instead of crashing, exit early from the implicit-sized-array-size-update routine so we can get to a real error message which is emitted later.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31109 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang->SPV: Fix addStringOperand so it saves the string argument early, before...
John Kessenich [Fri, 8 May 2015 00:45:31 +0000 (00:45 +0000)]
glslang->SPV: Fix addStringOperand so it saves the string argument early, before the str parameter variable is modified. Otherwise you save a garbage string (buffer overrun?) because "str" has run past the terminating NUL.  Contributor: Â Lei Zhang antiagainst@google.com

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31108 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang parser: Fix precedence bug, submitted (as was the previous one) by Andrew...
John Kessenich [Thu, 7 May 2015 16:23:04 +0000 (16:23 +0000)]
glslang parser: Fix precedence bug, submitted (as was the previous one) by Andrew Woloszyn (awoloszyn@google.com).

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31103 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang preprocassor: Fix operator precedence bug.
John Kessenich [Thu, 7 May 2015 01:04:29 +0000 (01:04 +0000)]
glslang preprocassor: Fix operator precedence bug.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31087 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang portability: add a #include <cassert>.
John Kessenich [Wed, 6 May 2015 22:16:30 +0000 (22:16 +0000)]
glslang portability: add a #include <cassert>.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31082 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoupdate linux binary
John Kessenich [Wed, 6 May 2015 16:19:02 +0000 (16:19 +0000)]
update linux binary

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31076 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoupdate Window's binary
John Kessenich [Wed, 6 May 2015 16:18:08 +0000 (16:18 +0000)]
update Window's binary

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31075 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang -> SPV: 1) Include post switch-break unreachable blocks and 2) Generally...
John Kessenich [Sun, 3 May 2015 22:38:16 +0000 (22:38 +0000)]
glslang -> SPV: 1) Include post switch-break unreachable blocks and 2) Generally, don't emit degenerate (basically empty) unreachable blocks.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31023 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang: Bug 13724: ES global initializers must be constant.
John Kessenich [Thu, 30 Apr 2015 03:22:41 +0000 (03:22 +0000)]
glslang: Bug 13724: ES global initializers must be constant.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@30990 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang: Correct global precision qualifiers to make the qualifier global instead...
John Kessenich [Wed, 29 Apr 2015 11:00:28 +0000 (11:00 +0000)]
glslang: Correct global precision qualifiers to make the qualifier global instead of temp (local).

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@30975 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang AST output: include global vs. temp (local) in the printed output. This...
John Kessenich [Wed, 29 Apr 2015 10:16:56 +0000 (10:16 +0000)]
glslang AST output: include global vs. temp (local) in the printed output.  This only effects test results, but a future check-in is going to fix some globals.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@30973 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoSPV: Emit layout(index=) as Index decoration.
John Kessenich [Mon, 27 Apr 2015 10:03:25 +0000 (10:03 +0000)]
SPV: Emit layout(index=) as Index decoration.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@30939 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang: support negation of doubles.
John Kessenich [Fri, 17 Apr 2015 22:03:30 +0000 (22:03 +0000)]
glslang: support negation of doubles.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@30795 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang and SPIR-V: Some basic turn on for doubles (previously untested but existed...
John Kessenich [Fri, 17 Apr 2015 21:47:07 +0000 (21:47 +0000)]
glslang and SPIR-V: Some basic turn on for doubles (previously untested but existed code).  Partly from a submission, partly addressing bug 13772.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@30794 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang: Allow GL_ARB_explicit_attrib_location to add "layout" keyword pre version...
John Kessenich [Thu, 9 Apr 2015 21:04:44 +0000 (21:04 +0000)]
glslang: Allow GL_ARB_explicit_attrib_location to add "layout" keyword pre version 140.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@30647 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang: include 0 as not being a power of 2
John Kessenich [Wed, 8 Apr 2015 15:51:14 +0000 (15:51 +0000)]
glslang: include 0 as not being a power of 2

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@30613 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoupdate Window's binary
John Kessenich [Fri, 3 Apr 2015 00:19:37 +0000 (00:19 +0000)]
update Window's binary

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@30512 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoupdate linux binary
John Kessenich [Fri, 3 Apr 2015 00:19:19 +0000 (00:19 +0000)]
update linux binary

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@30511 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang -> SPIR-V: Correct renaming mistake made in moving to the auto-generated...
John Kessenich [Fri, 3 Apr 2015 00:10:51 +0000 (00:10 +0000)]
glslang -> SPIR-V: Correct renaming mistake made in moving to the auto-generated headers.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@30510 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang GLSL -> SPIR-V: Final delta to bump to revision 30 of the specification.
John Kessenich [Thu, 2 Apr 2015 16:32:51 +0000 (16:32 +0000)]
glslang GLSL -> SPIR-V: Final delta to bump to revision 30 of the specification.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@30488 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang -> SPIR-V: some built-in decoration code was turned off; turn it on.
John Kessenich [Wed, 1 Apr 2015 20:35:23 +0000 (20:35 +0000)]
glslang -> SPIR-V: some built-in decoration code was turned off; turn it on.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@30466 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoGLSL AST -> SPIR-V: Update to explicit enum values for the GLSL extended instruction...
John Kessenich [Tue, 31 Mar 2015 01:46:57 +0000 (01:46 +0000)]
GLSL AST -> SPIR-V: Update to explicit enum values for the GLSL extended instruction set.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@30443 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang AST -> SPIR-V: Move to new auto-generated official headers, and for the disas...
John Kessenich [Mon, 30 Mar 2015 17:41:16 +0000 (17:41 +0000)]
glslang AST -> SPIR-V: Move to new auto-generated official headers, and for the disassembler, mirror the split done between the auto-generation header database and the specification.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@30434 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang -> SPIR-V: Correct code generated for EmitStreamVertex and EndStreamPrimitive.
John Kessenich [Tue, 24 Mar 2015 00:32:50 +0000 (00:32 +0000)]
glslang -> SPIR-V: Correct code generated for EmitStreamVertex and EndStreamPrimitive.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@30270 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoupdate Window's binary
John Kessenich [Wed, 4 Mar 2015 16:35:14 +0000 (16:35 +0000)]
update Window's binary

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@30042 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoupdate linux binary
John Kessenich [Wed, 4 Mar 2015 16:33:39 +0000 (16:33 +0000)]
update linux binary

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@30041 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang: Add SPIR-V human readable form. (Use -H.): Fix Linux build problems.
John Kessenich [Wed, 4 Mar 2015 03:55:31 +0000 (03:55 +0000)]
glslang: Add SPIR-V human readable form.  (Use -H.): Fix Linux build problems.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@30039 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslang: Add SPIR-V human readable form. (Use -H.)
John Kessenich [Wed, 4 Mar 2015 03:48:38 +0000 (03:48 +0000)]
glslang: Add SPIR-V human readable form.  (Use -H.)

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@30038 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoupdate Window's binary
John Kessenich [Tue, 3 Mar 2015 17:50:34 +0000 (17:50 +0000)]
update Window's binary

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@30035 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoupdate linux binary
John Kessenich [Tue, 3 Mar 2015 17:50:04 +0000 (17:50 +0000)]
update linux binary

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@30034 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslangValidator: Add straightforward SPIR-V support (non-optimizing, ~3.x functional...
John Kessenich [Tue, 3 Mar 2015 17:15:07 +0000 (17:15 +0000)]
glslangValidator: Add straightforward SPIR-V support (non-optimizing, ~3.x functionality): fix linux case issue.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@30033 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoglslangValidator: Add straightforward SPIR-V support (non-optimizing, ~3.x functional...
John Kessenich [Tue, 3 Mar 2015 17:09:43 +0000 (17:09 +0000)]
glslangValidator: Add straightforward SPIR-V support (non-optimizing, ~3.x functionality).

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@30032 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoupdate Window's binary
John Kessenich [Wed, 7 Jan 2015 18:48:49 +0000 (18:48 +0000)]
update Window's binary

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@29355 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoupdate linux binary
John Kessenich [Wed, 7 Jan 2015 18:48:34 +0000 (18:48 +0000)]
update linux binary

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@29354 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoImplement ES-3.0-specific error semantics for redefining predefined macros.
John Kessenich [Wed, 7 Jan 2015 18:47:57 +0000 (18:47 +0000)]
Implement ES-3.0-specific error semantics for redefining predefined macros.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@29353 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoInclude ?: in the tests for flow control.
John Kessenich [Wed, 7 Jan 2015 06:36:55 +0000 (06:36 +0000)]
Include ?: in the tests for flow control.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@29348 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoImplement barrier() control-flow rules: in flow control, non-main, and post-return.
John Kessenich [Wed, 7 Jan 2015 06:14:06 +0000 (06:14 +0000)]
Implement barrier() control-flow rules: in flow control, non-main, and post-return.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@29347 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoupdate Window's binary
John Kessenich [Sun, 21 Dec 2014 20:31:28 +0000 (20:31 +0000)]
update Window's binary

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@29283 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoupdate linux binary
John Kessenich [Sun, 21 Dec 2014 20:31:09 +0000 (20:31 +0000)]
update linux binary

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@29282 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoFix default precision check for formal parameters; it was one level too deep. This...
John Kessenich [Sun, 21 Dec 2014 20:30:04 +0000 (20:30 +0000)]
Fix default precision check for formal parameters; it was one level too deep.  This will accept more fragment shaders with no default precision before declaring functions.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@29281 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoStill generate switch statement when WARNING about missing statements is given. ...
John Kessenich [Sun, 21 Dec 2014 16:48:29 +0000 (16:48 +0000)]
Still generate switch statement when WARNING about missing statements is given.  It was correct behave when this used to be an error, but not now that it is a warning.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@29279 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoFix public bug 1277: #line L sets the next line to L+1 or just L, based on the versio...
John Kessenich [Sat, 20 Dec 2014 07:03:18 +0000 (07:03 +0000)]
Fix public bug 1277: #line L sets the next line to L+1 or just L, based on the version of the language.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@29277 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoupdate Window's binary
John Kessenich [Thu, 11 Dec 2014 00:19:46 +0000 (00:19 +0000)]
update Window's binary

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@29197 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoupdate linux binary
John Kessenich [Thu, 11 Dec 2014 00:19:22 +0000 (00:19 +0000)]
update linux binary

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@29196 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoImplement specification change in 'restrict', allowing it to come and go across funct...
John Kessenich [Thu, 11 Dec 2014 00:17:42 +0000 (00:17 +0000)]
Implement specification change in 'restrict', allowing it to come and go across function calls.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@29195 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoCorrect test result for previous check in.
John Kessenich [Mon, 17 Nov 2014 16:46:15 +0000 (16:46 +0000)]
Correct test result for previous check in.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@28969 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoAdd memory qualifiers (coherent volatile restrict) to imageSize(), imageLoad(), image...
John Kessenich [Mon, 17 Nov 2014 16:45:10 +0000 (16:45 +0000)]
Add memory qualifiers (coherent volatile restrict) to imageSize(), imageLoad(), imageStore(), atomic*(), and imageAtomic*(), to remove errors about dropping qualifiers.

Several bugs are related to this, and this is a slightly speculative fix, bit it is certainly wrong to either do it the way it was or to reflect the current specifications.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@28968 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoNon-functional: Change %pure_parser to %pure-parser, to improve portability.
John Kessenich [Wed, 5 Nov 2014 16:36:44 +0000 (16:36 +0000)]
Non-functional:  Change %pure_parser to %pure-parser, to improve portability.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@28857 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoES check for vertex out or fragment in containing any of
John Kessenich [Tue, 28 Oct 2014 05:24:14 +0000 (05:24 +0000)]
ES check for vertex out or fragment in containing any of
• An array of arrays
• An array of structures
• A structure containing an array
• A structure containing a structure

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@28745 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoImplement GL_ARB_viewport_array extension.
John Kessenich [Fri, 17 Oct 2014 20:01:27 +0000 (20:01 +0000)]
Implement GL_ARB_viewport_array extension.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@28653 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoupdate Window's binary
John Kessenich [Wed, 8 Oct 2014 21:58:20 +0000 (21:58 +0000)]
update Window's binary

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@28508 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoupdate linux binary
John Kessenich [Wed, 8 Oct 2014 21:58:04 +0000 (21:58 +0000)]
update linux binary

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@28507 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoMissing test results from last check in.
John Kessenich [Wed, 8 Oct 2014 21:57:17 +0000 (21:57 +0000)]
Missing test results from last check in.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@28506 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoAdd patch in/out block tests.
John Kessenich [Wed, 8 Oct 2014 21:48:34 +0000 (21:48 +0000)]
Add patch in/out block tests.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@28505 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoDo qualifier-based checking independent of declaring a variable. Bug 11903.
John Kessenich [Wed, 8 Oct 2014 21:29:29 +0000 (21:29 +0000)]
Do qualifier-based checking independent of declaring a variable.  Bug 11903.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@28502 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoInclude GL_FRAGMENT_PRECISION_HIGH in ES 300/310.
John Kessenich [Wed, 8 Oct 2014 16:31:44 +0000 (16:31 +0000)]
Include GL_FRAGMENT_PRECISION_HIGH in ES 300/310.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@28494 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoupdate Window's binary
John Kessenich [Mon, 6 Oct 2014 20:05:22 +0000 (20:05 +0000)]
update Window's binary

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@28446 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoupdate linux binary
John Kessenich [Mon, 6 Oct 2014 20:04:41 +0000 (20:04 +0000)]
update linux binary

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@28445 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoIncrease portability. (Submission from Nikita Kindt, as were some recent related...
John Kessenich [Mon, 6 Oct 2014 19:57:34 +0000 (19:57 +0000)]
Increase portability. (Submission from Nikita Kindt, as were some recent related submissions.)

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@28444 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoAdd missing precision qualifier checks to function formal parameter declarations.
John Kessenich [Mon, 6 Oct 2014 19:39:13 +0000 (19:39 +0000)]
Add missing precision qualifier checks to function formal parameter declarations.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@28442 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoRemove lod argument from texture2DRect built-ins. (Submission from matt.helsley)
John Kessenich [Mon, 6 Oct 2014 16:38:53 +0000 (16:38 +0000)]
Remove lod argument from texture2DRect built-ins.  (Submission from matt.helsley)

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@28440 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoAdd missing gl_MaxGeometryTextureImageUnits.
John Kessenich [Mon, 6 Oct 2014 15:44:02 +0000 (15:44 +0000)]
Add missing gl_MaxGeometryTextureImageUnits.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@28439 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoRemove dead call.
John Kessenich [Wed, 1 Oct 2014 01:08:21 +0000 (01:08 +0000)]
Remove dead call.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@28368 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoRemove unneeded skeletal work.
John Kessenich [Sun, 28 Sep 2014 18:43:52 +0000 (18:43 +0000)]
Remove unneeded skeletal work.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@28345 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoNonfunctional: fix a typo.
John Kessenich [Thu, 18 Sep 2014 13:12:00 +0000 (13:12 +0000)]
Nonfunctional: fix a typo.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@28194 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoHave memory counters normally turned off, to avoid cross-windows-platform linking...
John Kessenich [Fri, 12 Sep 2014 17:25:16 +0000 (17:25 +0000)]
Have memory counters normally turned off, to avoid cross-windows-platform linking problems.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@28078 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoAdd option for printing documentation (empty).
John Kessenich [Mon, 8 Sep 2014 21:01:09 +0000 (21:01 +0000)]
Add option for printing documentation (empty).

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@27966 e7fa87d3-cd2b-0410-9028-fcbf551c1848

9 years agoAdd skeleton for generating documentation of a side project.
John Kessenich [Fri, 5 Sep 2014 17:36:54 +0000 (17:36 +0000)]
Add skeleton for generating documentation of a side project.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@27950 e7fa87d3-cd2b-0410-9028-fcbf551c1848