platform/upstream/glslang.git
8 years agoImplement inReadableOrder().
Dejan Mircevski [Mon, 18 Jan 2016 21:18:37 +0000 (16:18 -0500)]
Implement inReadableOrder().

8 years agoCall addPredecessor() on OpSwitch blocks.
Dejan Mircevski [Mon, 18 Jan 2016 21:18:01 +0000 (16:18 -0500)]
Call addPredecessor() on OpSwitch blocks.

8 years agoAdd Block::successors.
Dejan Mircevski [Mon, 18 Jan 2016 04:27:45 +0000 (23:27 -0500)]
Add Block::successors.

8 years agoMerge branch 'master' of github.com:KhronosGroup/glslang
John Kessenich [Mon, 18 Jan 2016 18:11:46 +0000 (11:11 -0700)]
Merge branch 'master' of github.com:KhronosGroup/glslang

8 years agoMemory: remove a part of the last merge request that causes crashes in multi-threaded...
John Kessenich [Mon, 18 Jan 2016 18:10:40 +0000 (11:10 -0700)]
Memory: remove a part of the last merge request that causes crashes in multi-threaded mode.

8 years agoMerge pull request #134 from AWoloszyn/glslangvalidator-memory
John Kessenich [Mon, 18 Jan 2016 18:10:18 +0000 (11:10 -0700)]
Merge pull request #134 from AWoloszyn/glslangvalidator-memory

Freed up some command line memory (not used programmatically).

8 years agoMerge pull request #133 from AWoloszyn/spirv-memory
John Kessenich [Mon, 18 Jan 2016 17:48:07 +0000 (10:48 -0700)]
Merge pull request #133 from AWoloszyn/spirv-memory

Free memory associated with SPIR-V generation and the pragmaTable.

8 years agoFree memory associated with SPIR-V generation.
Andrew Woloszyn [Mon, 18 Jan 2016 14:23:56 +0000 (09:23 -0500)]
Free memory associated with SPIR-V generation.

8 years agoFreed up some memory when no longer needed in glslangValidator.
Andrew Woloszyn [Mon, 18 Jan 2016 14:26:25 +0000 (09:26 -0500)]
Freed up some memory when no longer needed in glslangValidator.

8 years agoDoubles: Add all the missing built-in double-based prototypes.
John Kessenich [Sun, 17 Jan 2016 03:37:43 +0000 (20:37 -0700)]
Doubles: Add all the missing built-in double-based prototypes.

8 years agoMemory/Perf: For link-mode, isolate file I/O so API can be looped over.
John Kessenich [Sat, 16 Jan 2016 22:30:03 +0000 (15:30 -0700)]
Memory/Perf: For link-mode, isolate file I/O so API can be looped over.

Separating file I/O from compile/link lets the compile/link be done
repeatedly in a loop for testing and measuring of performance and
memory footprint, including seeing memory growth over time for
functional-level memory-leak testing.

While the older compile-only mode already had this functionality,
and typically showed no memory leaks, SPIR-V uses the link path,
has pending "TODO" for memory freeing, and this shows several
kilobytes of leaking per compile-link. Most likely, pending
merge request 131 will address much of this.

8 years agoMerge pull request #121 from amdrexu/feature
John Kessenich [Fri, 15 Jan 2016 07:52:18 +0000 (00:52 -0700)]
Merge pull request #121 from amdrexu/feature

Parser & SPV: Implement two extensions regarding GLSL sparse texture.

8 years agoMerge pull request #129 from AWoloszyn/fix-noop-strcpy
John Kessenich [Thu, 14 Jan 2016 02:12:50 +0000 (19:12 -0700)]
Merge pull request #129 from AWoloszyn/fix-noop-strcpy

Preprocessor: Removed strcpy that copied a value to itself.

8 years agoMerge pull request #126 from mgadams/win32_warnings
John Kessenich [Thu, 14 Jan 2016 02:11:05 +0000 (19:11 -0700)]
Merge pull request #126 from mgadams/win32_warnings

Fix several build warnings/error encountered with VS2013

8 years agoTests: Update to match previous pull request.
John Kessenich [Thu, 14 Jan 2016 02:04:19 +0000 (19:04 -0700)]
Tests:  Update to match previous pull request.

