Commit Graph

6 Commits

Author SHA1 Message Date
Brendan Shanks
25555a7f62 Explicitly use Python 3 for scripts 2022-02-10 09:36:50 -08:00
Karl Schultz
0cb8ad55f6
tooling: Fix update sources script for Python 3
This one small change allows the update_glslang_sources.py script to operate correctly with Python 2 and Python 3.

Change the string literal type to "bytes" so that it matches the type returned by the subprocess calls.  Otherwise, under Python 3, the search for "known-good" in the list of remotes always fails.  This is OK for the first execution of update_glsang_sources, since the remote is not there on the first run.  But on subsequent runs, the search still fails to match and the script stops when trying to create a remote that already exists.
2018-08-27 14:06:38 -06:00
Karl Schultz
fa403b9691 script: Improve update sources script
- remove unused variable to pass pylint
- Use another approach to detect if known-good remote is already
  present to avoid the need for "ignore following errors" message.
2018-06-21 17:30:07 -06:00
GregF
484cbd0484 Upgrade update_glslang_sources.py to work with gitlab branch
--site gitlab must be added to command for gitlab capability.
Default is github.
2018-02-08 16:02:23 -07:00
GregF
3f9c03bd82 Add python3 compatibility to update_glslang_sources.py 2017-10-27 15:39:45 -06:00
GregF
cd1f169c6a Enable HLSL legalization
Also added known-good mechanism to fetch latest validated spirv-tools.
Also added -Od and -Os to disable optimizer and optimize for size.

Fetching spirv-tools is optional for both glsl and hlsl. Legalization
of hlsl is done by default if spirv-opt is present at cmake time.
Optimization for glsl is currently done through the option -Os.

Legalization testing is currently only done on four existing shaders.
A separate baseLegalResults directory holds those results. All previous
testing is done with the optimizer disabled.
2017-09-27 15:06:05 -06:00