platform/upstream/glslang.git
4 years agoError assigns to objects of rayQueryEXT type.
alelenv [Mon, 30 Mar 2020 17:24:30 +0000 (10:24 -0700)]
Error assigns to objects of rayQueryEXT type.

4 years agoMerge pull request #2164 from dj2/unused
John Kessenich [Mon, 30 Mar 2020 14:35:39 +0000 (08:35 -0600)]
Merge pull request #2164 from dj2/unused

Remove unused variables.

4 years agoRemove unused variables.
dan sinclair [Mon, 30 Mar 2020 14:03:11 +0000 (10:03 -0400)]
Remove unused variables.

This CL removes two unused variables from the initialization code.

4 years agoMerge pull request #2162 from ntfshard/small_fix
John Kessenich [Mon, 30 Mar 2020 06:33:09 +0000 (00:33 -0600)]
Merge pull request #2162 from ntfshard/small_fix

Humble fix

4 years agoFix #2163: improve comments for addProcess() and the preamble.
John Kessenich [Mon, 30 Mar 2020 06:27:31 +0000 (00:27 -0600)]
Fix #2163: improve comments for addProcess() and the preamble.

4 years agoprintf format
ntfs.hard [Sun, 29 Mar 2020 22:48:15 +0000 (01:48 +0300)]
printf format

4 years agounused var
ntfs.hard [Sun, 29 Mar 2020 22:38:21 +0000 (01:38 +0300)]
unused var

4 years agobitwise on boolean
ntfs.hard [Sun, 29 Mar 2020 22:32:23 +0000 (01:32 +0300)]
bitwise on boolean

4 years agoopposite inner condition
ntfs.hard [Sun, 29 Mar 2020 21:55:49 +0000 (00:55 +0300)]
opposite inner condition

4 years agoMerge pull request #2160 from greg-lunarg/kg110
John Kessenich [Sat, 28 Mar 2020 04:28:15 +0000 (22:28 -0600)]
Merge pull request #2160 from greg-lunarg/kg110

Update spirv-tools known_good to latest stable

4 years agoUpdate spirv-tools known_good to latest stable
Greg Fischer [Fri, 27 Mar 2020 17:34:45 +0000 (11:34 -0600)]
Update spirv-tools known_good to latest stable

4 years agoMerge pull request #2159 from neslimsah/master
John Kessenich [Fri, 27 Mar 2020 14:23:46 +0000 (08:23 -0600)]
Merge pull request #2159 from neslimsah/master

GL_EXT_ray_query accelerationStructureEXT

4 years agoMerge pull request #2157 from neslimsah/master
John Kessenich [Fri, 27 Mar 2020 01:46:35 +0000 (19:46 -0600)]
Merge pull request #2157 from neslimsah/master

GL_EXT_ray_query pass-by-reference issues

4 years agoaccelerationStructureEXT - issue #2152
Neslisah Torosdagli [Thu, 26 Mar 2020 23:32:52 +0000 (19:32 -0400)]
accelerationStructureEXT - issue #2152

4 years agoaccelerationStructureEXT - issue #2152
Neslisah Torosdagli [Thu, 26 Mar 2020 22:51:18 +0000 (18:51 -0400)]
accelerationStructureEXT - issue #2152

4 years agopass by reference updates
Neslisah Torosdagli [Thu, 26 Mar 2020 16:24:31 +0000 (12:24 -0400)]
pass by reference updates

4 years agoMerge branch 'master' of https://github.com/neslimsah/glslang
Neslisah Torosdagli [Thu, 26 Mar 2020 15:08:54 +0000 (11:08 -0400)]
Merge branch 'master' of https://github.com/neslimsah/glslang

4 years agopass-by-reference updates
Neslisah Torosdagli [Thu, 26 Mar 2020 14:52:33 +0000 (10:52 -0400)]
pass-by-reference updates

4 years agoMerge pull request #1 from KhronosGroup/master
Neslisah Torosdagli [Thu, 26 Mar 2020 15:06:00 +0000 (11:06 -0400)]
Merge pull request #1 from KhronosGroup/master