8 years agoMerge pull request #130 from jekstrand/fix-std140-struct
John Kessenich [Thu, 14 Jan 2016 01:59:31 +0000 (18:59 -0700)]
Merge pull request #130 from jekstrand/fix-std140-struct

linkValidate: Round up structure sizes to vec4 in std140

8 years agogetBaseAlignment: Use the rowMajor argument for determining matrix strides
Jason Ekstrand [Thu, 14 Jan 2016 01:14:43 +0000 (17:14 -0800)]
getBaseAlignment: Use the rowMajor argument for determining matrix strides

The argument version is passed in from above and struct handling ensures
that row-majorness gets propagated correctly from one level to the next.
If we just look at the type itself and it's embedded in a struct that's
declared row-major, we may get the wrong stride.

8 years agogetBaseAlignment: Round up structure sizes to max alignment
Jason Ekstrand [Tue, 12 Jan 2016 21:04:52 +0000 (13:04 -0800)]
getBaseAlignment: Round up structure sizes to max alignment

8 years agoRemoved strcpy that copied to itself.
Andrew Woloszyn [Tue, 12 Jan 2016 20:45:55 +0000 (15:45 -0500)]
Removed strcpy that copied to itself.

Found by running glslang with -fsanitize=address in clang.
Also fixes a potential buffer-overrun with return from lReadByte.

8 years agoFix several build warnings/error encountered with VS2013
Mark Adams [Wed, 6 Jan 2016 18:41:02 +0000 (13:41 -0500)]
Fix several build warnings/error encountered with VS2013

This also fixes the newlines for spirv.hpp to be consistent with the rest of the files.

8 years agoParser & SPV: Implement two extensions regarding GLSL sparse texture.
Rex Xu [Thu, 31 Dec 2015 08:11:41 +0000 (16:11 +0800)]
Parser & SPV: Implement two extensions regarding GLSL sparse texture.

Implement extension "GL_ARB_sparse_texture2".
Implement extension "GL_ARB_sparse_texture_clamp".

8 years agoSPV: Handle type punning in createCompositeCompare().
John Kessenich [Tue, 5 Jan 2016 06:49:03 +0000 (23:49 -0700)]
SPV: Handle type punning in createCompositeCompare().

8 years agoSPV: Don't do stride decorations for arrays of arrays of blocks.
John Kessenich [Tue, 5 Jan 2016 02:22:56 +0000 (19:22 -0700)]
SPV: Don't do stride decorations for arrays of arrays of blocks.

8 years agoSPV: Handle stride decorations for arrays of arrays, and using multiple type instance...
John Kessenich [Wed, 30 Dec 2015 04:27:24 +0000 (21:27 -0700)]
SPV: Handle stride decorations for arrays of arrays, and using multiple type instances when strides are used.

8 years agoSPV: Fix array strides by explicitly computing them in the getBaseAlignment() algorithm.
John Kessenich [Wed, 30 Dec 2015 00:11:44 +0000 (17:11 -0700)]
SPV: Fix array strides by explicitly computing them in the getBaseAlignment() algorithm.

8 years agoSPV: Generalize multiple struct-type instances for interpolation/invariant qualifiers.
John Kessenich [Thu, 24 Dec 2015 17:30:13 +0000 (10:30 -0700)]
SPV: Generalize multiple struct-type instances for interpolation/invariant qualifiers.

8 years agoSemantics: Catch nested types containing 'int' with non-'flat' interpolation.
John Kessenich [Tue, 22 Dec 2015 23:39:07 +0000 (16:39 -0700)]
Semantics: Catch nested types containing 'int' with non-'flat' interpolation.

8 years agoSPV: Don't make MissingFunctionality() exit anymore.
John Kessenich [Tue, 22 Dec 2015 04:21:11 +0000 (21:21 -0700)]
SPV: Don't make MissingFunctionality() exit anymore.

8 years agoSPV: Implement composite comparisons (reductions across hierchical compare).
John Kessenich [Tue, 22 Dec 2015 03:54:09 +0000 (20:54 -0700)]
SPV: Implement composite comparisons (reductions across hierchical compare).

