platform/upstream/glslang.git
3 years agoMerge pull request #2641 from tgfrerer/fix_hlsl_function_error_msg
Greg Fischer [Tue, 11 May 2021 19:50:53 +0000 (13:50 -0600)]
Merge pull request #2641 from tgfrerer/fix_hlsl_function_error_msg

fix error message for hlslGrammar::acceptConstructor

3 years agoMerge pull request #2634 from xantares/patch-1
Greg Fischer [Tue, 11 May 2021 16:10:34 +0000 (10:10 -0600)]
Merge pull request #2634 from xantares/patch-1

Dont export inline TObjectReflection::getType()

3 years agofix error message for hlslGrammar::acceptConstructor
tgfrerer [Tue, 11 May 2021 08:42:11 +0000 (09:42 +0100)]
fix error message for hlslGrammar::acceptConstructor

Fix the error message for when an erroneous HLSL constructor statement
is detected.

Prior to this change, such error messages would not show correct file
path and line number information.

Additionally, update test data to account for updated error messages.

3 years agoDont export inline TObjectReflection::getType()
xantares [Sat, 8 May 2021 08:37:37 +0000 (10:37 +0200)]
Dont export inline TObjectReflection::getType()

Fixes mingw build
Closes #2460

3 years agoMerge pull request #2632 from greg-lunarg/karl0
Greg Fischer [Fri, 7 May 2021 16:09:17 +0000 (10:09 -0600)]
Merge pull request #2632 from greg-lunarg/karl0

Fix arrays dimensioned with spec constant sized gl_WorkGroupSize

3 years agoFix arrays dimensioned with spec constant sized gl_WorkGroupSize
Greg Fischer [Fri, 7 May 2021 00:01:20 +0000 (18:01 -0600)]
Fix arrays dimensioned with spec constant sized gl_WorkGroupSize

3 years agoMerge pull request #2631 from godlikepanos/master
Greg Fischer [Mon, 3 May 2021 20:29:52 +0000 (14:29 -0600)]
Merge pull request #2631 from godlikepanos/master

Add support for 64bit integer types and 64bit integer vector types to bitCount() builtin

3 years agoMerge pull request #2629 from okuoku/silence-cygwin-warning
Greg Fischer [Mon, 3 May 2021 20:10:53 +0000 (14:10 -0600)]
Merge pull request #2629 from okuoku/silence-cygwin-warning

Set CMake policy CMP0054 to NEW to silence warning

3 years agoAdd support for 64bit integer types and 64bit integer vector types to bitCount()...
Panagiotis Christopoulos Charitos [Mon, 3 May 2021 12:26:11 +0000 (14:26 +0200)]
Add support for 64bit integer types and 64bit integer vector types to bitCount() builtin.

Fixes #2630

3 years agoSet CMake policy CMP0054 to NEW to silence warning
okuoku [Sat, 1 May 2021 18:47:00 +0000 (03:47 +0900)]
Set CMake policy CMP0054 to NEW to silence warning

CMAKE_SYSTEM_NAME variable might evaluate to existing variable such as
CYGWIN. This setting also matches with SPIRV-Tools.

3 years agoMerge pull request #2621 from Rob2309/auto-sampled-textures-tests
Greg Fischer [Tue, 27 Apr 2021 17:36:07 +0000 (11:36 -0600)]
Merge pull request #2621 from Rob2309/auto-sampled-textures-tests

Added usage hint for --auto-sampled-textures and added test cases

3 years agoImproved usage hint
Robin Quint [Tue, 27 Apr 2021 14:06:06 +0000 (16:06 +0200)]
Improved usage hint

3 years agoMerge pull request #2624 from greg-lunarg/v011004000 upstream/11.4.0
Greg Fischer [Fri, 23 Apr 2021 08:16:52 +0000 (02:16 -0600)]
Merge pull request #2624 from greg-lunarg/v011004000

Update CHANGES for 11.4.0

3 years agoUpdate CHANGES for 11.4.0
Greg Fischer [Fri, 23 Apr 2021 00:09:42 +0000 (18:09 -0600)]
Update CHANGES for 11.4.0

3 years agoMerge pull request #2623 from greg-lunarg/except
Greg Fischer [Fri, 23 Apr 2021 00:03:36 +0000 (18:03 -0600)]
Merge pull request #2623 from greg-lunarg/except

