platform/upstream/glslang.git
6 years agoUpdate spirv-tools known-good.
GregF [Fri, 15 Dec 2017 18:29:43 +0000 (11:29 -0700)]
Update spirv-tools known-good.

6 years agoHLSL: Make attributes for built-in override semantics.
John Kessenich [Fri, 15 Dec 2017 15:15:26 +0000 (08:15 -0700)]
HLSL: Make attributes for built-in override semantics.

Fixes #1188.

6 years agoMerge pull request #1189 from KhronosGroup/spv-xfb
John Kessenich [Fri, 15 Dec 2017 14:19:05 +0000 (07:19 -0700)]
Merge pull request #1189 from KhronosGroup/spv-xfb

SPV: Implement XFB

6 years agoSPV: Plumb through XFB buffer and stride information.
John Kessenich [Fri, 15 Dec 2017 13:21:46 +0000 (06:21 -0700)]
SPV: Plumb through XFB buffer and stride information.

Also, only emit this XFB information where the SPIR-V spec says
it should be emitted: essentially, on objects.

This and the previous commit together fix #1185.

6 years agoGLSL: Implement XFB for redeclared built-in blocks.
John Kessenich [Fri, 15 Dec 2017 11:41:28 +0000 (04:41 -0700)]
GLSL: Implement XFB for redeclared built-in blocks.

6 years agoMerge pull request #1184 from KhronosGroup/SPV_EXT_fragment_fully_covered
John Kessenich [Fri, 15 Dec 2017 04:29:46 +0000 (21:29 -0700)]
Merge pull request #1184 from KhronosGroup/SPV_EXT_fragment_fully_covered

Add implementation of SPV_EXT_fragment_fully_covered

6 years agoAdd implementation of SPV_EXT_fragment_fully_covered
Piers Daniell [Wed, 13 Dec 2017 20:07:22 +0000 (13:07 -0700)]
Add implementation of SPV_EXT_fragment_fully_covered

This implementation uses the GLSL extension
GL_NV_conservative_raster_underestimation to generate the new SPIR-V
FullyCoveredEXT built in.

6 years agoUpdate to latest public headers.
John Kessenich [Thu, 14 Dec 2017 09:57:28 +0000 (02:57 -0700)]
Update to latest public headers.

6 years agoMerge pull request #1183 from LoopDawg/builtin-output-array-indirect
John Kessenich [Thu, 14 Dec 2017 08:39:25 +0000 (01:39 -0700)]
Merge pull request #1183 from LoopDawg/builtin-output-array-indirect

HLSL: for split output structs, propagate indirection to builtins.

6 years agoMerge pull request #1186 from zeux/master
John Kessenich [Thu, 14 Dec 2017 07:39:41 +0000 (00:39 -0700)]
Merge pull request #1186 from zeux/master

HLSL: Implement support for RT/Viewport output from VS

6 years agoHLSL: Implement support for RT/Viewport output from VS
Arseny Kapoulkine [Thu, 14 Dec 2017 00:08:20 +0000 (16:08 -0800)]
HLSL: Implement support for RT/Viewport output from VS

In DX10/DX11 you can only output RT/Viewport indices from GS; however,
DX11.4/DX12 add support for outputting these from VS as well.

This is supported by Vulkan if the relevant extension is available, and
by MSL and by MSL (which you can cross-compile to via SPIRV-Cross).

6 years agoHLSL: for split output structs, propagate indirection to builtin.
LoopDawg [Tue, 12 Dec 2017 23:21:22 +0000 (16:21 -0700)]
HLSL: for split output structs, propagate indirection to builtin.

Some stage (e.g, hull shaders) have arrayed builtin outputs (e.g, position).
When copying from the internal structure to the split form, it is necessary
to propagate that indirection to the actual arrayed outputs.  This was not
happening.

Addresses #1181

6 years agoMerge pull request #1174 from LoopDawg/y-flip
John Kessenich [Tue, 12 Dec 2017 16:16:01 +0000 (09:16 -0700)]
Merge pull request #1174 from LoopDawg/y-flip