sync to KhronosGroup/glslang

4 years agoMerge pull request #2154 from GMNGeoffrey/patch-1
John Kessenich [Thu, 26 Mar 2020 06:18:25 +0000 (00:18 -0600)]
Merge pull request #2154 from GMNGeoffrey/patch-1

Add missing braces to if condition

4 years agoAdd missing braces to if condition
Geoffrey Martin-Noble [Thu, 26 Mar 2020 03:52:43 +0000 (20:52 -0700)]
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

4 years agoMerge pull request #2139 from neslimsah/master
John Kessenich [Wed, 25 Mar 2020 14:18:33 +0000 (08:18 -0600)]
Merge pull request #2139 from neslimsah/master

GL_EXT_ray_query updates

4 years agoswitch format update
Neslisah Torosdagli [Wed, 25 Mar 2020 12:13:32 +0000 (08:13 -0400)]
switch format update

4 years agoMerge branch 'master' of https://github.com/neslimsah/glslang
Neslisah Torosdagli [Wed, 25 Mar 2020 01:51:11 +0000 (21:51 -0400)]
Merge branch 'master' of https://github.com/neslimsah/glslang

4 years agocopyright notice changes removed from unchanged files
Neslisah Torosdagli [Wed, 25 Mar 2020 00:39:34 +0000 (20:39 -0400)]
copyright notice changes removed from unchanged files

4 years agocopyright notice changes removed from unchanged files
Neslisah Torosdagli [Wed, 25 Mar 2020 00:39:34 +0000 (20:39 -0400)]
copyright notice changes removed from unchanged files

4 years agocopyright notice changes removed from unchanged files
Neslisah Torosdagli [Tue, 24 Mar 2020 16:22:27 +0000 (12:22 -0400)]
copyright notice changes removed from unchanged files

4 years agospirv.hpp reverted to commit f368dcbb7d8af23f0cba3015d0f4dda9dc3aa66d
Neslisah Torosdagli [Tue, 24 Mar 2020 16:02:20 +0000 (12:02 -0400)]
spirv.hpp reverted to commit f368dcbb7d8af23f0cba3015d0f4dda9dc3aa66d

4 years ago.travis updated to origin, rayQueryCheck removed
Neslisah Torosdagli [Tue, 24 Mar 2020 14:24:50 +0000 (10:24 -0400)]
.travis updated to origin, rayQueryCheck removed

4 years agoMerge pull request #2149 from kainino0x/web-fix-cmake2.8
John Kessenich [Tue, 24 Mar 2020 10:18:51 +0000 (04:18 -0600)]
Merge pull request #2149 from kainino0x/web-fix-cmake2.8

Fix build on CMake 2.8, and fix Web build

4 years agoconst rayFlag defs used in the test cases in stead of numerical values
Neslisah Torosdagli [Tue, 24 Mar 2020 03:09:44 +0000 (23:09 -0400)]
const rayFlag defs used in the test cases in stead of numerical values

4 years agocompute and fragment shader test_cases added for rayQuery
Neslisah Torosdagli [Tue, 24 Mar 2020 01:56:21 +0000 (21:56 -0400)]
compute and fragment shader test_cases added for rayQuery

4 years agorayQuery test cases added
Neslisah Torosdagli [Tue, 24 Mar 2020 01:34:09 +0000 (21:34 -0400)]
rayQuery test cases added

4 years agorayQueryEXT function parameter
Neslisah Torosdagli [Tue, 24 Mar 2020 01:05:26 +0000 (21:05 -0400)]
rayQueryEXT function parameter

4 years agorayQueryEXT assignment is allowed.
Neslisah Torosdagli [Tue, 24 Mar 2020 00:25:52 +0000 (20:25 -0400)]
rayQueryEXT assignment is allowed.

4 years agotest names updated
Neslisah Torosdagli [Mon, 23 Mar 2020 23:20:24 +0000 (19:20 -0400)]
test names updated