Fix CMakeLists.txt to keep compatibility with CMake 3.10.2

3 years agoFix CMakeLists.txt to keep compatibility with CMake 3.10.2
Greg Fischer [Thu, 22 Apr 2021 22:30:17 +0000 (16:30 -0600)]
Fix CMakeLists.txt to keep compatibility with CMake 3.10.2

3 years agoAdded usage hint for --auto-sampled-textures, added test cases
Robin Quint [Thu, 22 Apr 2021 11:13:38 +0000 (13:13 +0200)]
Added usage hint for --auto-sampled-textures, added test cases

3 years agoMerge pull request #2620 from greg-lunarg/v011003000
Greg Fischer [Thu, 22 Apr 2021 04:58:39 +0000 (22:58 -0600)]
Merge pull request #2620 from greg-lunarg/v011003000

Update CHANGES for 11.3.0

3 years agoMerge pull request #2619 from greg-lunarg/kg117
Greg Fischer [Thu, 22 Apr 2021 04:57:06 +0000 (22:57 -0600)]
Merge pull request #2619 from greg-lunarg/kg117

Update spirv-tools and spirv-headers known good

3 years agoUpdate CHANGES for 11.3.0
Greg Fischer [Thu, 22 Apr 2021 00:42:12 +0000 (18:42 -0600)]
Update CHANGES for 11.3.0

3 years agoUpdate spirv-tools and spirv-headers known good
Greg Fischer [Thu, 22 Apr 2021 00:33:46 +0000 (18:33 -0600)]
Update spirv-tools and spirv-headers known good

3 years agoMerge pull request #2616 from Rob2309/standalone-hlsl-sampled-textures
Greg Fischer [Thu, 22 Apr 2021 00:17:42 +0000 (18:17 -0600)]
Merge pull request #2616 from Rob2309/standalone-hlsl-sampled-textures

Exposed #856 as --hlsl-sampled-textures in the StandAlone

3 years agoChange --hlsl-sampled-textures to --auto-sampled-textures
Greg Fischer [Wed, 21 Apr 2021 22:49:53 +0000 (16:49 -0600)]
Change --hlsl-sampled-textures to --auto-sampled-textures

3 years agoMerge pull request #2618 from DadSchoorse/depfile
Greg Fischer [Wed, 21 Apr 2021 17:47:00 +0000 (11:47 -0600)]
Merge pull request #2618 from DadSchoorse/depfile

Add a --depfile option in Standalone mode

3 years agoAdd some basic --depfile tests
Georg Lehmann [Tue, 20 Apr 2021 16:12:39 +0000 (18:12 +0200)]
Add some basic --depfile tests

3 years agoAdd a --depfile option.
Georg Lehmann [Mon, 19 Apr 2021 22:22:15 +0000 (00:22 +0200)]
Add a --depfile option.

The output is similar to gcc -MMD and can be used by build systems
like meson to automatically recompile shaders if an included header
was changed.

3 years agoExposed #856 as --hlsl-sampled-textures in the StandAlone
Robin Quint [Tue, 20 Apr 2021 05:58:36 +0000 (07:58 +0200)]
Exposed #856 as --hlsl-sampled-textures in the StandAlone

3 years agoMerge pull request #2609 from ZhiqianXia/Feature2
Greg Fischer [Mon, 19 Apr 2021 18:03:05 +0000 (12:03 -0600)]
Merge pull request #2609 from ZhiqianXia/Feature2

TextureOffset not support sampler2DArrayShadow sampler until 430.

3 years agoMerge pull request #2614 from ZaOniRinku/master
Greg Fischer [Mon, 19 Apr 2021 17:03:39 +0000 (11:03 -0600)]
Merge pull request #2614 from ZaOniRinku/master

Typo in ShaderLang.h

3 years agoFix and enable textureOffset_samper2darrayshadow test
Greg Fischer [Sat, 17 Apr 2021 00:52:51 +0000 (18:52 -0600)]
Fix and enable textureOffset_samper2darrayshadow test

3 years agoFix typo in ShaderLang.h
ZaOniRinku [Mon, 19 Apr 2021 07:15:36 +0000 (09:15 +0200)]
Fix typo in ShaderLang.h