HLSL: add optional position.Y inversion

6 years agoHLSL: Give error on unsupported buffer initializer.
John Kessenich [Sat, 9 Dec 2017 11:42:42 +0000 (04:42 -0700)]
HLSL: Give error on unsupported buffer initializer.

6 years agoHLSL: Remove unintended/untested functionality PrimitiveID.
John Kessenich [Sat, 9 Dec 2017 02:41:05 +0000 (19:41 -0700)]
HLSL: Remove unintended/untested functionality PrimitiveID.

This was listed as outputs for tessellation stages, but they
are input only.

6 years agoMerge pull request #1178 from LoopDawg/primitiveid-hs-input
John Kessenich [Sat, 9 Dec 2017 02:35:17 +0000 (19:35 -0700)]
Merge pull request #1178 from LoopDawg/primitiveid-hs-input

HLSL: Allow primitive id on hull shader input

6 years agoMerge pull request #1175 from KhronosGroup/no-flatten-local-opaque
John Kessenich [Sat, 9 Dec 2017 01:46:34 +0000 (18:46 -0700)]
Merge pull request #1175 from KhronosGroup/no-flatten-local-opaque

HLSL: Stop flattening non-IO structs containing opaques.

6 years agoHLSL: Allow primitive id on hull shader inputs
LoopDawg [Fri, 8 Dec 2017 19:01:16 +0000 (12:01 -0700)]
HLSL: Allow primitive id on hull shader inputs

Fixes #979

6 years agoHLSL: Stop flattening non-IO structs containing opaques.
John Kessenich [Thu, 16 Nov 2017 23:03:18 +0000 (16:03 -0700)]
HLSL: Stop flattening non-IO structs containing opaques.

This makes struct returns from functions work, but breaks
structs containing arrays, due to limitations in subsequent
transforms in spirv-opt. This is expected to be fixed soon.

6 years agoHLSL: add optional position.Y inversion
LoopDawg [Wed, 6 Dec 2017 23:52:03 +0000 (16:52 -0700)]
HLSL: add optional position.Y inversion

Adds command line options:

   --invert-y
   --iy

(synonyms) which invert position.Y on vertex shader output.  Handles these cases:

* Direct single variable return
* Member of direct returned struct
* Single variable output parameter
* Member of struct output parameter

API:

    // Enables position.Y output negation in vertex shader
    void TShader::setInvertY(bool invert);

Fixes #1173

6 years agoHLSL: Fix #606: make layout() override register.
John Kessenich [Wed, 6 Dec 2017 15:17:21 +0000 (08:17 -0700)]
HLSL: Fix #606: make layout() override register.

6 years agoHLSL: Fix #1154: Support PointSize, as an attribute.
John Kessenich [Wed, 6 Dec 2017 14:33:36 +0000 (07:33 -0700)]
HLSL: Fix #1154: Support PointSize, as an attribute.

6 years agoMerge pull request #1151 from cgmb/update-readme
John Kessenich [Tue, 5 Dec 2017 11:26:04 +0000 (04:26 -0700)]
Merge pull request #1151 from cgmb/update-readme

Improve build instructions

6 years agoImprove build instructions
Cory Bloor [Tue, 5 Dec 2017 07:28:32 +0000 (00:28 -0700)]
Improve build instructions

- Mention that the instructions are written for Bash.
- Quote the CMAKE_INSTALL_PREFIX to handle spaces in $(pwd).
- Remove SSH clone instructions. Instructions on how to clone are for
  those unfamiliar with GitHub, so fewer options are better and SSH
  requires additional configuration to make work.
- Replace ninja with make, because more people are familiar with it and
  we probably don't need to explain how to install it. Fixes #956.
- Remove the section mentioning cygwin, as it's unclear and doesn't
  seem necessary.
