Commit Graph

2683 Commits

Author SHA1 Message Date
Dan Sinclair
b77be9f347 Update graphics robust access results
The robust access code was fixed to use a signed clamp which generates
different results in the SPIR-V cross test.
2019-12-03 16:49:43 -05:00
Hans-Kristian Arntzen
9bb9e00e8b
Merge pull request #1227 from dj2/share_test
Share test shader script
2019-12-03 21:25:10 +01:00
Hans-Kristian Arntzen
a2000c1107
Merge pull request #1228 from KhronosGroup/fix-1225
Fix MSVC warnings when building without exceptions.
2019-12-03 21:23:36 +01:00
Hans-Kristian Arntzen
93d68e9156 Fix MSVC warnings when building without exceptions.
Mark report_and_abort as noreturn.
2019-12-03 21:21:01 +01:00
Dan Sinclair
5e8b95fed7 Share test shader script
This CL adds the ability to pass options to test_shader.sh. The
update_test_shaders.sh script is then changed to call test_shaders.sh
with the --update flag.

This removes the duplication of code between test_shaders.sh and
update_test_shaders.sh.
2019-12-03 15:19:03 -05:00
Hans-Kristian Arntzen
d6e71863c3 Update update_test_shaders.sh as well. 2019-12-03 21:11:12 +01:00
Hans-Kristian Arntzen
dc7942721a Merge branch 'roll_deps' of git://github.com/dj2/SPIRV-Cross 2019-12-03 21:03:41 +01:00
Dan Sinclair
f40c629821 Roll SPIRV-Tools, SPIRV-Headers and GLSLang
This CL updates the three depdencies and updates the tests to handle the
new validation errors which are produced.
2019-12-02 16:17:21 -05:00
Hans-Kristian Arntzen
4b51963c54
Merge pull request #1224 from KhronosGroup/fix-1223
MSL: Support ClipDistance as an input stage variable.
2019-12-02 17:49:45 +01:00
Hans-Kristian Arntzen
99084dcee4 Fix uninitialized memory issue.
Seen on Travis with MSVC Win32 Release builds only.
2019-12-02 15:54:46 +01:00
Hans-Kristian Arntzen
a3fe9756d2 MSL: Support ClipDistance as an input stage variable.
MSL does not support this, so we have to emulate it by passing it around
as a varying between stages. We use a special "user(clipN)" attribute
for this rather than locN which is used for user varyings.
2019-12-02 13:19:42 +01:00
Hans-Kristian Arntzen
ea68f3aa7e
Merge pull request #1220 from akioCL/master
Added --msl-decoration-binding command line argument
2019-11-29 22:45:59 +01:00
Hans-Kristian Arntzen
6ad5ba7782
Merge pull request #1222 from KhronosGroup/stof-utof-fix
Fix sign handling for S/UToF.
2019-11-28 13:56:44 +01:00
Hans-Kristian Arntzen
4edb99d476 Fix sign handling for S/UToF. 2019-11-28 13:55:28 +01:00
Hans-Kristian Arntzen
e46c8937ee
Merge pull request #1221 from KhronosGroup/fix-1219
MSL: Fix automatic binding allocation for image atomic buffers.
2019-11-28 13:21:03 +01:00
Hans-Kristian Arntzen
b85ab5f5ff MSL: Fix automatic binding allocation for image atomic buffers.
The Primary decoration was used by the atomic buffer, causing the
texture binding to be potentially overlapping with other resources.
2019-11-28 11:07:44 +01:00
Akio Gaule
1280df6c7a Added --msl-decoration-binding command line argument to enable binding decoration for Metal. 2019-11-27 20:49:08 -08:00
Hans-Kristian Arntzen
dd595b184c
Merge pull request #1218 from sarahM0/testbr
Add licensing header to test_shaders.py
2019-11-27 11:39:54 +01:00
Sarah Mashayekhi
eed84684cd Add licensing header to test_shaders.py 2019-11-26 14:46:19 -05:00
Hans-Kristian Arntzen
96a276c2ca
Merge pull request #1217 from KhronosGroup/fix-1215
Mark loop headers as complex as early as possible.
2019-11-26 12:48:29 +01:00
Hans-Kristian Arntzen
f5cb08c42f Mark loop headers as complex as early as possible.
We had a case where loops were marked complex in a cascading fashion
where each loop iteration would discover one new complex loop. This was
a problem with three nested loops.
2019-11-26 11:01:39 +01:00
Hans-Kristian Arntzen
70017c6731
Merge pull request #1216 from billhollings/master
Expose as public Compiler::update_active_builtins() and has_active_builtin().
2019-11-26 10:34:32 +01:00
Bill Hollings
ef8260dea6 Expose as public Compiler::update_active_builtins() and has_active_builtin().
MoltenVK tessellation needs to be able to identify when a shader has declared
an output built-in, but does not populate it, in order to keep the expectations
about how intermediary buffers are populated aligned between tessellation stages.
2019-11-25 16:53:54 -05:00
Hans-Kristian Arntzen
fd5aa3ad51 CMake: Clarify some warning messages.
When used as a submodule, testing is generally not used, so don't
confuse a user too much, thinking that missing testing is a problem.
2019-11-12 16:14:26 +01:00
Hans-Kristian Arntzen
c8221ca875
Merge pull request #1209 from KhronosGroup/hlsl-auto-binding-cli
HLSL: Add CLI support for --hlsl-auto-binding.
2019-11-12 12:04:40 +01:00
Hans-Kristian Arntzen
e38cbb9433 HLSL: Add CLI support for --hlsl-auto-binding. 2019-11-12 10:49:01 +01:00
Hans-Kristian Arntzen
0b95cbdea3
Merge pull request #1208 from KhronosGroup/fix-1206
HLSL: Add support to remove register() bindings.
2019-11-11 12:30:36 +01:00
Hans-Kristian Arntzen
b9e5fe01b0 HLSL: Add support to remove register() bindings.
Sometimes it's useful to get automatic binding assignment from the D3D
compiler instead.
2019-11-11 11:23:21 +01:00
Hans-Kristian Arntzen
cb73115bcc
Merge pull request #1204 from KhronosGroup/fix-1200
MSL: Fix unpacking of column from padded matrix.
2019-11-07 13:25:37 +01:00
Hans-Kristian Arntzen
0bbe041411 MSL: Remove dubious workaround code in unpack_expression.
From UE4 review, does not cause any changes in test output, and should
only change output if we were unpacking arrays or something like that,
which we don't support.
2019-11-07 11:35:07 +01:00
Hans-Kristian Arntzen
d9afa9e238 MSL: Fix unpack_expression from column of padded matrix. 2019-11-07 11:35:07 +01:00
Hans-Kristian Arntzen
7b380a68d6
Merge pull request #1201 from KhronosGroup/fix-1199
HLSL: Improve error reporting for cbuffer layout mismatch
2019-11-06 14:16:44 +01:00
Hans-Kristian Arntzen
0b417b586a HLSL: Report more explicitly which member failed validation.
This will be awkward to report in GLSL where we check multiple packing
standards, but for HLSL it should be easy since there's only CBuffer
packing standard to worry about.
2019-11-06 11:21:39 +01:00
Hans-Kristian Arntzen
e73d9bee38 HLSL: Report which cbuffer failed validation. 2019-11-06 11:05:31 +01:00
Hans-Kristian Arntzen
b56c2f4271 Merge branch 'deps' of git://github.com/dj2/SPIRV-Cross 2019-11-06 10:43:17 +01:00
Hans-Kristian Arntzen
d4ca91f6c2 Move .invalid. test shaders to the more appropriate subfolders. 2019-11-06 10:40:37 +01:00
Dan Sinclair
d409210ee5 Move all .invalid shaders into no-opt folders. 2019-11-05 13:19:19 -05:00
Dan Sinclair
79721eda12 Remove old reference shaders 2019-11-05 12:49:04 -05:00
Dan Sinclair
e5af41255c Only run spirv-opt if the spirv is valid.
This CL updates the test runner to only run spirv-opt if the generated
SPIR-V is valid. If validation is skipped it's possible to hit aborts
and other memory errors in the optimizer as it assumes the SPIR-V is
valid.
2019-11-05 11:00:49 -05:00
Dan Sinclair
9da21c24a4 Roll GLSLang and SPIRV-Tools
This CL rolls the GLSLang and SPIRV-Tools dependencies to tip-of-tree
and updates the tests as required.
2019-11-05 10:07:15 -05:00
Hans-Kristian Arntzen
24f209eb93
Merge pull request #1195 from KhronosGroup/fix-1190
C API updates
2019-11-04 12:50:36 +01:00
Hans-Kristian Arntzen
8e42c1c4d3
Merge pull request #1194 from KhronosGroup/fix-1182
GLSL: Fix issue with array-of-array inputs in tess.
2019-11-04 11:29:19 +01:00
Hans-Kristian Arntzen
e8ed10d445 Add spvc_type_get_base_type_id.
Wraps SPIRType::self which is necessary for advanced reflection.
2019-11-04 10:53:09 +01:00
Hans-Kristian Arntzen
e9ad6398de C API: Add missing boolean options. 2019-11-04 10:42:20 +01:00
Hans-Kristian Arntzen
a8d676f2e4 GLSL: Fix issue with array-of-array inputs in tess.
Only one dimension can be unsized and wrong dimension was used for
unrolling purposes.
2019-11-04 10:34:49 +01:00
Hans-Kristian Arntzen
ab1564f3c9
Merge pull request #1193 from kvark/patch-1
Avoid including stdexcept in no-exception environment
2019-11-01 19:54:55 +01:00
Dzmitry Malyshau
5b4a099395
Avoid including stdexcept in no-exception environment 2019-11-01 12:48:26 -04:00
Hans-Kristian Arntzen
d253f41e17
Merge pull request #1192 from kakashidinho/master
Added BUILD.gn file to be used by Chromium's ANGLE project
2019-11-01 12:41:08 +01:00
Le Hoang Quyen
369edcfe1d Updated BUILD.gn's license to APACHE. 2019-11-01 17:37:02 +08:00
Le Hoang Quyen
8a01365f19 Added BUILD.gn file to be used by Chromium's ANGLE project 2019-10-31 23:23:01 +08:00