8 years agoSPV: Move to deterministic results for OpEntryPoint, for test stability across platforms.
John Kessenich [Mon, 21 Dec 2015 18:45:34 +0000 (11:45 -0700)]
SPV: Move to deterministic results for OpEntryPoint, for test stability across platforms.

8 years agoSPV: Make OpEntryPoint I/O list include all static uses.
John Kessenich [Mon, 21 Dec 2015 00:37:07 +0000 (17:37 -0700)]
SPV: Make OpEntryPoint I/O list include all static uses.

Before, it was only including explicit interface, sufficient for IO-Block-declared
oriented interface, but not sufficient for all modes GLSL might be used with
SPIR-V.

Two things are accomplished now:
1) each id will appear exactly once
2) the OpEntryPoint list will union static use with declarations

8 years agoSPV: recursively propagate row/col majorness through nested structures.
John Kessenich [Sun, 20 Dec 2015 18:29:16 +0000 (11:29 -0700)]
SPV: recursively propagate row/col majorness through nested structures.

This includes doing structure uniqueness modulo majorness, for shared nested structures.

8 years agoSPV: Nested layouts: Recursively send around the top-level std140 or std430 packing.
John Kessenich [Sat, 19 Dec 2015 20:57:10 +0000 (13:57 -0700)]
SPV: Nested layouts: Recursively send around the top-level std140 or std430 packing.

This also distinguishes between the same struct included in multiple parent packings.

8 years agoMerge pull request #118 from amdrexu/bugfix
John Kessenich [Sat, 19 Dec 2015 18:20:25 +0000 (11:20 -0700)]
Merge pull request #118 from amdrexu/bugfix

SPV: Fix an issue related with imageStore() for 2DMS.

8 years agoMerge pull request #120 from amdrexu/bugfix2
John Kessenich [Sat, 19 Dec 2015 18:14:32 +0000 (11:14 -0700)]
Merge pull request #120 from amdrexu/bugfix2

Parser: Correct the storage qualifier of gl_HelperInvocation.

8 years agoMerge branch 'master' of github.com:KhronosGroup/glslang
John Kessenich [Sat, 19 Dec 2015 18:10:56 +0000 (11:10 -0700)]
Merge branch 'master' of github.com:KhronosGroup/glslang

8 years agoMerge pull request #117 from amdrexu/feature
John Kessenich [Sat, 19 Dec 2015 18:08:02 +0000 (11:08 -0700)]
Merge pull request #117 from amdrexu/feature

SPV: Implement GLSL built-in bitcast functions.

8 years agoTests for PR: Fix results for 4f68b83ea1b34923a71e699125a9e867003864f6.
John Kessenich [Sat, 19 Dec 2015 18:05:44 +0000 (11:05 -0700)]
Tests for PR: Fix results for 4f68b83ea1b34923a71e699125a9e867003864f6.

8 years agoMerge pull request #119 from thothonegan/master
John Kessenich [Sat, 19 Dec 2015 18:00:49 +0000 (11:00 -0700)]
Merge pull request #119 from thothonegan/master

Display the filename if we have output, even if validating  a single file

8 years agoConstant folding: Correct result type of non-square matrix folding.
John Kessenich [Tue, 15 Dec 2015 01:21:19 +0000 (18:21 -0700)]
Constant folding: Correct result type of non-square matrix folding.

This also made the function easier to read by identifying
left and right operands more clearly.

8 years agoParser: Correct the storage qualifier of gl_HelperInvocation.
Rex Xu [Wed, 16 Dec 2015 06:41:39 +0000 (14:41 +0800)]
Parser: Correct the storage qualifier of gl_HelperInvocation.

8 years agoDisplay the filename if we have output, even if validating a single file.
Kenneth Perry [Tue, 15 Dec 2015 16:52:34 +0000 (10:52 -0600)]
Display the filename if we have output, even if validating  a single file.

8 years agoSPV: Fix an issue related with imageStore() for 2DMS.
Rex Xu [Tue, 15 Dec 2015 09:52:45 +0000 (17:52 +0800)]
SPV: Fix an issue related with imageStore() for 2DMS.