- Mention minimum language version in the Dependencies section.
- Move `cd $BUILD_DIR` out of the Linux configuration section because
  it's needed on both platforms. Add a line about creating the build
  directory, too.

6 years agoHLSL: Fix #1163: treat buffers as references when calling functions.
John Kessenich [Mon, 4 Dec 2017 09:48:10 +0000 (02:48 -0700)]
HLSL: Fix #1163: treat buffers as references when calling functions.

This continues to prevent writing output buffers (out from a function),
but fixes the problem where the copy-in/out was not getting done.

Making everything work will require knowing both in/out-ness and bufferness,
but these are currently mutually exclusive, because both are storage
qualifiers.

6 years agoMerge pull request #1171 from greg-lunarg/kg5
John Kessenich [Sat, 2 Dec 2017 05:16:03 +0000 (22:16 -0700)]
Merge pull request #1171 from greg-lunarg/kg5

Update spirv-tools known-good

6 years agoMerge pull request #1170 from LoopDawg/matsize-warnings
John Kessenich [Fri, 1 Dec 2017 08:27:33 +0000 (01:27 -0700)]
Merge pull request #1170 from LoopDawg/matsize-warnings

HLSL: minor: add warning for mat() matrix size truncation

6 years agoUpdate spirv-tools known-good
GregF [Fri, 1 Dec 2017 02:36:16 +0000 (19:36 -0700)]
Update spirv-tools known-good

This fixes spirv-tools issue 989 where if-break can be incorrectly
deleted from a loop.

6 years agoHLSL: minor: add warning for mat() matrix size truncation
LoopDawg [Wed, 29 Nov 2017 17:00:01 +0000 (10:00 -0700)]
HLSL: minor: add warning for mat() matrix size truncation

Minor change to add a compilation warning on implicit matrix size
truncations.

6 years agoAdd initialization in case it is causing the Apple Clang release failure.
John Kessenich [Wed, 29 Nov 2017 23:32:46 +0000 (16:32 -0700)]
Add initialization in case it is causing the Apple Clang release failure.

6 years agoTests: Trigger more texture tests, and hopefully see build failure go away.
John Kessenich [Wed, 29 Nov 2017 06:47:08 +0000 (23:47 -0700)]
Tests: Trigger more texture tests, and hopefully see build failure go away.

(This is motivated by wanting to retickle the tests.)

6 years agoMerge pull request #1166 from tafuri/#1165-invalid_Store
John Kessenich [Wed, 29 Nov 2017 02:41:52 +0000 (19:41 -0700)]
Merge pull request #1166 from tafuri/#1165-invalid_Store

#1165 invalid store

6 years agoMerge pull request #1169 from LoopDawg/cbuffer-identifier
John Kessenich [Tue, 28 Nov 2017 23:51:42 +0000 (16:51 -0700)]
Merge pull request #1169 from LoopDawg/cbuffer-identifier

HLSL: allow keyword-identifiers as cbuffer/struct names.

6 years agoMerge pull request #1167 from LoopDawg/matmul-truncate-mxm
John Kessenich [Tue, 28 Nov 2017 18:06:05 +0000 (11:06 -0700)]
Merge pull request #1167 from LoopDawg/matmul-truncate-mxm

HLSL: add implicit mat*mat truncations

6 years agoMerge pull request #1168 from greg-lunarg/kg4
John Kessenich [Tue, 28 Nov 2017 18:04:31 +0000 (11:04 -0700)]
Merge pull request #1168 from greg-lunarg/kg4

Update spirv-tools known-good

6 years agoHLSL: allow keyword-identifiers as cbuffer/struct names.
LoopDawg [Mon, 27 Nov 2017 21:45:36 +0000 (14:45 -0700)]
HLSL: allow keyword-identifiers as cbuffer/struct names.

Issue #791 was partially fixed by PR #1161 (the mat mul implicit
truncations were its main point), but it still wouldn't compile due to
the use of ConstantBuffer as an identifier.  Apparently those fall into
the same class as "float float", where float is both a type and an
identifier.