4 years agoupdate README
Kai Ninomiya [Mon, 23 Mar 2020 19:50:33 +0000 (12:50 -0700)]
update README

4 years agoFix build on CMake 2.8, and fix Web build
Kai Ninomiya [Mon, 23 Mar 2020 19:26:53 +0000 (12:26 -0700)]
Fix build on CMake 2.8, and fix Web build

And suppress some warnings that are too verbose in Web builds.

4 years agowait time increased for the install
Neslisah Torosdagli [Mon, 23 Mar 2020 17:49:16 +0000 (13:49 -0400)]
wait time increased for the install

4 years agorayQuery test cases disabled
Neslisah Torosdagli [Mon, 23 Mar 2020 15:36:06 +0000 (11:36 -0400)]
rayQuery test cases disabled

4 years agoMerge pull request #2146 from aaronfranke/file-formatting
John Kessenich [Sat, 21 Mar 2020 08:45:39 +0000 (02:45 -0600)]
Merge pull request #2146 from aaronfranke/file-formatting

Make file formatting comply with POSIX and Unix standards

4 years agoMake file formatting comply with POSIX and Unix standards
Aaron Franke [Sat, 21 Mar 2020 07:20:25 +0000 (03:20 -0400)]
Make file formatting comply with POSIX and Unix standards

UTF-8, LF, no BOM, and newlines at the end of files

4 years agoMerge branch 'master' of https://github.com/neslimsah/glslang
Neslisah Torosdagli [Fri, 20 Mar 2020 22:35:57 +0000 (18:35 -0400)]
Merge branch 'master' of https://github.com/neslimsah/glslang

4 years agoGL_EXT_ray_query glslang updates, and test cases added.
Neslisah Torosdagli [Fri, 20 Mar 2020 22:23:27 +0000 (18:23 -0400)]
GL_EXT_ray_query glslang updates, and test cases added.

4 years agoMerge pull request #2141 from courtney-g/bug_2140
John Kessenich [Fri, 20 Mar 2020 05:05:41 +0000 (23:05 -0600)]
Merge pull request #2141 from courtney-g/bug_2140

Fix MSVC build issue - remove invalid character

4 years agoFix MSVC build issue - remove invalid character
Courtney Goeltzenleuchter [Thu, 19 Mar 2020 21:31:31 +0000 (15:31 -0600)]
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

4 years agocomment update, rayQueryEXT is writable, readonly check removed.
Neslisah Torosdagli [Thu, 19 Mar 2020 20:34:40 +0000 (16:34 -0400)]
comment update, rayQueryEXT is writable, readonly check removed.

4 years agoGL_EXT_ray_query updates
Torosdagli [Thu, 19 Mar 2020 15:09:57 +0000 (11:09 -0400)]
GL_EXT_ray_query updates

4 years agoFix #2132: constant matrix constructor from single non-scalar argument
John Kessenich [Wed, 18 Mar 2020 16:27:59 +0000 (10:27 -0600)]
Fix #2132: constant matrix constructor from single non-scalar argument

4 years agocomment update, rayQueryEXT is writable, readonly check removed.
Neslisah Torosdagli [Thu, 19 Mar 2020 20:34:40 +0000 (16:34 -0400)]
comment update, rayQueryEXT is writable, readonly check removed.

4 years agoGL_EXT_ray_query updates
Torosdagli [Thu, 19 Mar 2020 15:09:57 +0000 (11:09 -0400)]
GL_EXT_ray_query updates

4 years agoFix #2132: constant matrix constructor from single non-scalar argument
John Kessenich [Wed, 18 Mar 2020 16:27:59 +0000 (10:27 -0600)]
Fix #2132: constant matrix constructor from single non-scalar argument

4 years agocomment update, rayQueryEXT is writable, readonly check removed.
Neslisah Torosdagli [Thu, 19 Mar 2020 20:34:40 +0000 (16:34 -0400)]
comment update, rayQueryEXT is writable, readonly check removed.

