Commit Graph

3549 Commits

Author SHA1 Message Date
John Kessenich
1097378907 Merge branch 'dead-code' of https://github.com/dneto0/glslang into dneto0-dead-code 2019-11-01 11:02:55 -06:00
John Kessenich
7f77b2e866 Bump version. 2019-11-01 10:51:21 -06:00
John Kessenich
48233ad3d4
Merge pull request #1949 from corporateshark/master
Add option ENABLE_CTEST to skip testing
2019-10-31 18:28:53 -06:00
David Neto
8c3d5b4b6c SPIR-V: Aggressively prune unreachable merge, continue target
More aggressively prune unreachable code as follows.
When no control flow edges reach a merge block or continue target:
- delete their contents so that:
  - a merge block becomes OpLabel, then OpUnreachable
  - a continue target becomes OpLabel, then an OpBranch back to the
    loop header
- any basic block which is dominated by such a merge block or continue
  target is removed as well.
- decorations targeting the removed instructions are removed.

Enables the SPIR-V builder post-processing step the GLSLANG_WEB case.
2019-10-29 15:33:54 -04:00
Sergey Kosarevsky
3b8d94f422 Add option ENABLE_CTEST to skip testing 2019-10-25 11:57:11 +03:00
John Kessenich
b131630e7c
Merge pull request #1948 from greg-lunarg/kg108
Update spirv-tools known good.
2019-10-24 20:49:36 -06:00
Greg Fischer
b44dac1968 Update spirv-tools known good. 2019-10-24 10:37:01 -06:00
John Kessenich
7662586844
Merge pull request #1947 from ehsannas/fix_licenses
Make  buildbot licenses consistent with the rest of the code
2019-10-23 22:25:47 -06:00
Ehsan Nasiri
4b9b07a85a Make buildbot licenses consistent with the rest of the code 2019-10-23 15:03:38 -04:00
John Kessenich
341701573a
Merge pull request #1946 from KhronosGroup/extend-web
Web: Extend with compute stage, SSBOs, and atomics on SSBO memory.
2019-10-23 10:32:16 -06:00
David Turner
a3f0da56e4 BUILD.gn: Fix fuchsia build (#1944)
The Fuchsia platform build and the Chromium one use a completely
different set of configs to specify default warnings. The previous
version of BUILD.gn worked with Chromium, but failed to build
with Fuchsia.

This CL fixes the issue by identifying said configs and reusing
them consistently.

Change-Id: I7de526a57d2f14eb93c03e06401d2c3059d35e9a
2019-10-23 08:07:19 -06:00
John Kessenich
f8d1d7442b Web: Reclaim more space and make all work w/wo GLSLANG_WEB. 2019-10-23 03:15:55 -06:00
John Kessenich
e5eee8fb03 Web: Add basic atomics for SSBOs. 2019-10-23 00:25:39 -06:00
John Kessenich
3dd1ce5b54 Web: Add SSBOs and a few other missing compute features. 2019-10-23 00:25:39 -06:00
John Kessenich
51ed01c877 Web: Add compute stage. 2019-10-23 00:25:39 -06:00
John Kessenich
61c22e255d Web: Add separate texture/sampler, exclude *CubeArray*.
Looks like will add about 1K compressed size to executable footprint.
2019-10-23 00:25:38 -06:00
Timo Suoranta
5e634c8999 Enable generation of compile_commands.json (#1938) 2019-10-21 22:38:04 -06:00
David Dubois
f57feff786 Fix the exports of glslang-default-resource-limits (#1942) 2019-10-21 22:31:44 -06:00
John Kessenich
e7db8f405a
Merge pull request #1941 from ehsannas/bazel_build
Add Bazel build files and bots for them
2019-10-21 22:30:13 -06:00
Ehsan Nasiri
d3f3f01c4f Run tests on Windows too. 2019-10-18 13:49:59 -04:00
Ehsan Nasiri
2398b216af Fix build scripts. 2019-10-18 12:25:59 -04:00
Ehsan Nasiri
af7991e062 More cleanups for Windows. 2019-10-18 12:21:11 -04:00
Ehsan Nasiri
8b11dfe167 Add Kokoro bots for building using Bazel. 2019-10-17 16:12:43 -04:00
Ehsan Nasiri
dccaa59c98 Make it work on Windows. 2019-10-17 15:14:20 -04:00
John Kessenich
834ee546f9
Merge pull request #1937 from jeffbolznv/volatile_atomics
Only apply volatile semantics to atomics when using Vulkan Memory Model
2019-10-17 12:12:44 -06:00
Jeff Bolz
016ddee83a Only apply volatile semantics to atomics when using Vulkan Memory Model 2019-10-17 11:22:57 -05:00
Ehsan Nasiri
0608b9d682 Add Bazel build configuration files.
In order to avoid potential build failures that could arise from
SPIRV-Tools/Headers, and to avoid reading known_good.json, this build
configuration does not build the SPIRV-Tools dependency and hence cannot
perform HLSL compilation to SPIR-V.
2019-10-17 10:04:43 -04:00
John Kessenich
a959deb007
Merge pull request #1933 from dj2/runtest
Make runtests configurable.
2019-10-16 20:53:39 -06:00
Dan Sinclair
3290d38011 Use commandline options instead of ENV variables 2019-10-16 13:08:48 -04:00
John Kessenich
9e4f6d03f2
Merge pull request #1932 from zoddicus/anotherSemiColonFix
Fix config issues and revert previous fixes for semi-colon issues
2019-10-16 10:39:51 -06:00
Ryan Harrison
622024277e Keep code style improvements 2019-10-16 11:46:37 -04:00
John Kessenich
e3dd69b8b2
Merge pull request #1934 from durswd/master
Added an option to make pch enabled in Cmake
2019-10-16 09:25:56 -06:00
dan sinclair
7d623e1c90
Indenting 2019-10-16 10:45:11 -04:00
dan sinclair
0f98465f0a
Update CMakeLists.txt 2019-10-15 19:11:39 -04:00
Dan Sinclair
3f072e158c Move TARGETDIR as well 2019-10-15 16:47:28 -04:00
Dan Sinclair
167201430d Make runtests configurable.
This CL allows setting the location of glslangValidator and spirv-remap
when calling the runtests script. A test target is added to CMake to
execute runtests and sets the location to the build folder for the two
applications.
2019-10-15 15:21:21 -04:00
Ryan Harrison
1aeceaea7d Fix config issues and revert previous fixes for semi-colon issues
This reverts commit 41261d95a4.
This reverts commit 7c9accb653.

Instead of trying to work around all of the potential semicolon issues
in glslang, making it conform to Chromium's style, mark the code
explicitly as non-chromium in the BUILD.gn, so chromium doesn't
attempt to enforce its style rules on glslang.

Fixes #1931
2019-10-15 14:45:02 -04:00
durswd
0539823243 Added an option to make pch enabled in Cmake 2019-10-16 02:28:40 +09:00
John Kessenich
b03e4fc4e0
Merge pull request #1866 from rumblehhh/master
Export glslang targets on installation
2019-10-15 04:25:20 -06:00
John Kessenich
8ba49b862c
Merge pull request #1930 from ux3d/fix/CMakeOptionalExternalBuild
find Python and add External subdir only if BUILD_EXTERNAL option was set
2019-10-15 04:19:06 -06:00
Fabian Wahlster
03be018a47 find Python and add External subdir only if BUILD_EXTERNAL option was set (on by default) and /External dir exists 2019-10-15 11:00:23 +02:00
John Kessenich
765cee8441 GLSL/SPV: Pre SPIR-V 1.5, subgroupQuadBroadcast index must be constant 2019-10-14 23:08:26 -06:00
John Kessenich
101ca388fb
Merge pull request #1880 from georgeouzou/master
Add support for GL_ARB_explicit_uniform_location
2019-10-12 08:24:11 -06:00
John Kessenich
469d27f2e5
Merge pull request #1928 from Xottab-DUTY/patch-1
Fixed typo in README.md
2019-10-12 08:22:34 -06:00
georgeouzou
01a5047373 remove redundant check 2019-10-12 15:17:29 +03:00
Xottab_DUTY
3c8b4daabd
Fixed typo in README.md 2019-10-12 16:23:54 +05:00
John Kessenich
a100258857
Merge pull request #1926 from zoddicus/fixChromiumRoll
Remove unnecessary semi-colons and add warning about them
2019-10-12 01:55:15 -06:00
Ryan Harrison
41261d95a4 Forgot that GCC doesn't recognize this flag 2019-10-11 13:18:07 -04:00
Ryan Harrison
7c9accb653 Remove unnecessary semi-colons and add warning about them
These are causing integration issues with Chromium down stream since
it is more strict about these.
2019-10-11 11:25:04 -04:00
John Kessenich
696703800e
Merge pull request #1888 from Roy-AMD/Adjusting-code-interface
Adjusting code interface
2019-10-11 01:56:05 -06:00