3 years agoMerge pull request #2612 from greg-lunarg/explicit0
Greg Fischer [Fri, 16 Apr 2021 23:42:16 +0000 (17:42 -0600)]
Merge pull request #2612 from greg-lunarg/explicit0

Fix builtins for GL_EXT_shader_explicit_arithmetic_types for es

3 years agoAdd missing builtins for GL_EXT_explicit_arithmetic_types for es
Greg Fischer [Fri, 16 Apr 2021 06:07:08 +0000 (00:07 -0600)]
Add missing builtins for GL_EXT_explicit_arithmetic_types for es

3 years agoTextureOffset not support sampler2DArrayShadow sampler until 430.
ZhiqianXia [Thu, 15 Apr 2021 13:38:35 +0000 (21:38 +0800)]
TextureOffset not support sampler2DArrayShadow sampler until 430.

Signed-off-by: ZhiqianXia <xzq0528@outlook.com>
3 years agoMerge pull request #2602 from jeremy-lunarg/hayes-2514
Greg Fischer [Wed, 14 Apr 2021 22:24:38 +0000 (16:24 -0600)]
Merge pull request #2602 from jeremy-lunarg/hayes-2514

Issue error when declaration rule fails

3 years agoMerge pull request #2522 from dneto0/intlog2
Greg Fischer [Wed, 14 Apr 2021 21:16:04 +0000 (15:16 -0600)]
Merge pull request #2522 from dneto0/intlog2

Add IntLog2 and use it

3 years agoAdd IntLog2 and use it
David Neto [Wed, 3 Feb 2021 18:56:06 +0000 (13:56 -0500)]
Add IntLog2 and use it

Replace uses of floating point log2 when we want an integer result from
an integer operand.  This avoids concerns about accuracy of floating
point library functions.

3 years agoMerge pull request #2606 from greg-lunarg/semifix0
Greg Fischer [Tue, 13 Apr 2021 16:16:50 +0000 (10:16 -0600)]
Merge pull request #2606 from greg-lunarg/semifix0

Get rid of extra semicolon causing gcc 10.3 troubles.

3 years agoGet rid of extra semicolon causing gcc 10.3 troubles.
Greg Fischer [Tue, 13 Apr 2021 00:12:58 +0000 (18:12 -0600)]
Get rid of extra semicolon causing gcc 10.3 troubles.

3 years agoMerge pull request #2601 from masterleming/always-install-resource-limits
Greg Fischer [Mon, 12 Apr 2021 23:04:48 +0000 (17:04 -0600)]
Merge pull request #2601 from masterleming/always-install-resource-limits

Removed condition for glslang-default-resource-limits instalation.

3 years agoMerge pull request #2603 from jeremy-lunarg/hayes-fix-key-whitespace
Greg Fischer [Mon, 12 Apr 2021 21:14:42 +0000 (15:14 -0600)]
Merge pull request #2603 from jeremy-lunarg/hayes-fix-key-whitespace

Fix table key and whitespace

3 years agoFix table key and whitespace
Jeremy Hayes [Fri, 9 Apr 2021 23:00:40 +0000 (17:00 -0600)]
Fix table key and whitespace

These got lost in the wash with my last revert but are still relevant.

3 years agoIssue error when declaration rule fails
Jeremy Hayes [Fri, 9 Apr 2021 22:37:20 +0000 (16:37 -0600)]
Issue error when declaration rule fails

Fix #2514.

3 years agoFixed CMake configuration for resource-limits library.
Krzysztof Pilch [Fri, 9 Apr 2021 14:20:01 +0000 (16:20 +0200)]
Fixed CMake configuration for resource-limits library.

3 years agoMerge pull request #2600 from Drigax/add-tinterim-selection-condition-setter
Greg Fischer [Thu, 8 Apr 2021 18:35:06 +0000 (12:35 -0600)]
Merge pull request #2600 from Drigax/add-tinterim-selection-condition-setter

Add setter for TInterimSelection.condition

3 years agoAdd setter for TInterimSelection.condition
Nicholas Barlow [Wed, 7 Apr 2021 23:08:17 +0000 (16:08 -0700)]
Add setter for TInterimSelection.condition

3 years agoRemoved condition for glslang-default-resource-limits instalation.
Krzysztof Pilch [Thu, 8 Apr 2021 14:33:29 +0000 (16:33 +0200)]
Removed condition for glslang-default-resource-limits instalation.