4 years agoGL_EXT_ray_query updates
Neslisah Torosdagli [Thu, 19 Mar 2020 20:26:40 +0000 (16:26 -0400)]
GL_EXT_ray_query updates

4 years agoGL_EXT_ray_query updates
Torosdagli [Thu, 19 Mar 2020 15:09:57 +0000 (11:09 -0400)]
GL_EXT_ray_query updates

4 years agoMerge pull request #2135 from alelenv/rt_shaderlang_enums
John Kessenich [Wed, 18 Mar 2020 18:16:30 +0000 (12:16 -0600)]
Merge pull request #2135 from alelenv/rt_shaderlang_enums

Re-add NV enums for raytracing to prevent build breaks.

4 years agoRe-add NV enums for raytracing to prevent build breaks.
alelenv [Wed, 18 Mar 2020 16:30:05 +0000 (09:30 -0700)]
Re-add NV enums for raytracing to prevent build breaks.

4 years agoFix #2132: constant matrix constructor from single non-scalar argument
John Kessenich [Wed, 18 Mar 2020 16:27:59 +0000 (10:27 -0600)]
Fix #2132: constant matrix constructor from single non-scalar argument

4 years agoBump version (also fix line endings the grammar).
John Kessenich [Wed, 18 Mar 2020 14:35:40 +0000 (08:35 -0600)]
Bump version (also fix line endings the grammar).

4 years agoMerge pull request #2130 from dgkoch/EXT_ray_tracing
John Kessenich [Wed, 18 Mar 2020 04:14:21 +0000 (22:14 -0600)]
Merge pull request #2130 from dgkoch/EXT_ray_tracing

Add support for GLSL_EXT_ray_tracing

4 years agoupdate known_good
Daniel Koch [Tue, 17 Mar 2020 23:51:11 +0000 (19:51 -0400)]
update known_good

4 years agoAdd support for GLSL_EXT_ray_tracing
Daniel Koch [Wed, 18 Mar 2020 00:42:47 +0000 (20:42 -0400)]
Add support for GLSL_EXT_ray_tracing

and SPV_KHR_ray_tracing

4 years agoSPV headers: Bump up to the latest header.
John Kessenich [Tue, 17 Mar 2020 14:00:41 +0000 (08:00 -0600)]
SPV headers: Bump up to the latest header.

This contains the base for ray tracing extensions.

4 years agoMerge pull request #2129 from jeffbolznv/memoryBarrierAtomicCounter
John Kessenich [Tue, 17 Mar 2020 07:05:35 +0000 (01:05 -0600)]
Merge pull request #2129 from jeffbolznv/memoryBarrierAtomicCounter

Forbid memoryBarrierAtomicCounter for Vulkan compiles

4 years agoForbid memoryBarrierAtomicCounter for Vulkan compiles
Jeff Bolz [Tue, 17 Mar 2020 04:53:04 +0000 (23:53 -0500)]
Forbid memoryBarrierAtomicCounter for Vulkan compiles

4 years agoFix #2005. Allow multiple compilation units to declare identical push_constant blocks...
Malcolm Bechard [Mon, 16 Mar 2020 14:51:15 +0000 (10:51 -0400)]
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

