Commit Graph

7 Commits

Author SHA1 Message Date
Arcady Goldmints-Orlov
f102d0f4fa Fix update_glslang_sources.py to not use distutils
The distutils package was removed in Python 3.12, however its only
usage in this script can easily be replaced with functionality available
in the builtin os package in Python 3.2 and later.

Fixes #3393
2023-11-07 15:51:45 -07:00
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