This way the limits are available to clients that links statically.

3 years agoMerge pull request #2599 from KhronosGroup/revert-2593-hayes-update-min-spv-requirement
Greg Fischer [Thu, 8 Apr 2021 14:25:23 +0000 (08:25 -0600)]
Merge pull request #2599 from KhronosGroup/revert-2593-hayes-update-min-spv-requirement

Revert "Update minimum SPIR-V requirement for GL_EXT_buffer_reference"

3 years agoRevert "Update minimum SPIR-V requirement for GL_EXT_buffer_reference"
Greg Fischer [Wed, 7 Apr 2021 21:20:16 +0000 (15:20 -0600)]
Revert "Update minimum SPIR-V requirement for GL_EXT_buffer_reference"

3 years agoMerge pull request #2598 from greg-lunarg/noprop1
Greg Fischer [Wed, 7 Apr 2021 00:04:50 +0000 (18:04 -0600)]
Merge pull request #2598 from greg-lunarg/noprop1

Do not propagate packing qualifiers to scalars or vectors

3 years agoDo not propagate packing qualifiers to scalars or vectors
Greg Fischer [Mon, 5 Apr 2021 22:49:42 +0000 (16:49 -0600)]
Do not propagate packing qualifiers to scalars or vectors

Packing qualifiers have no practical effect on scalars or vectors
so this is unnecessary and its confusing tools downstream that
consume the AST.

3 years agoMerge pull request #2593 from jeremy-lunarg/hayes-update-min-spv-requirement
Greg Fischer [Thu, 1 Apr 2021 18:32:57 +0000 (12:32 -0600)]
Merge pull request #2593 from jeremy-lunarg/hayes-update-min-spv-requirement

Update minimum SPIR-V requirement for GL_EXT_buffer_reference

3 years agoMerge pull request #2597 from greg-lunarg/interp0
Greg Fischer [Thu, 1 Apr 2021 08:37:08 +0000 (02:37 -0600)]
Merge pull request #2597 from greg-lunarg/interp0

Fix SPIR-V for HLSL EvaluateAttribute* of interpolants in structs

3 years agoFix SPIR-V for HLSL EvaluateAttribute* of interpolants in structs
Greg Fischer [Wed, 31 Mar 2021 21:24:48 +0000 (15:24 -0600)]
Fix SPIR-V for HLSL EvaluateAttribute* of interpolants in structs

Generate load of interpolant for first operand to GLSLstd450
InterpolateAt* SPIR-V ops. This allows the interpolants to
propagate from the input struct in the wrapper around main
into the shader during HLSL legalization. A new pass has been
added to legalization which will remove the load and replace
with the pointer of the load to create valid external
interpolate op.

Fixes #2584

3 years agoMerge pull request #2590 from pmistryNV/GL_ARB_sparse_texture2-bug-fix
Greg Fischer [Wed, 31 Mar 2021 00:33:31 +0000 (18:33 -0600)]
Merge pull request #2590 from pmistryNV/GL_ARB_sparse_texture2-bug-fix

For bug #2580: sparseTextureGatherOffsetsARB should only take constant offsets

3 years agoFor bug #2580: sparseTextureGatherOffsetsARB should only take constant offsets.
Pankaj Mistry [Wed, 24 Mar 2021 19:52:23 +0000 (12:52 -0700)]
For bug #2580: sparseTextureGatherOffsetsARB should only take constant offsets.

3 years agoUpdate minimum SPIR-V requirement
Jeremy Hayes [Fri, 26 Mar 2021 21:39:34 +0000 (15:39 -0600)]
Update minimum SPIR-V requirement

Require SPIR-V 1.3 when using GL_EXT_buffer_reference.
Migrate tests to SPIR-V 1.3 fixture as necessary.
Fix extension table key.
Fix whitespace.

3 years agoMerge pull request #2589 from ben-clayton/fix-warnings
greg-lunarg [Tue, 23 Mar 2021 16:29:38 +0000 (10:29 -0600)]
Merge pull request #2589 from ben-clayton/fix-warnings

Fix warnings about int comparisons of different signness

3 years agoFix warnings about int comparisons of different signness
Ben Clayton [Tue, 23 Mar 2021 10:47:59 +0000 (10:47 +0000)]
Fix warnings about int comparisons of different signness