This allows struct definitions with such keyword-identifiers,
and adds ConstantBuffer to the set.  'cbuffer int' is legal in HLSL,
and 'struct int' appears to only be rejected due to the redefinition
of the 'int' type.

Fixes #791

6 years agoUpdate spirv-tools known-good
GregF [Mon, 27 Nov 2017 21:41:55 +0000 (14:41 -0700)]
Update spirv-tools known-good

This includes an enhancement to propagate through nested structs.

6 years agoHLSL: add implicit mat*mat truncations
LoopDawg [Mon, 27 Nov 2017 16:42:53 +0000 (09:42 -0700)]
HLSL: add implicit mat*mat truncations

Goes with PR #1161, and completes the space for mul() implicit truncations.

Note that the v*v and scalar cases are already handled by existing code.

6 years agoAdded new test to gtests and updated test data
Sebastian Tafuri [Mon, 27 Nov 2017 15:53:09 +0000 (16:53 +0100)]
Added new test to gtests and updated test data

6 years agoRespect the array type in Store operation
Sebastian Tafuri [Mon, 27 Nov 2017 15:27:09 +0000 (16:27 +0100)]
Respect the array type in Store operation

6 years agoMerge pull request #1161 from LoopDawg/matmul-truncate
John Kessenich [Sat, 25 Nov 2017 02:17:10 +0000 (19:17 -0700)]
Merge pull request #1161 from LoopDawg/matmul-truncate

WIP: HLSL: matrix and vector truncations for m*v, v*m, m*m

6 years agoHLSL: matrix and vector truncations for m*v, v*m, m*m
LoopDawg [Wed, 22 Nov 2017 17:33:34 +0000 (10:33 -0700)]
HLSL: matrix and vector truncations for m*v, v*m, m*m

HLSL truncates the vector, or one of the two matrix dimensions if there is a
dimensional mismatch in m*v, v*m, or m*m.

This PR adds that ability.  Conversion constructors are added as required.

6 years agoMemory: Mak full explicit destructor functionality, techincally correctly.
John Kessenich [Tue, 21 Nov 2017 21:32:39 +0000 (14:32 -0700)]
Memory: Mak full explicit destructor functionality, techincally correctly.

Completes a TODO from previous commit.

6 years agoMemory: Fix #705: don't use pool object after invoking destructor.
John Kessenich [Tue, 21 Nov 2017 07:12:31 +0000 (00:12 -0700)]
Memory: Fix #705: don't use pool object after invoking destructor.

6 years agoMemory: Put pragma tables in the pool.
John Kessenich [Tue, 21 Nov 2017 00:41:39 +0000 (17:41 -0700)]
Memory: Put pragma tables in the pool.

Fixes #916 (the last change covered by the PR).
3rd list item in #976.

6 years agoSPV: SampleMask does not depend on SampleRateShading.
John Kessenich [Mon, 20 Nov 2017 23:32:49 +0000 (16:32 -0700)]
SPV: SampleMask does not depend on SampleRateShading.

Fixes #1158.
Fixes #1159.

6 years agoMemory: Reference count number of clients, to support multiple independent clients...
John Kessenich [Fri, 17 Nov 2017 05:48:41 +0000 (22:48 -0700)]
Memory: Reference count number of clients, to support multiple independent clients in same process.

Addresses 2nd item in #976.

6 years agoUsage: clarify meaning of -s; fixes #1135.
John Kessenich [Fri, 17 Nov 2017 05:32:20 +0000 (22:32 -0700)]
Usage: clarify meaning of -s; fixes #1135.

6 years agoTest: Add more legalization tests; those effected by flattening.
John Kessenich [Thu, 16 Nov 2017 22:02:06 +0000 (15:02 -0700)]
Test: Add more legalization tests; those effected by flattening.

6 years agoMerge pull request #1156 from LoopDawg/snorm-uav
John Kessenich [Wed, 15 Nov 2017 22:30:59 +0000 (15:30 -0700)]
Merge pull request #1156 from LoopDawg/snorm-uav