8 years agoSPV: Implement GLSL built-in bitcast functions.
Rex Xu [Tue, 15 Dec 2015 08:03:10 +0000 (16:03 +0800)]
SPV: Implement GLSL built-in bitcast functions.

8 years agoMerge pull request #116 from mgadams/scan_compile_fix
John Kessenich [Tue, 15 Dec 2015 00:47:51 +0000 (17:47 -0700)]
Merge pull request #116 from mgadams/scan_compile_fix

Fix compile warning/error due to assignment in while() loop

8 years agoFix compile warning/error due to assignment in while() loop
Mark Adams [Mon, 14 Dec 2015 15:48:04 +0000 (10:48 -0500)]
Fix compile warning/error due to assignment in while() loop

This causes build failures with -Werror=parentheses

8 years agoSPV GLSL.std.450: Add needed smear operations for min, max, clamp, mix, step, and...
John Kessenich [Sun, 13 Dec 2015 20:34:37 +0000 (13:34 -0700)]
SPV GLSL.std.450: Add needed smear operations for min, max, clamp, mix, step, and smoothstep.

8 years agoSPV texturing: Use comp. 2 as the 3rd comp. for Dref in ImageSampleProjDrefImplicitLod.
John Kessenich [Sun, 13 Dec 2015 19:23:33 +0000 (12:23 -0700)]
SPV texturing: Use comp. 2 as the 3rd comp. for Dref in ImageSampleProjDrefImplicitLod.

8 years agoFix crash: when no #version for compute shader in es mode.
John Kessenich [Sun, 13 Dec 2015 18:20:12 +0000 (11:20 -0700)]
Fix crash: when no #version for compute shader in es mode.

An extra line of error recovery code set a non-sense combination of
es version and core profile.

8 years agoSemantics: 'invocations' defaults to 1, not 0.
John Kessenich [Sun, 13 Dec 2015 17:59:17 +0000 (10:59 -0700)]
Semantics: 'invocations' defaults to 1, not 0.

'invocations' was using 0 as the "shader never set" flag and as the
default. Formalize this and explicit set to 1 and link time.

8 years agoSPV: Implement all matrix operators {+,-,*,/} for {matrix,scalar,vector}.
John Kessenich [Sat, 12 Dec 2015 19:28:14 +0000 (12:28 -0700)]
SPV: Implement all matrix operators {+,-,*,/} for {matrix,scalar,vector}.

8 years agoSemantics: Geometry stage can support max_vertices = 0.
John Kessenich [Fri, 11 Dec 2015 22:44:12 +0000 (15:44 -0700)]
Semantics: Geometry stage can support max_vertices = 0.

To do this, more generally use a named -1 as a not set value.

8 years agoSPV tests: Turn on some more tests related to currently pending issues.
John Kessenich [Fri, 11 Dec 2015 22:08:26 +0000 (15:08 -0700)]
SPV tests: Turn on some more tests related to currently pending issues.

8 years agoTests: Move to just linefeed to simply cross-platform test changes.
John Kessenich [Fri, 11 Dec 2015 01:01:54 +0000 (18:01 -0700)]
Tests: Move to just linefeed to simply cross-platform test changes.

8 years agoLinux: Fix case of test file.
John Kessenich [Thu, 10 Dec 2015 19:01:41 +0000 (12:01 -0700)]
Linux: Fix case of test file.

8 years agoSPV: Modify last merge: Have promoteScalar() generate the correct vectorType.
John Kessenich [Thu, 10 Dec 2015 02:08:42 +0000 (19:08 -0700)]
SPV: Modify last merge: Have promoteScalar() generate the correct vectorType.

8 years agoMerge pull request #115 from amdrexu/bugfix
John Kessenich [Thu, 10 Dec 2015 01:47:48 +0000 (18:47 -0700)]
Merge pull request #115 from amdrexu/bugfix

SPV: Smear should use type of the scalar to make the expected vector type when the provided vector type is incompatible with the scalar.

8 years agoMerge pull request #114 from amdrexu/bugfix2
John Kessenich [Thu, 10 Dec 2015 01:26:38 +0000 (18:26 -0700)]
Merge pull request #114 from amdrexu/bugfix2

