John Kessenich [Fri, 26 Jun 2015 22:42:50 +0000 (16:42 -0600)]
Second round line ending clean up, from fresh round trip.
John Kessenich [Fri, 26 Jun 2015 22:29:10 +0000 (16:29 -0600)]
Add .gitattributes and normalize a few stray file's line endings
John Kessenich [Fri, 26 Jun 2015 18:24:28 +0000 (12:24 -0600)]
Make the "switch-label not followed by statement" warning an error, depending on version.
John Kessenich [Fri, 26 Jun 2015 16:48:26 +0000 (10:48 -0600)]
Add +x to two more scripts.
John Kessenich [Fri, 26 Jun 2015 06:40:05 +0000 (00:40 -0600)]
Add +x to two executables.
johnkslang [Fri, 26 Jun 2015 06:12:31 +0000 (00:12 -0600)]
Make smoother use in GitHub
+x bison.exe, remove some extra files in runtests, and ignore more
created files.
John Kessenich [Wed, 24 Jun 2015 16:05:50 +0000 (16:05 +0000)]
glslang build: force the use of -std=c++11 when building with Clang. David Neto <dneto@google.com>.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31583
e7fa87d3-cd2b-0410-9028-
fcbf551c1848
John Kessenich [Tue, 23 Jun 2015 04:14:00 +0000 (04:14 +0000)]
glslang front-end: Implement AEP *_point_size extensions.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31560
e7fa87d3-cd2b-0410-9028-
fcbf551c1848
John Kessenich [Fri, 19 Jun 2015 23:03:32 +0000 (23:03 +0000)]
glslang front-end: Full turn-on of AEP tessellation semantics.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31538
e7fa87d3-cd2b-0410-9028-
fcbf551c1848
John Kessenich [Fri, 19 Jun 2015 06:28:59 +0000 (06:28 +0000)]
glslang: Finish turn on of AEP geometry shaders for ES 3.1.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31532
e7fa87d3-cd2b-0410-9028-
fcbf551c1848
John Kessenich [Fri, 19 Jun 2015 05:14:19 +0000 (05:14 +0000)]
glslang front-end: Don't emit blank lines for empty info logs. From Andrew Woloszyn <awoloszyn@google.com>.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31531
e7fa87d3-cd2b-0410-9028-
fcbf551c1848
John Kessenich [Wed, 17 Jun 2015 16:15:09 +0000 (16:15 +0000)]
glslang testing: Remove dependence on testfiles from LunarGLASS.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31512
e7fa87d3-cd2b-0410-9028-
fcbf551c1848
John Kessenich [Wed, 17 Jun 2015 02:41:51 +0000 (02:41 +0000)]
fix linux ^M issues with previous check-in
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31509
e7fa87d3-cd2b-0410-9028-
fcbf551c1848
John Kessenich [Wed, 17 Jun 2015 02:38:44 +0000 (02:38 +0000)]
glslang preprocessing: Add -E option to print out preprocessed GLSL, and do the work needed to generate a preprocessed stream. From Andrew Woloszyn <awoloszyn@google.com>.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31508
e7fa87d3-cd2b-0410-9028-
fcbf551c1848
John Kessenich [Tue, 16 Jun 2015 23:08:00 +0000 (23:08 +0000)]
glslang front-end: Added a callback mechanism for #line/#pragma/#version/#extension. From Andrew Woloszyn <awoloszyn@google.com>.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31507
e7fa87d3-cd2b-0410-9028-
fcbf551c1848
John Kessenich [Tue, 16 Jun 2015 19:49:22 +0000 (19:49 +0000)]
glslang front-end: track column numbers (they don't go anywhere yet, just get tracked). Andrew Woloszyn <awoloszyn@google.com>.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31506
e7fa87d3-cd2b-0410-9028-
fcbf551c1848
John Kessenich [Tue, 16 Jun 2015 19:01:56 +0000 (19:01 +0000)]
glslang: Add API override of version and profile for testing purposes. From Lei Zhang <antiagainst@google.com>.
Add defaultProfile and forceDefaultVersionAndProfile into shader
compilation interface.
forceDefaultVersionAndProfile allows us to force parsing the input
shaders using defaultVersion and defaultProfile, regardless of
the #version directive in input shaders.
These two parameters enables us to programmatically invoke glslang
but specify version and profile from somewhere else like command
line.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31504
e7fa87d3-cd2b-0410-9028-
fcbf551c1848
John Kessenich [Tue, 16 Jun 2015 18:40:40 +0000 (18:40 +0000)]
glslang tests: Fix error propagation. From David Neto <dneto@google.com>.
The problem is that putting the while loop at the end of a pipeline was hiding any errors being generated by those tests. The patch changes the script to use a case statement inside the while loop instead of "grep" on the outside.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31503
e7fa87d3-cd2b-0410-9028-
fcbf551c1848
John Kessenich [Mon, 15 Jun 2015 15:08:41 +0000 (15:08 +0000)]
glslang AEP: Full semantics for *_shader_io_blocks.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31490
e7fa87d3-cd2b-0410-9028-
fcbf551c1848
John Kessenich [Sun, 14 Jun 2015 21:36:44 +0000 (21:36 +0000)]
glslang AEP: Geometry shader features nominally working. (Full semantic check and turn on pending.) Also picked up partial tessellation shader interface, shader_io_blocks, and mirrored OES set of extensions functionality.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31487
e7fa87d3-cd2b-0410-9028-
fcbf551c1848
John Kessenich [Sat, 13 Jun 2015 00:48:48 +0000 (00:48 +0000)]
glslang -> SPV: swap arguments as needed for OpVectorTimesScalar and OpMatrixTimesScalar, and check for correct types for those as well as OpMatrixTimesVector, OpVectorTimesMatrix, and OpMatrixTimesMatrix.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31486
e7fa87d3-cd2b-0410-9028-
fcbf551c1848
John Kessenich [Fri, 12 Jun 2015 22:34:37 +0000 (22:34 +0000)]
glslang -> SPV: fix degenerate switch topologies (bug 14118).
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31485
e7fa87d3-cd2b-0410-9028-
fcbf551c1848
John Kessenich [Fri, 12 Jun 2015 22:09:25 +0000 (22:09 +0000)]
glslang ES reference: Don't allow std430 on uniform blocks (bug 14095).
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31484
e7fa87d3-cd2b-0410-9028-
fcbf551c1848
John Kessenich [Fri, 12 Jun 2015 05:01:25 +0000 (05:01 +0000)]
glslang AEP: The extension scheme, extension-enabled stage-existence testing, and compute-shader interface. Still needs in/out blocks, unsized arrays, etc. before real testing can be done.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31479
e7fa87d3-cd2b-0410-9028-
fcbf551c1848
John Kessenich [Thu, 11 Jun 2015 16:39:01 +0000 (16:39 +0000)]
glslang front-end: Support relaxed error checking for bug 13724 "...initializer must be a constant expression..." because that change breaks existing shipping applications. (Normal validation for portability testing still gives an error.)
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31475
e7fa87d3-cd2b-0410-9028-
fcbf551c1848
John Kessenich [Wed, 10 Jun 2015 23:23:12 +0000 (23:23 +0000)]
glslang portability: Fixed a slew of OSX compilation warnings (but not all).
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31469
e7fa87d3-cd2b-0410-9028-
fcbf551c1848
John Kessenich [Wed, 10 Jun 2015 22:05:48 +0000 (22:05 +0000)]
glslang portability: Resolve OSX errors, some other OS warnings.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31468
e7fa87d3-cd2b-0410-9028-
fcbf551c1848
John Kessenich [Tue, 9 Jun 2015 02:01:53 +0000 (02:01 +0000)]
SPV compressor: Fixes a possible asserts. Attribution: spvremapper@lunarg.com
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31451
e7fa87d3-cd2b-0410-9028-
fcbf551c1848
John Kessenich [Mon, 8 Jun 2015 18:31:23 +0000 (18:31 +0000)]
glslang: Allow programmatically prepending code to a shader without worrying about #version being first, to implement command-line-defined macros. From Dejan Mircevski <deki@google.com>.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31448
e7fa87d3-cd2b-0410-9028-
fcbf551c1848
John Kessenich [Mon, 8 Jun 2015 17:48:26 +0000 (17:48 +0000)]
glslang ref. front-end: Add missing image format for desktop (but these are still yet to be used.)
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31447
e7fa87d3-cd2b-0410-9028-
fcbf551c1848
John Kessenich [Tue, 26 May 2015 01:36:50 +0000 (01:36 +0000)]
Requesting input on Bug 1346: checking in, turned off, enum-based operators for texturing and image operations. Please reply there with any input, thanks.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31289
e7fa87d3-cd2b-0410-9028-
fcbf551c1848
John Kessenich [Mon, 25 May 2015 22:14:41 +0000 (22:14 +0000)]
glslang tests: Update test result from test-file change.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31288
e7fa87d3-cd2b-0410-9028-
fcbf551c1848
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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