HLSL: Accept unorm and snorm on types

6 years agoMerge pull request #1157 from LoopDawg/gs-hs-mix
John Kessenich [Wed, 15 Nov 2017 22:30:18 +0000 (15:30 -0700)]
Merge pull request #1157 from LoopDawg/gs-hs-mix

HLSL: ignore geometry attributes on non-GS stages.

6 years agoHLSL: ignore geometry attributes on non-GS stages.
LoopDawg [Wed, 15 Nov 2017 18:33:25 +0000 (11:33 -0700)]
HLSL: ignore geometry attributes on non-GS stages.

If a shader includes a mixture of several stages, such as HS and GS,
the non-stage output geometry should be ignored, lest it conflict
with the stage output.

6 years agoMerge pull request #1147 from KhronosGroup/memory1
John Kessenich [Wed, 15 Nov 2017 04:26:42 +0000 (21:26 -0700)]
Merge pull request #1147 from KhronosGroup/memory1

Memory fixes, round 1

6 years agoMerge pull request #1155 from antiagainst/skip-tags
John Kessenich [Tue, 14 Nov 2017 22:43:24 +0000 (15:43 -0700)]
Merge pull request #1155 from antiagainst/skip-tags

Appveyor: avoid double testing on master commits

6 years agoMemory: Remove redundant pool popAll(), which is potentially confusing.
John Kessenich [Tue, 14 Nov 2017 22:19:41 +0000 (15:19 -0700)]
Memory: Remove redundant pool popAll(), which is potentially confusing.

6 years agoHLSL: Accept unorm and snorm on types
LoopDawg [Tue, 14 Nov 2017 21:55:40 +0000 (14:55 -0700)]
HLSL: Accept unorm and snorm on types

This is currently parsed and ignored, save for some minor validation.

6 years agoAppveyor: avoid double testing on master commits
Lei Zhang [Tue, 14 Nov 2017 19:36:22 +0000 (14:36 -0500)]
Appveyor: avoid double testing on master commits

6 years agoImplement OS_DumpMemoryCounters for Linux
LoopDawg [Mon, 13 Nov 2017 22:54:12 +0000 (15:54 -0700)]
Implement OS_DumpMemoryCounters for Linux

6 years agoMemory: Restore unused interfaces, in case other tools called them.
John Kessenich [Tue, 14 Nov 2017 05:19:21 +0000 (22:19 -0700)]
Memory: Restore unused interfaces, in case other tools called them.

6 years agoMerge pull request #1150 from antiagainst/readme-release
John Kessenich [Tue, 14 Nov 2017 04:43:45 +0000 (21:43 -0700)]
Merge pull request #1150 from antiagainst/readme-release

Update README about the automatic master-tot relase

6 years agoUpdate README about the automatic master-tot relase
Lei Zhang [Mon, 13 Nov 2017 20:27:32 +0000 (15:27 -0500)]
Update README about the automatic master-tot relase

6 years agoMerge pull request #1143 from LoopDawg/texturebuffer
John Kessenich [Mon, 13 Nov 2017 18:20:34 +0000 (11:20 -0700)]
Merge pull request #1143 from LoopDawg/texturebuffer

WIP: HLSL: implement TextureBuffer<type>

6 years agoMemory: Add loop around main, to test tear-down and reuse, and monitor memory changes.
John Kessenich [Mon, 13 Nov 2017 08:32:06 +0000 (01:32 -0700)]
Memory: Add loop around main, to test tear-down and reuse, and monitor memory changes.

6 years agoMemory: Remove the need for per-thread tear down.
John Kessenich [Mon, 13 Nov 2017 06:12:57 +0000 (23:12 -0700)]
Memory: Remove the need for per-thread tear down.

Make key objects using the memory pool own their own pool and delete it,
such that there is not generic per-thread pool to manage.