Parser: Extension requirement of gl_PrimitiveID and gl_Layer should be checked only for ESSL instead of GLSL.

8 years agoSPV: Scalar smear operation should use type of the scalar to make the
Rex Xu [Mon, 7 Dec 2015 11:07:17 +0000 (19:07 +0800)]
SPV: Scalar smear operation should use type of the scalar to make the
expected vector type when the provided vector type is incompatible with
the scalar.

8 years agoParser: Extension requirement of gl_PrimitiveID and gl_Layer should be checked only...
Rex Xu [Mon, 7 Dec 2015 11:07:17 +0000 (19:07 +0800)]
Parser: Extension requirement of gl_PrimitiveID and gl_Layer should be checked only for ESSL instead of GLSL.

8 years agoSPV: Protect getStorageClass() with a test that the thing is pointer.
John Kessenich [Wed, 9 Dec 2015 03:48:49 +0000 (20:48 -0700)]
SPV: Protect getStorageClass() with a test that the thing is pointer.

8 years agoSPV: Implement OpImage functionality (emit before query).
John Kessenich [Wed, 9 Dec 2015 02:32:47 +0000 (19:32 -0700)]
SPV: Implement OpImage functionality (emit before query).

8 years agoMerge pull request #113 from amdrexu/feature
John Kessenich [Tue, 8 Dec 2015 21:45:01 +0000 (14:45 -0700)]
Merge pull request #113 from amdrexu/feature

SPV: Implement GLSL interpolation built-in functions.

8 years agoPlatforms: Remove support for Windows XP executables.
John Kessenich [Tue, 8 Dec 2015 21:26:26 +0000 (14:26 -0700)]
Platforms: Remove support for Windows XP executables.
Dealing with the 110 toolset seems not worth it.

8 years agoSPV: Implement GLSL interpolation built-in functions.
Rex Xu [Tue, 8 Dec 2015 09:12:09 +0000 (17:12 +0800)]
SPV: Implement GLSL interpolation built-in functions.

8 years agoMerge pull request #111 from dneto0/issue-110-frexp-fix
John Kessenich [Mon, 7 Dec 2015 22:03:16 +0000 (15:03 -0700)]
Merge pull request #111 from dneto0/issue-110-frexp-fix

Avoid read past end of operands vector for EOpFrexp

8 years agoAvoid read past end of operands vector for EOpFrexp
David Neto [Mon, 7 Dec 2015 21:17:06 +0000 (16:17 -0500)]
Avoid read past end of operands vector for EOpFrexp

When emitting SPIR-V code for frexp, avoid access
beyond the end of the operands vector.  When constructing
the OpExtInst, construct a new arguments vector instead of
modifying the existing operands vector.  In the case of OpFrexp,
well need that last operand later on to generate the store.

Fixes https://github.com/KhronosGroup/glslang/issues/110

Change-Id: Ibc380fadf5e600ac491932e9ecef7afe2d72fd7f

8 years agoBuilt-ins: fix mapping of packDouble2x32 and unpackDouble2x32.
John Kessenich [Mon, 7 Dec 2015 02:33:07 +0000 (19:33 -0700)]
Built-ins: fix mapping of packDouble2x32 and unpackDouble2x32.

8 years agoSPV: Fix extra operands when using the "struct" form of a built-in taking an 'out...
John Kessenich [Mon, 7 Dec 2015 02:29:11 +0000 (19:29 -0700)]
SPV: Fix extra operands when using the "struct" form of a built-in taking an 'out' param.

8 years agoSPV: Distinguish between std140 and std430 layouts, and correctly use alignments...
John Kessenich [Mon, 7 Dec 2015 02:17:49 +0000 (19:17 -0700)]
SPV: Distinguish between std140 and std430 layouts, and correctly use alignments as the base for strides.

8 years agoSemantics: Correct that std430 is universally disallowed with 'uniform'.
John Kessenich [Mon, 7 Dec 2015 01:10:27 +0000 (18:10 -0700)]
Semantics: Correct that std430 is universally disallowed with 'uniform'.