Warnings in public headers can trigger warnings-as-errors.

3 years agoMerge pull request #2588 from jeremy-lunarg/hayes-2530
greg-lunarg [Mon, 22 Mar 2021 23:42:43 +0000 (17:42 -0600)]
Merge pull request #2588 from jeremy-lunarg/hayes-2530

Default to KHR extension

3 years agoMerge pull request #2587 from mbechard/master
greg-lunarg [Mon, 22 Mar 2021 23:39:47 +0000 (17:39 -0600)]
Merge pull request #2587 from mbechard/master

Don't check precision qualifiers on cross-stage checks

3 years agoDefault to KHR extension
Jeremy Hayes [Fri, 5 Mar 2021 01:03:14 +0000 (18:03 -0700)]
Default to KHR extension

Fix #2530.

3 years agoDon't check precision qualifiers on cross-stage checks
Malcolm Bechard [Mon, 22 Mar 2021 17:51:45 +0000 (13:51 -0400)]
Don't check precision qualifiers on cross-stage checks

Fixes #2586

3 years agoMerge pull request #2583 from nullcatalyst/bazel-windows-bat
greg-lunarg [Mon, 22 Mar 2021 17:49:55 +0000 (11:49 -0600)]
Merge pull request #2583 from nullcatalyst/bazel-windows-bat

Add cmd_bat action to bazel export_spirv_headers target

3 years agoMerge pull request #2582 from JustSid/master
greg-lunarg [Mon, 22 Mar 2021 17:44:52 +0000 (11:44 -0600)]
Merge pull request #2582 from JustSid/master

Fixed OpGroupNonUniformQuadBroadcast Direction operand being marked as a literal

3 years agoAdd cmd_bat action to bazel export_spirv_headers target
Scott Bennett [Thu, 18 Mar 2021 20:42:51 +0000 (16:42 -0400)]
Add cmd_bat action to bazel export_spirv_headers target

Only having `cmd` rather than separate `cmd_bash` and `cmd_bat` (or
`cmd_ps`) requires bash to be installed on Windows. So adding support
for `cmd_bat` makes glslangValidator easier to compile on Windows.

3 years agoMerge pull request #2581 from mbechard/InconsistentGLPerVertex
greg-lunarg [Fri, 19 Mar 2021 23:38:51 +0000 (17:38 -0600)]
Merge pull request #2581 from mbechard/InconsistentGLPerVertex

Partial fix for inconsistencies re: #2578

3 years agoFixed OpGroupNonUniformQuadBroadcast Direction operand being marked as a literal
Sidney Just [Fri, 19 Mar 2021 20:26:53 +0000 (13:26 -0700)]
Fixed OpGroupNonUniformQuadBroadcast Direction operand being marked as a literal

3 years agoPartial fix for inconsistencies re: #2578
Malcolm Bechard [Thu, 18 Mar 2021 20:58:40 +0000 (16:58 -0400)]
Partial fix for inconsistencies re: #2578

gl_SecondaryPositionNV and gl_PositionPerViewNV are inconsistently
declared inside and outside of gl_PerVertex. This breaks interface block
matching. For now ignore these errors since it should be fixed with how
they are declared.

3 years agoMerge pull request #2579 from mbechard/master
greg-lunarg [Thu, 18 Mar 2021 23:22:13 +0000 (17:22 -0600)]
Merge pull request #2579 from mbechard/master

Fix issue with remapping global uniform blocks

3 years agoMerge pull request #2574 from feifei14119/master
greg-lunarg [Thu, 18 Mar 2021 00:21:16 +0000 (18:21 -0600)]
Merge pull request #2574 from feifei14119/master

fix typo for u64vec2/3/4 type define value

3 years agoFix issue with remapping global uniform blocks
Malcolm Bechard [Wed, 17 Mar 2021 22:47:13 +0000 (18:47 -0400)]
Fix issue with remapping global uniform blocks

Avoid adding global uniform blocks to stages that don't already have it.
Otherwise multiple stages point to the same block object, and a
remapping that occurs later on will change the mapping on multiple
stages.

3 years agoMerge pull request #2577 from mbechard/master
greg-lunarg [Wed, 17 Mar 2021 21:46:13 +0000 (15:46 -0600)]
Merge pull request #2577 from mbechard/master