6 years agoMemory: Do process and 1st thread tear down.
John Kessenich [Sun, 12 Nov 2017 22:55:22 +0000 (15:55 -0700)]
Memory: Do process and 1st thread tear down.

Addresses #928, #389, and 1st item in #976. Overlaps #916.

This had been dropped, when moving away from the old Win32 DLL model.

Issue: per-thread tear down for other threads.

6 years agoMemory: Move to a normal model of ownership of memory pools, for new/delete.
John Kessenich [Sun, 12 Nov 2017 22:43:03 +0000 (15:43 -0700)]
Memory: Move to a normal model of ownership of memory pools, for new/delete.

Addresses step 4 of #976, overlaps #916.

For each pool, now, it is newed, remembered, and freed by the same entity,
rather than having a mix (thread finalize freeing current pool) that could
lead to double freeing of the same pool. It is quite rational and simple now.

This will enable reinstalling process and thread tear down.

6 years agoMemory: Non-Functional: Rationalize and improve encapsulation of TLS usage.
John Kessenich [Sun, 12 Nov 2017 22:28:58 +0000 (15:28 -0700)]
Memory: Non-Functional: Rationalize and improve encapsulation of TLS usage.

This will make the next (functional) commit easier to see.

6 years agoMerge pull request #1142 from greg-lunarg/kg3
John Kessenich [Fri, 10 Nov 2017 20:52:00 +0000 (13:52 -0700)]
Merge pull request #1142 from greg-lunarg/kg3

Update spirv-tools known good.

6 years agoMerge pull request #1145 from antiagainst/travis-auto-deploy
John Kessenich [Fri, 10 Nov 2017 02:19:56 +0000 (19:19 -0700)]
Merge pull request #1145 from antiagainst/travis-auto-deploy

Travis: auto deploy build artifacts to GitHub Releases

6 years agoTravis: auto deploy build artifacts to GitHub Releases
Lei Zhang [Thu, 9 Nov 2017 02:32:01 +0000 (21:32 -0500)]
Travis: auto deploy build artifacts to GitHub Releases

Pushing a commit to the master branch will trigger a build on
Travis. If the build is successful, the artifacts will be
collected and pushed to GitHub Releases, under the "master-tot"
release.

6 years agoMerge pull request #1114 from LoopDawg/validator-script
John Kessenich [Thu, 9 Nov 2017 19:10:24 +0000 (12:10 -0700)]
Merge pull request #1114 from LoopDawg/validator-script

Add script to crank test shaders through spirv-val

6 years agoMerge pull request #1116 from LoopDawg/reverse-shift-args
John Kessenich [Thu, 9 Nov 2017 19:08:28 +0000 (12:08 -0700)]
Merge pull request #1116 from LoopDawg/reverse-shift-args

Reverse order of setShiftBindingForSet parameters

6 years agoMerge pull request #1144 from antiagainst/appveyor-auto-deploy
John Kessenich [Thu, 9 Nov 2017 19:07:42 +0000 (12:07 -0700)]
Merge pull request #1144 from antiagainst/appveyor-auto-deploy

Appveyor: auto deploy build artifacts to GitHub Releases

6 years agoReverse order of setShiftBindingForSet parameters
LoopDawg [Sat, 21 Oct 2017 16:46:39 +0000 (10:46 -0600)]
Reverse order of setShiftBindingForSet parameters

Per feedback on PR #1111, this reverses the order of the parameters for the setShiftBinding API.

It is now:

    void TShader::setShiftBindingForSet(TResourceType res, unsigned int base, unsigned int set);

6 years agoAdd script to crank test shaders through spirv-val
LoopDawg [Thu, 19 Oct 2017 18:09:56 +0000 (12:09 -0600)]
Add script to crank test shaders through spirv-val

This script will crank a supplied set of glslang test shaders through the
spirv-val tool, reporting on the results.

There are some important things to note:

* Like 'runtests', this must be invoked from the 'Test' subdirectory.