4 years agoAdd flag to check whether offset is implicit or explicit (#2031)
Chow [Wed, 11 Mar 2020 09:59:25 +0000 (17:59 +0800)]
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.

4 years agoUse strcmp for all of the extended instruction set checks in the disassembler (#2107)
Ryan Harrison [Wed, 11 Mar 2020 07:00:13 +0000 (03:00 -0400)]
Use strcmp for all of the extended instruction set checks in the disassembler (#2107)

Fixes #2106

* Convert memcmps to strcmps

4 years agoMerge pull request #2110 from jeffbolznv/escapeseq
John Kessenich [Wed, 11 Mar 2020 05:55:48 +0000 (23:55 -0600)]
Merge pull request #2110 from jeffbolznv/escapeseq

EXT_debug_printf - make escape sequences better match C/C++

4 years agoEXT_debug_printf - make escape sequences better match C/C++
Jeff Bolz [Tue, 10 Mar 2020 15:23:07 +0000 (10:23 -0500)]
EXT_debug_printf - make escape sequences better match C/C++

4 years agoMerge pull request #2105 from jeffbolznv/nonunif
John Kessenich [Tue, 10 Mar 2020 09:50:27 +0000 (03:50 -0600)]
Merge pull request #2105 from jeffbolznv/nonunif

Allow nonuniformEXT() on sampler types

4 years agoMerge pull request #2109 from jeffbolznv/disable_escape
John Kessenich [Tue, 10 Mar 2020 04:53:51 +0000 (22:53 -0600)]
Merge pull request #2109 from jeffbolznv/disable_escape

disable escape sequences for #line and #error

4 years agodisable escape sequences for #line and #error
Jeff Bolz [Tue, 10 Mar 2020 02:09:18 +0000 (21:09 -0500)]
disable escape sequences for #line and #error

4 years agoDecorate accesschain operand for nonuniform UBO loads
Jeff Bolz [Mon, 9 Mar 2020 16:31:15 +0000 (11:31 -0500)]
Decorate accesschain operand for nonuniform UBO loads

This is conservative and still also decorates the loaded value.

4 years agoAllow nonuniformEXT() on sampler types.
Jeff Bolz [Mon, 9 Mar 2020 15:48:12 +0000 (10:48 -0500)]
Allow nonuniformEXT() on sampler types.

Also add missing NonUniformEXT decoration on OpImageTexelPointer.

4 years agoMerge pull request #2103 from kainino0x/web-cmake-typo
John Kessenich [Mon, 9 Mar 2020 08:03:02 +0000 (02:03 -0600)]
Merge pull request #2103 from kainino0x/web-cmake-typo

Fix typo in Web CMakeLists

4 years agoMerge pull request #2102 from sfricke-samsung/sfricke-samsung-android-build
John Kessenich [Mon, 9 Mar 2020 07:54:39 +0000 (01:54 -0600)]
Merge pull request #2102 from sfricke-samsung/sfricke-samsung-android-build

Add Android build instructions to README

4 years agoMerge pull request #2101 from travisfoo/master
John Kessenich [Mon, 9 Mar 2020 07:53:41 +0000 (01:53 -0600)]
Merge pull request #2101 from travisfoo/master

add c wrapper for standalone ResourceLimits and remove that dependency from glslang_c_interface

4 years agoFix typo in Web CMakeLists
Kai Ninomiya [Sat, 7 Mar 2020 03:13:16 +0000 (19:13 -0800)]
Fix typo in Web CMakeLists

4 years agoadd missing string.h header for resource_limits_c.cpp
Travis Fort [Fri, 6 Mar 2020 15:31:14 +0000 (10:31 -0500)]
add missing string.h header for resource_limits_c.cpp

4 years agoadd c wrapper for standalone ResourceLimits and remove that dependency from glslang_c...
Travis Fort [Fri, 6 Mar 2020 15:06:47 +0000 (10:06 -0500)]
add c wrapper for standalone ResourceLimits and remove that dependency from glslang_c_interface

4 years agoMerge pull request #2100 from travisfoo/master
John Kessenich [Fri, 6 Mar 2020 07:14:41 +0000 (00:14 -0700)]
Merge pull request #2100 from travisfoo/master

Fix for #2099: add c interface support for TBuiltInResource and glslang::DefaultTBuiltInResource

4 years agoMerge pull request #2098 from jeffbolznv/debugprintf
John Kessenich [Fri, 6 Mar 2020 07:12:27 +0000 (00:12 -0700)]
Merge pull request #2098 from jeffbolznv/debugprintf

GL_EXT_debug_printf implementation

4 years agoadd stdbool.h to properly support bool type
Travis Fort [Fri, 6 Mar 2020 01:49:49 +0000 (20:49 -0500)]
add stdbool.h to properly support bool type

4 years agoadd c interface support for TBuiltInResource and glslang::DefaultTBuiltInResource
Travis Fort [Thu, 5 Mar 2020 21:05:07 +0000 (16:05 -0500)]
add c interface support for TBuiltInResource and glslang::DefaultTBuiltInResource

4 years agoGL_EXT_debug_printf implementation
Jeff Bolz [Fri, 31 May 2019 18:06:01 +0000 (13:06 -0500)]
GL_EXT_debug_printf implementation

4 years agoAdd Android build instructions to README
Spencer Fricke [Wed, 4 Mar 2020 23:33:59 +0000 (15:33 -0800)]
Add Android build instructions to README

4 years agoImprove formatting.
John Kessenich [Wed, 4 Mar 2020 07:15:20 +0000 (00:15 -0700)]
Improve formatting.

4 years agoAdd "news" section and component status.
John Kessenich [Wed, 4 Mar 2020 07:07:50 +0000 (00:07 -0700)]
Add "news" section and component status.

Includes an additional deprecation and rationalizing the beginning sections.

4 years agoFix long lines in the SPIR-V generator, retrigger bots.
John Kessenich [Tue, 3 Mar 2020 17:25:07 +0000 (10:25 -0700)]
Fix long lines in the SPIR-V generator, retrigger bots.

4 years agoFix #1843: Handle built-in function output parameters to a swizzled arg
John Kessenich [Tue, 3 Mar 2020 14:21:37 +0000 (07:21 -0700)]
Fix #1843: Handle built-in function output parameters to a swizzled arg

In GLSL/HLSL/AST,  v.zyx is an l-value, but not in SPIR-V, which cannot represent it.
So, a temporary is used instead.

4 years agoCopyright update, mostly to trigger bots again.
John Kessenich [Sun, 1 Mar 2020 11:51:40 +0000 (04:51 -0700)]
Copyright update, mostly to trigger bots again.

4 years agoFix #2095: correct the indentation.
John Kessenich [Sun, 1 Mar 2020 09:16:51 +0000 (02:16 -0700)]
Fix #2095: correct the indentation.

This also made it obvious some code was (functionally correctly)
repeated, so deleted that too.

4 years agoFix #1461: set the SPIRV-Tools' optimizer's target environment.
John Kessenich [Fri, 28 Feb 2020 14:10:59 +0000 (07:10 -0700)]
Fix #1461: set the SPIRV-Tools' optimizer's target environment.

4 years agoFix #2091, remove incorrect assert for division by 0.0.
John Kessenich [Fri, 28 Feb 2020 11:09:29 +0000 (04:09 -0700)]
Fix #2091, remove incorrect assert for division by 0.0.

4 years agoMerge pull request #2093 from LilyWangL/vcpkg-instructions
John Kessenich [Fri, 28 Feb 2020 08:01:47 +0000 (01:01 -0700)]
Merge pull request #2093 from LilyWangL/vcpkg-instructions

Add vcpkg installation instructions

4 years agoMerge pull request #2092 from corporateshark/master
John Kessenich [Fri, 28 Feb 2020 07:26:33 +0000 (00:26 -0700)]
Merge pull request #2092 from corporateshark/master

Fix for #2075: removed DefaultTBuiltInResource from glslang_c_interface.cpp

4 years agoAdd vcpkg installation instructions
wangli28 [Fri, 28 Feb 2020 06:41:18 +0000 (06:41 +0000)]
Add vcpkg installation instructions

4 years agoFix for #2075: removed DefaultTBuiltInResource from glslang_c_interface.cpp
Sergey Kosarevsky [Thu, 27 Feb 2020 23:18:37 +0000 (02:18 +0300)]
Fix for #2075: removed DefaultTBuiltInResource from glslang_c_interface.cpp

4 years agoMerge pull request #2090 from amdrexu/bugfix
John Kessenich [Sat, 22 Feb 2020 14:52:12 +0000 (07:52 -0700)]
Merge pull request #2090 from amdrexu/bugfix

Fix an issue of SPV generation for imageAtomicStore.