fix variable capitalization. Don't initialize it in the struct's constructor

3 years agofix variable capitilization. Don't initialize it in the struct's constructor
Malcolm Bechard [Tue, 16 Mar 2021 23:00:52 +0000 (19:00 -0400)]
fix variable capitilization. Don't initialize it in the struct's constructor

3 years agoMerge pull request #2576 from KhronosGroup/revert-2569-revert-2242-GL_EXT_vulkan_glsl...
greg-lunarg [Mon, 15 Mar 2021 19:38:49 +0000 (13:38 -0600)]
Merge pull request #2576 from KhronosGroup/revert-2569-revert-2242-GL_EXT_vulkan_glsl_relaxed

Revert "Revert "GL_ext_vulkan_glsl_relaxed extension support, and cross stage aware IO mapper""

3 years agoRevert "Revert "GL_ext_vulkan_glsl_relaxed extension support, and cross stage aware...
greg-lunarg [Mon, 15 Mar 2021 17:26:11 +0000 (11:26 -0600)]
Revert "Revert "GL_ext_vulkan_glsl_relaxed extension support, and cross stage aware IO mapper""

3 years ago1. fix macro definition value for unsinged-int64-vector, according to kronos spec...
feifei14119 [Mon, 15 Mar 2021 08:54:31 +0000 (16:54 +0800)]
1. fix macro definition value for unsinged-int64-vector, according to kronos spec at https://khronos.org/registry/OpenGL/extensions/ARB/ARB_gpu_shader_int64.txt; 2. fix typo in reflection

3 years agoMerge pull request #2569 from KhronosGroup/revert-2242-GL_EXT_vulkan_glsl_relaxed
greg-lunarg [Wed, 10 Mar 2021 21:05:36 +0000 (14:05 -0700)]
Merge pull request #2569 from KhronosGroup/revert-2242-GL_EXT_vulkan_glsl_relaxed

Revert "GL_ext_vulkan_glsl_relaxed extension support, and cross stage aware IO mapper"

3 years agoRevert "GL_ext_vulkan_glsl_relaxed extension support, and cross stage aware IO mapper"
greg-lunarg [Wed, 10 Mar 2021 18:26:43 +0000 (11:26 -0700)]
Revert "GL_ext_vulkan_glsl_relaxed extension support, and cross stage aware IO mapper"

3 years agoMerge pull request #2565 from greg-lunarg/i2564
greg-lunarg [Tue, 9 Mar 2021 09:15:26 +0000 (02:15 -0700)]
Merge pull request #2565 from greg-lunarg/i2564

Pass correct proxy type for atomicStore

3 years agoMerge pull request #2242 from mbechard/GL_EXT_vulkan_glsl_relaxed
greg-lunarg [Mon, 8 Mar 2021 21:43:32 +0000 (14:43 -0700)]
Merge pull request #2242 from mbechard/GL_EXT_vulkan_glsl_relaxed

GL_ext_vulkan_glsl_relaxed extension support, and cross stage aware IO mapper

3 years agoPass correct proxy type for atomicStore
Greg Fischer [Mon, 8 Mar 2021 21:02:06 +0000 (14:02 -0700)]
Pass correct proxy type for atomicStore

Fixes #2564

3 years agoImplement GL_EXT_vulkan_glsl_relaxed option
will brown [Wed, 10 Jun 2020 00:43:48 +0000 (20:43 -0400)]
Implement GL_EXT_vulkan_glsl_relaxed option

3 years agoMerge pull request #2560 from amdrexu/bugfix
greg-lunarg [Mon, 8 Mar 2021 17:31:48 +0000 (10:31 -0700)]
Merge pull request #2560 from amdrexu/bugfix

SPV: The capability string for RayTracingProvisionalKHR is missing

3 years agoSPV: The capability string for RayTracingProvisionalKHR is missing
Rex Xu [Thu, 4 Mar 2021 09:00:49 +0000 (17:00 +0800)]
SPV: The capability string for RayTracingProvisionalKHR is missing

Add it to GLSLang disassembler.

3 years agoMerge pull request #2559 from greg-lunarg/i2555
greg-lunarg [Tue, 2 Mar 2021 04:05:58 +0000 (21:05 -0700)]
Merge pull request #2559 from greg-lunarg/i2555