8 years agoMerge pull request #100 from mawww/scanner-optim
John Kessenich [Mon, 7 Dec 2015 00:12:53 +0000 (17:12 -0700)]
Merge pull request #100 from mawww/scanner-optim

Scanner optimisations

8 years agoMerge pull request #109 from xorgy/add-unary-math-check-for-null-before-dereferencing
John Kessenich [Sun, 6 Dec 2015 17:29:06 +0000 (10:29 -0700)]
Merge pull request #109 from xorgy/add-unary-math-check-for-null-before-dereferencing

In addUnaryMath, check for 'child' being null before dereferencing it.

8 years agoIn addUnaryMath, check for 'child' being null before dereferencing it.
Aaron Hamilton [Sun, 6 Dec 2015 01:10:54 +0000 (01:10 +0000)]
In addUnaryMath, check for 'child' being null before dereferencing it.

8 years agoMerge pull request #107 from xorgy/fail-init-process-on-init-thread-fail
John Kessenich [Fri, 4 Dec 2015 00:57:35 +0000 (17:57 -0700)]
Merge pull request #107 from xorgy/fail-init-process-on-init-thread-fail

Fail InitProcess() when InitThread() fails.

8 years agoMerge pull request #108 from mgadams/extensions_compile_fix
John Kessenich [Fri, 4 Dec 2015 00:56:53 +0000 (17:56 -0700)]
Merge pull request #108 from mgadams/extensions_compile_fix

Fix ordered pointer comparison build warning/error

8 years agoBuild: Fix CMake files to find osinclude.h
John Kessenich [Fri, 4 Dec 2015 00:46:03 +0000 (17:46 -0700)]
Build: Fix CMake files to find osinclude.h

8 years agoMerge pull request #105 from phaulos/generic-osinclude
John Kessenich [Fri, 4 Dec 2015 00:20:24 +0000 (17:20 -0700)]
Merge pull request #105 from phaulos/generic-osinclude

Use generic osinclude.h.

8 years agoFix ordered pointer comparison build warning/error
Mark Adams [Thu, 3 Dec 2015 20:31:58 +0000 (15:31 -0500)]
Fix ordered pointer comparison build warning/error

8 years agoInitProcess() should fail if InitThread() does.
Aaron Hamilton [Wed, 2 Dec 2015 07:39:26 +0000 (07:39 +0000)]
InitProcess() should fail if InitThread() does.

8 years agoUse generic osinclude.h
Pyry Haulos [Tue, 1 Dec 2015 20:59:53 +0000 (12:59 -0800)]
Use generic osinclude.h

Using platform-neutral osinclude.h makes it easier to substitute
implementation when necessary and eliminates some variability between
build configurations.

8 years agoRequire l-value patch-out indexing to be gl_InvocationID.
John Kessenich [Sat, 28 Nov 2015 22:19:11 +0000 (15:19 -0700)]
Require l-value patch-out indexing to be gl_InvocationID.

Also, generally allow ES variable indexing of in/out blocks.

8 years agoArray-sizing bug fix: multiple array initializers of different size in the same decla...
John Kessenich [Sat, 28 Nov 2015 19:52:29 +0000 (12:52 -0700)]
Array-sizing bug fix: multiple array initializers of different size in the same declaration.

Handles the case of
    float[] x = float[] (1.0, 2.0, 3.0),
            y = float[] (1.0, 2.0, 3.0, 4.0);
where a shallow copy of the type arrayness from the left-most float[]
was getting used twice.

8 years agoMerge pull request #98 from amdrexu/myfix
John Kessenich [Mon, 23 Nov 2015 06:36:49 +0000 (23:36 -0700)]
Merge pull request #98 from amdrexu/myfix

SPV: Fix an issue related with using CubeArrayShadow for texture()

8 years agoSPV: Fix an issue related with using CubeArrayShadow for texture()
Rex Xu [Wed, 11 Nov 2015 07:35:47 +0000 (15:35 +0800)]
SPV: Fix an issue related with using CubeArrayShadow for texture()

8 years agoMerge pull request #10 from baldurk/osinclude-common-header
John Kessenich [Fri, 20 Nov 2015 22:49:09 +0000 (15:49 -0700)]
Merge pull request #10 from baldurk/osinclude-common-header

