1981 Commits

Author SHA1 Message Date
pmistryNV
3f4e5c4563
Add support for extension GL_ARB_shader_image_size (#2185) 2020-04-19 20:47:54 -06:00
pmistryNV
9f46e3dd5e
Add support for extension GL_ARB_shader_bit_encoding (#2183) 2020-04-17 05:24:12 -06:00
John Kessenich
4657244018 Fix #2178: Allow specialization constants for texel offsets. 2020-04-12 22:57:07 -06:00
alelenv
75de196cec
Add support for EXT_ray_flags_primitive_culling. (#2173)
Fixes issue #2169.
2020-04-08 22:09:20 -06:00
John Kessenich
9c3204a1fd Error message: Finish addressing #2097, better texture error message. 2020-04-07 02:18:23 -06:00
Ryan Harrison
b5757b9500
Remove extra semicolons (#2170)
This is causing downstream users compiler errors if they have Werror or other
particularly restrictive flags turned on.
2020-04-02 23:04:09 -06:00
Malcolm Bechard
0b66fa3b62
Shader interface matching rework to fix #2136 (#2156)
* rework how shader interface block naming rules are handled

* Fixes 2136

According to the spec, shader interfaces (uniform blocks, buffer
blocks, input blocks, output blocks) all should be matched up via
their block names across all compilation units, not instance names.
Also, all block names can be re-used between all 4 interface types
without conflict. This change makes it so all of these blocks are
matched and remapped using block name and not by instance name.
Additional the rule that matched uniform and buffer blocks must
either be anonymous or named (but not nessearily the same name) is
now imposed.

* add warning if instance names differ between matched shader interfaces

* Add test cases from #2137 which is now fixed as well.

* replace some tab characters with spaces

* buffer blocks and uniform blocks now share the same block namespace
2020-04-02 02:03:53 -06:00
John Kessenich
e157435c1e Bump revision. 2020-03-31 00:02:31 -06:00
alelenv
f986436a90 Error assigns to objects of rayQueryEXT type. 2020-03-30 10:24:30 -07:00
dan sinclair
d50acf97c4 Remove unused variables.
This CL removes two unused variables from the initialization code.
2020-03-30 10:03:13 -04:00
John Kessenich
344bd0889a
Merge pull request #2162 from ntfshard/small_fix
Humble fix
2020-03-30 00:33:09 -06:00
John Kessenich
83855b97db Fix #2163: improve comments for addProcess() and the preamble. 2020-03-30 00:27:31 -06:00
ntfs.hard
1dad92000b printf format 2020-03-30 01:48:15 +03:00
Neslisah Torosdagli
2b4d345dae accelerationStructureEXT - issue #2152 2020-03-26 19:32:52 -04:00
Neslisah Torosdagli
915f119199 accelerationStructureEXT - issue #2152 2020-03-26 18:51:18 -04:00
Neslisah Torosdagli
7d37a68ad7 pass-by-reference updates 2020-03-26 11:08:28 -04:00
Geoffrey Martin-Noble
9b3baf9881
Add missing braces to if condition
The indentation implies this was the intention. Noticed the issue while trying to compile our code with -Werror -Wall
2020-03-25 20:52:43 -07:00
John Kessenich
8e26c5f50e
Merge pull request #2139 from neslimsah/master
GL_EXT_ray_query updates
2020-03-25 08:18:33 -06:00
Neslisah Torosdagli
f0089e5499 copyright notice changes removed from unchanged files 2020-03-24 21:50:54 -04:00
Neslisah Torosdagli
7f48ec346c copyright notice changes removed from unchanged files 2020-03-24 12:22:27 -04:00
Neslisah Torosdagli
67c7bc4086 .travis updated to origin, rayQueryCheck removed 2020-03-24 10:24:50 -04:00
Neslisah Torosdagli
7f689bebec const rayFlag defs used in the test cases in stead of numerical values 2020-03-23 23:09:44 -04:00
Neslisah Torosdagli
ae64363b19 rayQueryEXT function parameter 2020-03-23 21:05:26 -04:00
Neslisah Torosdagli
964c7e4a5f rayQueryEXT assignment is allowed. 2020-03-23 20:25:52 -04:00
Kai Ninomiya
16bb8881e6 Fix build on CMake 2.8, and fix Web build
And suppress some warnings that are too verbose in Web builds.
2020-03-23 12:34:55 -07:00
Aaron Franke
c8274e941e
Make file formatting comply with POSIX and Unix standards
UTF-8, LF, no BOM, and newlines at the end of files
2020-03-21 03:20:25 -04:00
Neslisah Torosdagli
7d122c96a4 Merge branch 'master' of https://github.com/neslimsah/glslang 2020-03-20 18:35:57 -04:00
Neslisah Torosdagli
50a722818b GL_EXT_ray_query glslang updates, and test cases added. 2020-03-20 18:23:27 -04:00
Courtney Goeltzenleuchter
d42c6ab88e Fix MSVC build issue - remove invalid character
On Windows the single quote used in a comment was showing up as some
special character that the Microsoft compiler didn't like.

Bug #2140
2020-03-19 15:31:31 -06:00
Neslisah Torosdagli
34e874228e comment update, rayQueryEXT is writable, readonly check removed. 2020-03-19 16:53:42 -04:00
Torosdagli
6719ce09db GL_EXT_ray_query updates 2020-03-19 16:52:00 -04:00
Neslisah Torosdagli
120b3daa93 comment update, rayQueryEXT is writable, readonly check removed. 2020-03-19 16:46:30 -04:00
Torosdagli
06c2eee720 GL_EXT_ray_query updates 2020-03-19 16:46:30 -04:00
John Kessenich
3f7c957e0a Fix #2132: constant matrix constructor from single non-scalar argument 2020-03-19 16:46:30 -04:00
Neslisah Torosdagli
44e8e5560b comment update, rayQueryEXT is writable, readonly check removed. 2020-03-19 16:34:40 -04:00
Torosdagli
74d6d6a208 GL_EXT_ray_query updates 2020-03-19 11:09:57 -04:00
John Kessenich
3bf1dab23d
Merge pull request #2135 from alelenv/rt_shaderlang_enums
Re-add NV enums for raytracing to prevent build breaks.
2020-03-18 12:16:30 -06:00
alelenv
09a9f8353e Re-add NV enums for raytracing to prevent build breaks. 2020-03-18 09:30:05 -07:00
John Kessenich
8c21e0a250 Fix #2132: constant matrix constructor from single non-scalar argument 2020-03-18 10:27:59 -06:00
John Kessenich
4b420b4ffc Bump version (also fix line endings the grammar). 2020-03-18 08:35:40 -06:00
Daniel Koch
db32b243ff Add support for GLSL_EXT_ray_tracing
and SPV_KHR_ray_tracing
2020-03-17 20:42:47 -04:00
Jeff Bolz
40007b862d Forbid memoryBarrierAtomicCounter for Vulkan compiles 2020-03-16 23:53:04 -05:00
Malcolm Bechard
4b2483ee88
Fix #2005. Allow multiple compilation units to declare identical push_constant blocks (#2123)
* Fixes #2005

Allow multiple units in a stage to have push_constants as long
as the blocks match.
Requires #2006 to be fixed to be functional.

* tweaks to #2005 fix after some testing

* add unit tests for push constants across multiple compilation units

For #2005

* update reference output for tests that fail validation

* fix uninitialized result.validationResult
2020-03-16 08:51:15 -06:00
Chow
9b620aa0c1
Add flag to check whether offset is implicit or explicit (#2031)
When we use unsized array in shader storage buffer, glslang calculate the offset during delcaring the block, it may lead to incorrect block offsets when its implicit array size changed.

So here is what we do:
1. For GLSL, we add flag explicitOffset in TQualifier, and set it when layout offset is specified explicitly
2. By using this flag we could tell difference as whether it is an explicit offset, and recalculate the block member offset conditionally in OpenGL.
2020-03-11 03:59:25 -06:00
Jeff Bolz
ad3f10bbd0 EXT_debug_printf - make escape sequences better match C/C++ 2020-03-10 10:23:07 -05:00
John Kessenich
dbb56a1d48
Merge pull request #2105 from jeffbolznv/nonunif
Allow nonuniformEXT() on sampler types
2020-03-10 03:50:27 -06:00
Jeff Bolz
13444545a9 disable escape sequences for #line and #error 2020-03-09 21:09:18 -05:00
Jeff Bolz
39ffdaf2ab Allow nonuniformEXT() on sampler types.
Also add missing NonUniformEXT decoration on OpImageTexelPointer.
2020-03-09 10:48:12 -05:00
John Kessenich
f333272eb5
Merge pull request #2103 from kainino0x/web-cmake-typo
Fix typo in Web CMakeLists
2020-03-09 02:03:02 -06:00
John Kessenich
6861ea4e10
Merge pull request #2101 from travisfoo/master
add c wrapper for standalone ResourceLimits and remove that dependency from glslang_c_interface
2020-03-09 01:53:41 -06:00