Граф коммитов

2912 Коммитов

Автор SHA1 Сообщение Дата
John Kessenich 1f60c72c67 Interface: remove NV_EXTENSIONS from the resources header.
This allows library consumers to work without have to set
NV_EXTENSIONS.
2018-09-26 03:02:13 -06:00
John Kessenich a475294590
Merge pull request #1506 from alelenv/master
Fix missing case label for miss stage.
2018-09-25 16:30:14 -06:00
John Kessenich 18268c850f
Merge pull request #1505 from dj2/gn_build
Add BUILD.gn configuration.
2018-09-25 16:29:22 -06:00
Dan Sinclair aac6d63716 Use unsigned int instead of uint32_t 2018-09-25 16:32:06 -04:00
Ashwin Lele a535bc1353 Fix missing case label for miss stage. 2018-09-25 13:19:34 -07:00
Dan Sinclair b29c58ea45 Review feedback 2018-09-24 18:40:38 -04:00
Dan Sinclair 257b25c81f Add BUILD.gn configuration.
This CL adds the necessary configuration to build glslang inside a
Chromium checkout. Two build warnings were fixed in the process to
make things compile.
2018-09-24 16:57:55 -04:00
John Kessenich a8453d4bc0 SPIRV-Tools: Move to more recent (higher quality) version. 2018-09-20 14:36:42 -06:00
John Kessenich 088da33263 Bump revision. 2018-09-20 02:04:42 -06:00
John Kessenich dc591081d7
Merge pull request #1500 from KhronosGroup/turing-known-good
Update known-good to tools/headers for the Nvidia Turing extensions.
2018-09-20 01:59:52 -06:00
John Kessenich aedccf96d2 Update known-good to tools/headers for the Nvidia Turing extensions. 2018-09-20 01:34:14 -06:00
John Kessenich 8751c13ce2 Bump minor version. 2018-09-19 16:50:05 -06:00
John Kessenich 5942c015d2
Merge pull request #1499 from chaoc/nvidia_turing
Add support for multiple Nvidia extensions
2018-09-19 16:44:26 -06:00
Chao Chen fb13a3ab7e update glslang test results for temporary validation fail 2018-09-19 14:06:36 -07:00
Chao Chen 5b2203db04 Add-support-for-SPV_NV_shading_rate 2018-09-19 13:07:43 -07:00
Chao Chen b50c02ef53 Add-support-for-SPV_NVX_raytracing 2018-09-19 13:07:43 -07:00
Chao Chen 3c3669904c Add-support-for-SPV_NV_mesh_shader 2018-09-19 13:07:43 -07:00
Chao Chen 3a1379667d 0003-Add-support-for-SPV_NV_shader_image_footprint 2018-09-19 13:07:42 -07:00
Chao Chen beae2251b7 Add-support-for-SPV_NV_compute_shader_derivatives 2018-09-19 13:07:42 -07:00
Chao Chen 9eada4b971 Add-support-for-SPV_NV_fragment_shader_barycentric 2018-09-19 13:07:42 -07:00
John Kessenich 6dd4757f0f Update to latest spirv.hpp header (which fixed a typo). 2018-09-19 13:58:01 -06:00
John Kessenich 7105cb308a SPV: Move to latest SPIR-V header (latest NV extensions support). 2018-09-19 03:54:48 -06:00
John Kessenich d122a72852 Build: Fix some warnings. 2018-09-18 03:43:30 -06:00
John Kessenich b4a598ba93 Bump revision. 2018-09-13 17:54:48 -06:00
John Kessenich 92fab62362
Merge pull request #1492 from NorbertGarnysAMD/shader_atomic_int64
Add GL_EXT_shader_atomic_int64
2018-09-13 11:52:35 -06:00
Norbert Garnys dad0c1bed0 Add GL_EXT_shader_atomic_int64 2018-09-13 15:34:26 +02:00
John Kessenich f658c3033b
Merge pull request #1491 from DennisOSRM/patch-1
Fix compiler warning emitted from GCC8
2018-09-12 09:02:08 -06:00
Dennis Luxen fc89f065e9
Fix compiler warning emitted from GCC8
the following warning gets emitted:

```
In file included from ./Vulkan/glslang/SPIRV/hex_float.h:39,
                 from ./Vulkan/glslang/SPIRV/SpvBuilder.cpp:49:
./Vulkan/glslang/SPIRV/bitutils.h: In instantiation of ‘Dest spvutils::BitwiseCast(Src) [with Dest = spvutils::Float16; Src = short unsigned int]’:
./Vulkan/glslang/SPIRV/hex_float.h:138:47:   required from ‘T spvutils::FloatProxy<T>::getAsFloat() const [with T = spvutils::Float16]’
./Vulkan/glslang/SPIRV/hex_float.h:821:52:   required from here
./Vulkan/glslang/SPIRV/bitutils.h:29:14: warning: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of non-trivially copyable type ‘class spvutils::Float16’; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
   std::memcpy(&dest, &source, sizeof(dest));
   ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./Vulkan/glslang/SPIRV/SpvBuilder.cpp:49:
./Vulkan/glslang/SPIRV/hex_float.h:43:7: note: ‘class spvutils::Float16’ declared here
 class Float16 {
       ^~~~~~~
In file included from ./Vulkan/glslang/SPIRV/hex_float.h:39,
                 from ./Vulkan/glslang/SPIRV/SpvBuilder.cpp:49:
./Vulkan/glslang/SPIRV/bitutils.h: In instantiation of ‘Dest spvutils::BitwiseCast(Src) [with Dest = spvutils::FloatProxy<spvutils::Float16>; Src = short unsigned int]’:
./Vulkan/glslang/SPIRV/hex_float.h:431:28:   required from ‘void spvutils::HexFloat<T, Traits>::setFromSignUnbiasedExponentAndNormalizedSignificand(bool, spvutils::HexFloat<T, Traits>::int_type, spvutils::HexFloat<T, Traits>::uint_type, bool) [with T = spvutils::FloatProxy<spvutils::Float16>; Traits = spvutils::HexFloatTraits<spvutils::FloatProxy<spvutils::Float16> >; spvutils::HexFloat<T, Traits>::int_type = short int; spvutils::HexFloat<T, Traits>::uint_type = short unsigned int]’
./Vulkan/glslang/SPIRV/hex_float.h:633:5:   required from ‘void spvutils::HexFloat<T, Traits>::castTo(other_T&, spvutils::round_direction) [with other_T = spvutils::HexFloat<spvutils::FloatProxy<spvutils::Float16>, spvutils::HexFloatTraits<spvutils::FloatProxy<spvutils::Float16> > >; T = spvutils::FloatProxy<float>; Traits = spvutils::HexFloatTraits<spvutils::FloatProxy<float> >]’
./Vulkan/glslang/SPIRV/hex_float.h:817:39:   required from here
./Vulkan/glslang/SPIRV/bitutils.h:29:14: warning: ‘void* memcpy(void*, const void*, size_t)’ copying an object of non-trivial type ‘class spvutils::FloatProxy<spvutils::Float16>’ from an array of ‘short unsigned int’ [-Wclass-memaccess]
   std::memcpy(&dest, &source, sizeof(dest));
   ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./Vulkan/glslang/SPIRV/SpvBuilder.cpp:49:
./Vulkan/glslang/SPIRV/hex_float.h:115:7: note: ‘class spvutils::FloatProxy<spvutils::Float16>’ declared here
 class FloatProxy {
       ^~~~~~~~~~
```
2018-09-12 10:34:54 +02:00
John Kessenich 6def4375cc Bump revision. 2018-09-10 18:14:21 -06:00
John Kessenich afe0c66f65 SPV: Fix #1487: Only declare AMD int16/half_float extensions when needed. 2018-09-10 18:10:51 -06:00
John Kessenich 546b78854a Printing preprocessed shaders (not a supported path): Fix #1490: strings
Put quote marks around strings, due to a change in how tokenization works.
2018-09-10 11:42:16 -06:00
John Kessenich 1ca0f8e8eb Bump version and revision. 2018-09-07 09:07:03 -06:00
John Kessenich ddfb4a8022 Merge branch 'jeffbolznv-memory_scope_semantics' 2018-09-07 08:58:53 -06:00
Jeff Bolz 36831c9bad GL_KHR_memory_scope_semantics 2018-09-06 20:36:14 -05:00
John Kessenich 97068d8b30
Merge pull request #1465 from otakuto/remove-execute-permissions
Remove execute permissions
2018-08-31 08:14:47 -07:00
John Kessenich 1d12970ac8
Merge pull request #1485 from karl-lunarg/karl-lunarg-patch-1
tooling: Fix update sources script for Python 3
2018-08-31 08:12:54 -07:00
John Kessenich 12b99ef13d
Merge pull request #1486 from mrtrizer/patch-1
Fixed a typo leading to compilation error.
2018-08-31 08:09:54 -07:00
Denis Zdorovtsov 949344f081
Update SpvTools.cpp
Fix build.
2018-08-31 17:36:15 +03:00
John Kessenich ac2e1b6328 bump revision 2018-08-30 17:43:22 -06:00
John Kessenich 4e11b615db SPV: Turn off the default validation done by the SPIRV-Tools optimizer.
Also use the glslang namespace qualifier consistently and validate after
legalization, not before. (But most tests don't legalize.)
2018-08-30 16:59:13 -06:00
John Kessenich a4dfede4cc
Merge pull request #1482 from KhronosGroup/validate
SPV: Add SPIRV-Tools validator.
2018-08-30 13:20:11 -07:00
John Kessenich d5aabf34f9 GLSL: Remove use of __ in the implementation of keywords having __. 2018-08-30 12:46:29 -06:00
John Kessenich 381dd3c0d2 GLSL: Remove use of __ in the implementation of keywords having __. 2018-08-30 12:22:33 -06: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
John Kessenich c340425bb2 SPV: Add option for controling when the SPIRV-Tools validator is used. 2018-08-23 15:29:08 -06:00
John Kessenich 717c80a9de SPV: Isolate SPIRV-tools glue to its own file. 2018-08-23 15:17:10 -06:00
John Kessenich cc14f2d329 SPV: Add SPIRV-Tools validator. This needs the latest SPIR-Tools. 2018-08-23 13:46:48 -06:00
John Kessenich e7df8e0b76 Non-functional: Rationalize some existing use of SPIRV-Tools. 2018-08-22 17:12:46 -06:00
John Kessenich 1323bf8e39
Merge pull request #1480 from dneto0/stringify
Use our own SPIRV-Tools message stringifier
2018-08-20 08:07:12 -07:00
David Neto 9fd2a8cdfc Use our own SPIRV-Tools message stringifier
Stop including an internal SPIRV-Tools header. It has been
deleted.

Fixes #1477
2018-08-20 10:36:27 -04:00