Build: Use common osinclude.h header file that redirects per-platform, remove obsolete build files, enforce relative includes.

8 years agoExclude bison generated files in .gitignore
baldurk [Mon, 16 Nov 2015 22:53:46 +0000 (23:53 +0100)]
Exclude bison generated files in .gitignore

8 years agoRemove legacy build system
baldurk [Mon, 16 Nov 2015 22:51:35 +0000 (23:51 +0100)]
Remove legacy build system

8 years agoAdd an osinclude.h below each OS directory, redirects by platform macro
baldurk [Mon, 16 Nov 2015 17:03:28 +0000 (18:03 +0100)]
Add an osinclude.h below each OS directory, redirects by platform macro

* Linux folder has been renamed to Unix, to match defines and so that it
  compiles on OS X.
* This removes the need for a per-platform include search path for the
  right OS folder

8 years agoRemove include_directories from CMakeLists, to enforce relative includes
baldurk [Sat, 11 Jul 2015 22:54:17 +0000 (00:54 +0200)]
Remove include_directories from CMakeLists, to enforce relative includes

* This also moves bison generated files into the source tree, so that
  include of glslang_tab.cpp.h and includes from glslang_tab.cpp work
  the same way.

8 years agoRemove unnecessary include path relative to root
baldurk [Mon, 16 Nov 2015 17:05:07 +0000 (18:05 +0100)]
Remove unnecessary include path relative to root

8 years agoSPV testing: Add missing test case.
John Kessenich [Mon, 16 Nov 2015 16:31:26 +0000 (09:31 -0700)]
SPV testing: Add missing test case.

8 years agoSPIR-V: Move from Version .99 Rev 31 to Version 1.0, Rev 2.
John Kessenich [Mon, 16 Nov 2015 04:33:39 +0000 (21:33 -0700)]
SPIR-V: Move from Version .99 Rev 31 to Version 1.0, Rev 2.

8 years agoAvoid costly indirect calls of tStringInput::(un)?getch through TPpContext
Maxime Coste [Wed, 11 Nov 2015 17:46:18 +0000 (17:46 +0000)]
Avoid costly indirect calls of tStringInput::(un)?getch through TPpContext

There is no calls to the TPpContext that could change the current input,
so every calls to pp->getChar and pp->ungetChar ultimately call this->getch
and this->ungetch while adding overhead of virtual calls and vector::back.

8 years agoAvoid creation of temporary std::string when looking up keywords and reserved words
Maxime Coste [Wed, 11 Nov 2015 17:38:31 +0000 (17:38 +0000)]
Avoid creation of temporary std::string when looking up keywords and reserved words

8 years agoMerge pull request #88 from mgadams/unistd_removal
John Kessenich [Wed, 28 Oct 2015 23:29:13 +0000 (17:29 -0600)]
Merge pull request #88 from mgadams/unistd_removal

Remove obsolete unistd.h file

8 years agoRemove obsolete unistd.h file
Mark Adams [Tue, 27 Oct 2015 18:27:18 +0000 (14:27 -0400)]
Remove obsolete unistd.h file

The presence of this file can cause build issues when integrating glslang
into other projects.

8 years agoMerge pull request #85 from mgadams/gcc_build_fixes
John Kessenich [Mon, 26 Oct 2015 21:29:10 +0000 (15:29 -0600)]
Merge pull request #85 from mgadams/gcc_build_fixes

Various build fixes when using newer GCC versions with warnings enabled

8 years agoVarious build fixes when using newer GCC versions with warnings enabled
Mark Adams [Mon, 26 Oct 2015 16:38:46 +0000 (12:38 -0400)]
Various build fixes when using newer GCC versions with warnings enabled

Encountered with GCC-4.7.3 in a build environment where warnings are enabled
and treated as errors.

8 years agoMerge pull request #82 from mgadams/remove_sprintf
John Kessenich [Fri, 16 Oct 2015 00:30:34 +0000 (18:30 -0600)]
Merge pull request #82 from mgadams/remove_sprintf

Replace sprintf() usage with snprintf()