* This is mostly useful on the hlsl.* tests, although it is not strictly
limited to those.  The reason is that most of the glsl tests either contain
validation error cases, and so fail to compile, or are not using a #version
compatible with producing SPIR-V modules.

* Some tests, such as negative tests, or most of the glsl tests, have
intentional compilation errors.  This script treats that as OK.  Failures
are successfully compiling shaders which proceed to fail spirv-val.

* spirv-val is looked for in either the External directory, or if not
found there, in a sibling directory of glslang, and if not found there
either, in /usr/local/bin.

* There are a bunch of command line options.  ./validate-shaders.sh --help
will describe them.

Some examples to try:

   ./validate-shaders.sh hlsl.*   # exercise all hlsl.* tests.
   ./validate-shaders.sh --terse hlsl.*  # same, but tersely.

   # dump validator results for problems in something.frag:
   ./validate-shaders.sh --quiet --dump-val something.frag

6 years agoAppveyor: auto deploy build artifacts to GitHub Releases
Lei Zhang [Wed, 8 Nov 2017 22:26:51 +0000 (17:26 -0500)]
Appveyor: auto deploy build artifacts to GitHub Releases

Pushing a commit to the master branch will trigger a build on
Appveyor. If the build is successful, the artifacts will be
collected and pushed to GitHub Releases, under the "master-tot"
release.

6 years agoHLSL: implement TextureBuffer<type>
LoopDawg [Thu, 9 Nov 2017 02:48:11 +0000 (19:48 -0700)]
HLSL: implement TextureBuffer<type>

Almost equivalent to tbuffer, except members not at global scope.
So, reference is "TextureBuffer_var.member", not simply "member".

6 years agoUpdate spirv-tools known good.
GregF [Wed, 8 Nov 2017 20:56:08 +0000 (13:56 -0700)]
Update spirv-tools known good.

6 years agoSPV: Don't support noise*() when generating SPV.
John Kessenich [Fri, 3 Nov 2017 09:39:48 +0000 (03:39 -0600)]
SPV: Don't support noise*() when generating SPV.

6 years agoErrors: Have a whole set of tool-level error messages report to stderr.
John Kessenich [Fri, 3 Nov 2017 04:48:15 +0000 (22:48 -0600)]
Errors: Have a whole set of tool-level error messages report to stderr.

6 years agoVersioning: Update some version strings. Still need better overall version.
John Kessenich [Fri, 3 Nov 2017 04:32:14 +0000 (22:32 -0600)]
Versioning: Update some version strings. Still need better overall version.

6 years agoMerge pull request #1139 from greg-lunarg/remap2
John Kessenich [Fri, 3 Nov 2017 03:53:25 +0000 (21:53 -0600)]
Merge pull request #1139 from greg-lunarg/remap2

Remapper: Fix strip algo when strip ranges overlap

6 years agoRemapper: Fix strip algo when strip ranges overlap
GregF [Thu, 2 Nov 2017 20:01:57 +0000 (14:01 -0600)]
Remapper: Fix strip algo when strip ranges overlap

6 years agoFix #1079: don't give error when macro() name used without open (.
John Kessenich [Thu, 2 Nov 2017 12:48:32 +0000 (06:48 -0600)]
Fix #1079: don't give error when macro() name used without open (.

6 years agoFix nondeterminism discussed in 258b700f5957fc13b0512b3734a1b0e81a1c271d
John Kessenich [Thu, 2 Nov 2017 06:05:53 +0000 (00:05 -0600)]
Fix nondeterminism discussed in 258b700f5957fc13b0512b3734a1b0e81a1c271d

6 years agoFix #1065: don't validate Vulkan binding numbers.
John Kessenich [Thu, 2 Nov 2017 04:33:45 +0000 (22:33 -0600)]
Fix #1065: don't validate Vulkan binding numbers.

To handle sparse assignments, don't check maxCombinedTextureImageUnits.

6 years agoNon-functional: copyright update, to help with non-determinism test.
John Kessenich [Sat, 28 Oct 2017 20:42:44 +0000 (14:42 -0600)]
Non-functional: copyright update, to help with non-determinism test.