Allow DepthUnchanged and DepthReplaced Modes in same SPIR-V module.

3 years agoAllow DepthUnchanged and DepthReplaced Modes in same SPIR-V module.
Greg Fischer [Tue, 2 Mar 2021 00:45:03 +0000 (17:45 -0700)]
Allow DepthUnchanged and DepthReplaced Modes in same SPIR-V module.

Fixes #2555

3 years agoMerge pull request #2558 from greg-lunarg/i2551
greg-lunarg [Mon, 1 Mar 2021 21:11:10 +0000 (14:11 -0700)]
Merge pull request #2558 from greg-lunarg/i2551

Allow grad texture ops in all shaders

3 years agoAllow grad texture ops in all shaders
Greg Fischer [Mon, 1 Mar 2021 19:33:08 +0000 (12:33 -0700)]
Allow grad texture ops in all shaders

Fixes #2551

3 years agoMerge pull request #2557 from greg-lunarg/i2552b
greg-lunarg [Mon, 1 Mar 2021 17:41:30 +0000 (10:41 -0700)]
Merge pull request #2557 from greg-lunarg/i2552b

Fix off-by-1 bug in gl_MaxCombinedTextureImageUnits check

3 years agoMerge pull request #2554 from proydakov/Try-to-find-python-interpreter-from-host...
greg-lunarg [Sat, 27 Feb 2021 01:06:27 +0000 (18:06 -0700)]
Merge pull request #2554 from proydakov/Try-to-find-python-interpreter-from-host-first

Returned using find_host_package for PythonInterp 3 instead of find_pachage.

3 years agoMerge pull request #2553 from amdrexu/bugfix
greg-lunarg [Sat, 27 Feb 2021 01:05:52 +0000 (18:05 -0700)]
Merge pull request #2553 from amdrexu/bugfix

SPV: Change the key of extBuiltinMap to std::string

3 years agoFix off-by-1 bug in gl_MaxCombinedTextureImageUnits check
Greg Fischer [Fri, 26 Feb 2021 23:59:51 +0000 (16:59 -0700)]
Fix off-by-1 bug in gl_MaxCombinedTextureImageUnits check

The problem was only with arrays of samplers.

Fixed #2552

3 years agoMerge pull request #2556 from greg-lunarg/i2541
greg-lunarg [Fri, 26 Feb 2021 22:51:48 +0000 (15:51 -0700)]
Merge pull request #2556 from greg-lunarg/i2541

Fix precision propagation around shifts

3 years agoFix precision propagation around shifts
Greg Fischer [Fri, 26 Feb 2021 18:34:51 +0000 (11:34 -0700)]
Fix precision propagation around shifts

Fixes #2541

3 years agoReturned using find_host_package for PythonInterp 3 instead of find_package.
Evgeny Proydakov [Fri, 26 Feb 2021 11:31:27 +0000 (14:31 +0300)]
Returned using find_host_package for PythonInterp 3 instead of find_package.

I changed this logic here: https://github.com/KhronosGroup/glslang/pull/2526/commits/05798c17fb17d339d66e064a407e75ceae4c0316
It was originally fixed here: https://github.com/KhronosGroup/glslang/commit/967fa92d14acea305267574faf63ebe753de98c4

3 years agoSPV: Change the key of extBuiltinMap to std::string
Rex Xu [Fri, 26 Feb 2021 09:25:45 +0000 (17:25 +0800)]
SPV: Change the key of extBuiltinMap to std::string

Using const char* is not a good choice. We assume strings are always
from spv::E_SPV_XXX definitions. However, it is not the case. We can
store the name strings of extended intruction set in local variables.

3 years agoMerge pull request #2544 from ZhiqianXia/master
greg-lunarg [Thu, 25 Feb 2021 17:38:39 +0000 (10:38 -0700)]
Merge pull request #2544 from ZhiqianXia/master

Replace log2 and exp2 math func.

3 years agofix a typo
ZhiqianXia [Thu, 25 Feb 2021 07:37:40 +0000 (15:37 +0800)]
fix a typo

3 years agoMerge pull request #2549 from jeremy-lunarg/hayes-2479
greg-lunarg [Wed, 24 Feb 2021 23:56:10 +0000 (16:56 -0700)]
Merge pull request #2549 from jeremy-lunarg/hayes-2479

Require fixed workgroup size declaration