6 years agoTests: Non-determinancy: Add back in the IntMin tests.
John Kessenich [Sat, 28 Oct 2017 18:55:02 +0000 (12:55 -0600)]
Tests: Non-determinancy: Add back in the IntMin tests.

6 years agoMerge pull request #1133 from greg-lunarg/kg2
John Kessenich [Sat, 28 Oct 2017 08:03:09 +0000 (02:03 -0600)]
Merge pull request #1133 from greg-lunarg/kg2

Add python3 compatibility to update_glslang_sources.py

6 years agoAdd python3 compatibility to update_glslang_sources.py
GregF [Fri, 27 Oct 2017 21:39:45 +0000 (15:39 -0600)]
Add python3 compatibility to update_glslang_sources.py

6 years agoNon-determinant tests: Remove recent tests, to see if things stabelize.
John Kessenich [Fri, 27 Oct 2017 10:15:57 +0000 (04:15 -0600)]
Non-determinant tests: Remove recent tests, to see if things stabelize.

Both debug and release clang builds have segfaulted on recent
changes, non deterministically, while doing the single/multi-thread
test all test files. Removing recent test files, to see if it gives
a clue.

6 years agoNon-functional: Add {} expected by convention; retrigger failed bot tests.
John Kessenich [Fri, 27 Oct 2017 09:10:21 +0000 (03:10 -0600)]
Non-functional: Add {} expected by convention; retrigger failed bot tests.

6 years agoMerge pull request #1129 from xorgy/const-fold-int-min-modulo-negative-one
John Kessenich [Fri, 27 Oct 2017 07:30:03 +0000 (01:30 -0600)]
Merge pull request #1129 from xorgy/const-fold-int-min-modulo-negative-one

GLSL: Fold constant SHRT_MIN/INT_MIN/LLONG_MIN % -1 to 0.

6 years agoGLSL: Fold constant SHRT_MIN/INT_MIN/LLONG_MIN % -1 to 0.
Aaron Muir Hamilton [Wed, 25 Oct 2017 00:11:53 +0000 (00:11 +0000)]
GLSL: Fold constant SHRT_MIN/INT_MIN/LLONG_MIN % -1 to 0.

6 years agoMerge pull request #1124 from xorgy/check-inner-implicit-atomic-uint
John Kessenich [Tue, 24 Oct 2017 14:18:09 +0000 (08:18 -0600)]
Merge pull request #1124 from xorgy/check-inner-implicit-atomic-uint

GLSL: Check for implicit inner dimension in array of atomic_uint.

6 years agoMerge pull request #1127 from xorgy/preprocessor-int-min-mod-negative-one
John Kessenich [Tue, 24 Oct 2017 14:14:38 +0000 (08:14 -0600)]
Merge pull request #1127 from xorgy/preprocessor-int-min-mod-negative-one

Preprocessor: Evaluate INT_MIN % -1 to 0.

6 years agoPreprocessor: Evaluate INT_MIN % -1 to 0.
Aaron Muir Hamilton [Tue, 24 Oct 2017 10:59:01 +0000 (10:59 +0000)]
Preprocessor: Evaluate INT_MIN % -1 to 0.

6 years agoMerge pull request #1125 from greg-lunarg/kg1
John Kessenich [Tue, 24 Oct 2017 04:11:42 +0000 (22:11 -0600)]
Merge pull request #1125 from greg-lunarg/kg1

Update spirv-tools known-good

6 years agoUpdate spirv-tools known-good
GregF [Mon, 23 Oct 2017 22:48:42 +0000 (16:48 -0600)]
Update spirv-tools known-good

6 years agoGLSL: Check for implicit inner dimension in array of atomic_uint.
Aaron Muir Hamilton [Mon, 23 Oct 2017 15:31:10 +0000 (15:31 +0000)]
GLSL: Check for implicit inner dimension in array of atomic_uint.