platform/upstream/glslang.git
7 years agoMerge pull request #969 from d3x0r/patch-1
John Kessenich [Tue, 4 Jul 2017 17:00:42 +0000 (11:00 -0600)]
Merge pull request #969 from d3x0r/patch-1

Add option to skip installation

7 years agoMerge pull request #970 from rohith10/master
John Kessenich [Tue, 4 Jul 2017 17:00:23 +0000 (11:00 -0600)]
Merge pull request #970 from rohith10/master

Fix CMake scripts to set the POSITION_INDEPENDENT_CODE property correctly

7 years agoFix CMake scripts: The set_property script can be used to set only a single property...
Rohith Chandran [Tue, 4 Jul 2017 14:53:45 +0000 (10:53 -0400)]
Fix CMake scripts: The set_property script can be used to set only a single property, so now setting the POSITION_INDEPENDENT_CODE property correctly.

7 years agoUpdate CMakeLists.txt
d3x0r [Tue, 4 Jul 2017 13:01:09 +0000 (06:01 -0700)]
Update CMakeLists.txt

7 years agoUpdate CMakeLists.txt
d3x0r [Tue, 4 Jul 2017 13:00:35 +0000 (06:00 -0700)]
Update CMakeLists.txt

7 years agoUpdate CMakeLists.txt
d3x0r [Tue, 4 Jul 2017 13:00:04 +0000 (06:00 -0700)]
Update CMakeLists.txt

7 years agoUpdate CMakeLists.txt
d3x0r [Tue, 4 Jul 2017 12:59:34 +0000 (05:59 -0700)]
Update CMakeLists.txt

7 years agoUpdate CMakeLists.txt
d3x0r [Tue, 4 Jul 2017 12:59:03 +0000 (05:59 -0700)]
Update CMakeLists.txt

7 years agoUpdate CMakeLists.txt
d3x0r [Tue, 4 Jul 2017 12:58:07 +0000 (05:58 -0700)]
Update CMakeLists.txt

7 years agoUpdate CMakeLists.txt
d3x0r [Tue, 4 Jul 2017 12:57:47 +0000 (05:57 -0700)]
Update CMakeLists.txt

7 years agoUpdate CMakeLists.txt
d3x0r [Tue, 4 Jul 2017 12:57:08 +0000 (05:57 -0700)]
Update CMakeLists.txt

7 years agoAdd option to skip installation
d3x0r [Tue, 4 Jul 2017 12:54:57 +0000 (05:54 -0700)]
Add option to skip installation

As a static target, when included in other cmake projects, it is not needed to install these libraries and headers as part of this build, and just need to link to this.

7 years agoMerge pull request #967 from dsrbecky/multiview
John Kessenich [Tue, 4 Jul 2017 04:14:09 +0000 (22:14 -0600)]
Merge pull request #967 from dsrbecky/multiview

Multiview extension: Accept layout(num_views) qualifier

7 years agoHLSL: Non-functional: Move partial flattened access into symbol node.
John Kessenich [Thu, 29 Jun 2017 23:43:31 +0000 (17:43 -0600)]
HLSL: Non-functional: Move partial flattened access into symbol node.

Lays the groundwork for fixing issue #954.

Partial flattenings were previously tracked through a stack of active subsets
in the parse context, but full functionality needs AST nodes to represent
this across time, removing the need for parsecontext tracking.

7 years agoHLSL: Non-functional: some coding convention tweaks (120 columns, nullptr).
John Kessenich [Fri, 30 Jun 2017 00:23:31 +0000 (18:23 -0600)]
HLSL: Non-functional: some coding convention tweaks (120 columns, nullptr).

This commit, and next one, are specifically to make a future commit
handling partial dereferences of flattening objects easier to see.

7 years agoMerge pull request #966 from TiemoJung/io_remapper_update
John Kessenich [Tue, 4 Jul 2017 03:48:58 +0000 (21:48 -0600)]
Merge pull request #966 from TiemoJung/io_remapper_update

io resolver improvements

7 years agoMerge pull request #959 from TiemoJung/texture_upgrade
John Kessenich [Tue, 4 Jul 2017 03:47:39 +0000 (21:47 -0600)]
Merge pull request #959 from TiemoJung/texture_upgrade

Fix for not transforming all image symbols into sampled images symbols

7 years agoMultiview extension: Accept layout(num_views) qualifier
David Srbecky [Mon, 3 Jul 2017 14:48:49 +0000 (15:48 +0100)]
Multiview extension: Accept layout(num_views) qualifier

7 years agoio resolver improvements
t.jung [Sat, 1 Jul 2017 08:26:23 +0000 (10:26 +0200)]
io resolver improvements

- adds stage parameter to end notify
- adds begin notify
- adds begin resolve
- adds end resolve

Change-Id: Ib134fe42a1a6d996d81dca59475cce6b4a9ff865

7 years agoMerge pull request #964 from dsrbecky/multiview
John Kessenich [Fri, 30 Jun 2017 22:39:32 +0000 (16:39 -0600)]
Merge pull request #964 from dsrbecky/multiview

Implement extensions GL_OVR_multiview and GL_OVR_multiview2

7 years agoImplement extensions GL_OVR_multiview and GL_OVR_multiview2
David Srbecký [Fri, 30 Jun 2017 17:33:51 +0000 (18:33 +0100)]
Implement extensions GL_OVR_multiview and GL_OVR_multiview2

They are almost identical to the already supported GL_EXT_multiview

7 years agoFix for not transforming all image symbols into sampled images symbols
t.jung [Thu, 29 Jun 2017 13:29:32 +0000 (15:29 +0200)]
Fix for not transforming all image symbols into sampled images symbols

Change-Id: I10f9bcea2e97f36912a81214552b93db4805b61a

7 years agoMerge pull request #957 from amdrexu/feature
John Kessenich [Thu, 29 Jun 2017 21:28:52 +0000 (15:28 -0600)]
Merge pull request #957 from amdrexu/feature

Implement extension GL_ARB_shader_stencil_export

7 years agoMerge pull request #961 from benvanik/fix_order
John Kessenich [Thu, 29 Jun 2017 21:20:59 +0000 (15:20 -0600)]
Merge pull request #961 from benvanik/fix_order

Fixing initialization order to fix -Wreorder warning in clang.

7 years agoFixing initialization order to fix -Wreorder warning in clang.
Ben Vanik [Thu, 29 Jun 2017 18:13:35 +0000 (11:13 -0700)]
Fixing initialization order to fix -Wreorder warning in clang.

7 years agoGLSL: validation of early_fragment_tests, others, on an object.
John Kessenich [Thu, 29 Jun 2017 16:46:47 +0000 (10:46 -0600)]
GLSL: validation of early_fragment_tests, others, on an object.

Some layout qualifiers must not be on an object and had a TBD for testing
them: early_fragment_tests, cw/ccw, points, point_mode, and
fractional_even_spacing/fractional_odd_spacing/equal_spacing.

7 years agoImplement extension GL_ARB_shader_stencil_export
Rex Xu [Thu, 29 Jun 2017 09:46:34 +0000 (17:46 +0800)]
Implement extension GL_ARB_shader_stencil_export

7 years agoHLSL: Fix #942: Map SV_TargetN to SPV Location N.
John Kessenich [Tue, 27 Jun 2017 21:17:38 +0000 (15:17 -0600)]
HLSL: Fix #942: Map SV_TargetN to SPV Location N.

7 years agoHLSL: Fix hull-shader test.
John Kessenich [Tue, 27 Jun 2017 01:56:41 +0000 (19:56 -0600)]
HLSL: Fix hull-shader test.

7 years agoHLSL: Don't pin down which tessellation stage must error check input primitive.
John Kessenich [Mon, 26 Jun 2017 23:56:54 +0000 (17:56 -0600)]
HLSL: Don't pin down which tessellation stage must error check input primitive.

7 years agoHLSL: support point mode.
John Kessenich [Mon, 26 Jun 2017 23:52:22 +0000 (17:52 -0600)]
HLSL: support point mode.

7 years agoMerge pull request #950 from dsrbecky/shadow_samplers
John Kessenich [Mon, 26 Jun 2017 21:50:18 +0000 (15:50 -0600)]
Merge pull request #950 from dsrbecky/shadow_samplers

Add support for GL_EXT_shadow_samplers

7 years agoMerge pull request #948 from KhronosGroup/env-control
John Kessenich [Mon, 26 Jun 2017 21:46:36 +0000 (15:46 -0600)]
Merge pull request #948 from KhronosGroup/env-control

Compilation-environment control

7 years agoCommand-line: Add support for setting language's environment.
John Kessenich [Fri, 23 Jun 2017 17:11:09 +0000 (11:11 -0600)]
Command-line: Add support for setting language's environment.

7 years agoInfrastructure: Non-functional: rationalize some command-line processing.
John Kessenich [Fri, 23 Jun 2017 16:58:31 +0000 (10:58 -0600)]
Infrastructure: Non-functional: rationalize some command-line processing.

7 years agoInfrastructure: Non-functional: Move to rich description of environment.
John Kessenich [Fri, 23 Jun 2017 16:50:22 +0000 (10:50 -0600)]
Infrastructure: Non-functional: Move to rich description of environment.

This is for input languages, client APIs, code to generate, etc.

7 years agoAdd support for GL_EXT_shadow_samplers
David Srbecky [Mon, 26 Jun 2017 16:43:32 +0000 (17:43 +0100)]
Add support for GL_EXT_shadow_samplers

7 years agoMerge pull request #947 from LoopDawg/clip-cull-distance
John Kessenich [Fri, 23 Jun 2017 23:57:25 +0000 (17:57 -0600)]
Merge pull request #947 from LoopDawg/clip-cull-distance

HLSL: handle clip/cull distance array semantic matching

7 years agoWIP: HLSL: handle clip/cull distance array semantic matching
LoopDawg [Thu, 22 Jun 2017 18:08:00 +0000 (12:08 -0600)]
WIP: HLSL: handle clip/cull distance array semantic matching

In HLSL, there are three (TODO: ??) dimensions of clip and cull
distance values:

  * The semantic's value N, ala SV_ClipDistanceN.
  * The array demension, if the value is an array.
  * The vector element, if the value is a vector or array of vectors.

In SPIR-V, clip and cull distance are arrays of scalar floats, always.

This PR currently ignores the semantic N axis, and handles the other
two axes by sequentially copying each vector element of each array member
into sequential floats in the output array.

Fixes: #946

7 years agoHLSL: Broaden solution for #940, editing integer input for 'flat'.
John Kessenich [Wed, 21 Jun 2017 07:35:57 +0000 (01:35 -0600)]
HLSL: Broaden solution for #940, editing integer input for 'flat'.

7 years agoHLSL: Force flat interpolation for structure members. Fixes #940.
John Kessenich [Tue, 20 Jun 2017 19:19:53 +0000 (13:19 -0600)]
HLSL: Force flat interpolation for structure members. Fixes #940.

7 years agoBuild: add switch default to make compilers happy
John Kessenich [Tue, 20 Jun 2017 15:26:06 +0000 (09:26 -0600)]
Build: add switch default to make compilers happy

7 years agoMerge pull request #943 from xxxbxxx/for-upstream-1
John Kessenich [Tue, 20 Jun 2017 14:59:50 +0000 (08:59 -0600)]
Merge pull request #943 from xxxbxxx/for-upstream-1

hlsl: "in out" is also an inout qualifier.

7 years agoHLSL: Force flat (nointerp) onto integer fragment inputs.
John Kessenich [Tue, 20 Jun 2017 09:20:59 +0000 (03:20 -0600)]
HLSL: Force flat (nointerp) onto integer fragment inputs.

Addresses #940.

7 years agohlsl: "in out" is also an inout qualifier.
xavier [Tue, 20 Jun 2017 05:49:22 +0000 (07:49 +0200)]
hlsl: "in out" is also an inout qualifier.

7 years agoNon-functional: Attempt to reset Travis error, while adding more nullptr use.
John Kessenich [Mon, 19 Jun 2017 22:25:44 +0000 (16:25 -0600)]
Non-functional: Attempt to reset Travis error, while adding more nullptr use.

Top of master is listing a test error, not from glslang, but internally
within Travis itself.  Seeing if another run gets it to work again.

7 years agoHLSL: Remove support for named tbuffer/cbuffer. Fixes #939.
John Kessenich [Mon, 19 Jun 2017 21:41:11 +0000 (15:41 -0600)]
HLSL: Remove support for named tbuffer/cbuffer.  Fixes #939.

7 years agoHLSL: Non-functional: Make test valid HLSL, and related comments/cleanup.
John Kessenich [Mon, 19 Jun 2017 21:13:26 +0000 (15:13 -0600)]
HLSL: Non-functional: Make test valid HLSL, and related comments/cleanup.

7 years agoMerge pull request #917 from KhronosGroup/remove-redundant-locations
John Kessenich [Thu, 15 Jun 2017 18:11:37 +0000 (12:11 -0600)]
Merge pull request #917 from KhronosGroup/remove-redundant-locations

Replace #422: Remove the redundant location setting in AST->SPIR-V.

7 years agoTests: Fix missing test result.
John Kessenich [Thu, 15 Jun 2017 17:10:57 +0000 (11:10 -0600)]
Tests: Fix missing test result.

7 years agoStandalone: Implement -D and -U for preprocessor macros.
John Kessenich [Thu, 15 Jun 2017 16:40:49 +0000 (10:40 -0600)]
Standalone: Implement -D and -U for preprocessor macros.

Works for both GLSL and HLSL.
Fixes #87.

7 years agoStandalone: Rationalize ShaderCompUnit and file data.
John Kessenich [Wed, 14 Jun 2017 23:36:50 +0000 (17:36 -0600)]
Standalone: Rationalize ShaderCompUnit and file data.

ShaderCompUnit was poorly done, a mix of a list of things and hard
coding to a single thing. This makes it all a true list.

File data was greatly simplified to be a single string, no longer
supporting breaking a single file into multiple strings.

7 years agoInfrastructure: Rationalize command-line options.
John Kessenich [Wed, 14 Jun 2017 21:52:44 +0000 (15:52 -0600)]
Infrastructure: Rationalize command-line options.

Makes alphabetical order, fit in 80 columns, abstract in-option
string argument.

7 years agoMerge pull request #931 from LoopDawg/scalar-mat-assign
John Kessenich [Wed, 14 Jun 2017 21:02:01 +0000 (15:02 -0600)]
Merge pull request #931 from LoopDawg/scalar-mat-assign

HLSL: fix several issues in mat construction from scalars

7 years agoHLSL: fix several issues in mat construction from scalars
LoopDawg [Fri, 9 Jun 2017 20:36:46 +0000 (14:36 -0600)]
HLSL: fix several issues in mat construction from scalars

This fixes:

1. A compilation error when assigning scalars to matricies

2. A semantic error in matrix construction from scalars.  This was
initializing the diagonal, where HLSL semantics require the scalar be
replicated to every matrix element.

3. Functions accepting mats can be called with scalars, which will
be shape-converted to the matrix type.  This was previously failing
to match the function signature.

NOTE: this does not yet handle complex scalars (a function call,
say) used to construct matricies.  That'll be added when the
node replicator service is available.  For now, there's an assert.

There's one new test (hlsl.scalar2matrix.frag).  An existing test
lsl.type.half.frag changes, because of (2) above, and a negative
test error message changes due to (3) above.

Fixes #923.

7 years agoMerge pull request #937 from amdrexu/bugfix
John Kessenich [Wed, 14 Jun 2017 16:05:19 +0000 (10:05 -0600)]
Merge pull request #937 from amdrexu/bugfix

SPV: Fix an typo of SPV_AMD_texture_gather_bias_lod

7 years agoSPV: Fix an typo of SPV_AMD_texture_gather_bias_lod
Rex Xu [Wed, 14 Jun 2017 15:09:39 +0000 (23:09 +0800)]
SPV: Fix an typo of SPV_AMD_texture_gather_bias_lod

7 years agoHLSL: Fix #924: Convert between two different arrays with cast.
John Kessenich [Wed, 14 Jun 2017 05:13:10 +0000 (23:13 -0600)]
HLSL: Fix #924: Convert between two different arrays with cast.

7 years agoHLSL: Recognize types declared as identifiers as identifiers.
John Kessenich [Wed, 14 Jun 2017 04:22:52 +0000 (22:22 -0600)]
HLSL: Recognize types declared as identifiers as identifiers.

E.g., in

    float float;
    (float) * float;

The "(float)" is not a type cast, it is an expression.

7 years agoMerge pull request #932 from LoopDawg/warning-fix-1
John Kessenich [Mon, 12 Jun 2017 16:41:54 +0000 (10:41 -0600)]
Merge pull request #932 from LoopDawg/warning-fix-1

HLSL: compilation warning fix: no functional change

7 years agoHLSL: compilation warning fix: no functional change
LoopDawg [Sat, 10 Jun 2017 13:42:03 +0000 (07:42 -0600)]
HLSL: compilation warning fix: no functional change

One liner to eliminate a compile warning.

7 years agoMerge branch 'amdrexu-feature'
John Kessenich [Fri, 9 Jun 2017 18:51:03 +0000 (12:51 -0600)]
Merge branch 'amdrexu-feature'

7 years agoImplement extension GL_AMD_gpu_shader_int16
Rex Xu [Fri, 24 Mar 2017 05:41:14 +0000 (13:41 +0800)]
Implement extension GL_AMD_gpu_shader_int16

- Add int16 types (int16_t, uint16_t, i16vec, u16vec).
- Add int16 support to GLSL operators.
- Add int16 type conversions (to int16, from int16).
- Add int16 built-in functions.

7 years agoHLSL: Allow macro expansions to create the 'defined' operator.
John Kessenich [Thu, 8 Jun 2017 23:12:56 +0000 (17:12 -0600)]
HLSL: Allow macro expansions to create the 'defined' operator.

7 years agoGLSL: Fix #853: Only outer dimension of array can be specialization constant.
John Kessenich [Thu, 8 Jun 2017 18:26:49 +0000 (12:26 -0600)]
GLSL: Fix #853: Only outer dimension of array can be specialization constant.

7 years agoGLSL: Correct missing "not" from error message about non writeonly images.
John Kessenich [Thu, 8 Jun 2017 16:36:45 +0000 (10:36 -0600)]
GLSL: Correct missing "not" from error message about non writeonly images.

7 years agoGLSL: Disallow 'shared' in nested scopes.
John Kessenich [Thu, 8 Jun 2017 16:13:15 +0000 (10:13 -0600)]
GLSL: Disallow 'shared' in nested scopes.

This implements Khronos-private specification bug 16130.

7 years agoGLSL: Disallow unsized arrays of atomic_uint.
John Kessenich [Thu, 8 Jun 2017 16:07:14 +0000 (10:07 -0600)]
GLSL: Disallow unsized arrays of atomic_uint.

This tracks Khronos-private specification bug 15945.

7 years agoBuild: reset for multi-threaded test error, that reported a single missing character.
John Kessenich [Thu, 8 Jun 2017 01:03:11 +0000 (19:03 -0600)]
Build: reset for multi-threaded test error, that reported a single missing character.

7 years agoGLSL: Fix Khronos private Bugzilla 15973: local sizes can't be 0.
John Kessenich [Thu, 8 Jun 2017 00:53:33 +0000 (18:53 -0600)]
GLSL: Fix Khronos private Bugzilla 15973: local sizes can't be 0.

7 years agoGLSL: Fix #396: Error when 'defined' comes from macro expansion.
John Kessenich [Wed, 7 Jun 2017 23:15:38 +0000 (17:15 -0600)]
GLSL: Fix #396: Error when 'defined' comes from macro expansion.

7 years agoMerge pull request #922 from KhronosGroup/dash-I
John Kessenich [Wed, 7 Jun 2017 22:04:29 +0000 (16:04 -0600)]
Merge pull request #922 from KhronosGroup/dash-I

Infrastructure: add include search paths (-I, etc.).
Fixes #921.

7 years agoInfrastructure: add include search paths (-I, etc.).
John Kessenich [Wed, 7 Jun 2017 21:06:58 +0000 (15:06 -0600)]
Infrastructure: add include search paths (-I, etc.).

7 years agoHLSL: Implement half matrices, and map all half* -> float*.
John Kessenich [Wed, 7 Jun 2017 05:35:25 +0000 (23:35 -0600)]
HLSL: Implement half matrices, and map all half* -> float*.

7 years agoHLSL: Track control-flow nesting and warn on aliasing under it.
John Kessenich [Wed, 7 Jun 2017 01:52:55 +0000 (19:52 -0600)]
HLSL: Track control-flow nesting and warn on aliasing under it.

7 years agoInfrastructure: Move nesting counters, etc., to base class.
John Kessenich [Wed, 7 Jun 2017 01:19:45 +0000 (19:19 -0600)]
Infrastructure: Move nesting counters, etc., to base class.

This lets all languages share the same definitions.

7 years agoBuild: Fix build warnings.
John Kessenich [Wed, 7 Jun 2017 00:31:47 +0000 (18:31 -0600)]
Build: Fix build warnings.

7 years agoMerge pull request #920 from jeremy-lunarg/jeremy-build
John Kessenich [Tue, 6 Jun 2017 22:27:34 +0000 (16:27 -0600)]
Merge pull request #920 from jeremy-lunarg/jeremy-build

Build: Fix linux

7 years agoBuild: Fix linux
Jeremy Hayes [Tue, 6 Jun 2017 18:03:54 +0000 (12:03 -0600)]
Build: Fix linux

I believe this is a repeat of 12d6936.

7 years agoHLSL: Fix #919: for-init-statement is arbitrary declaration or expression.
John Kessenich [Tue, 6 Jun 2017 17:37:33 +0000 (11:37 -0600)]
HLSL: Fix #919: for-init-statement is arbitrary declaration or expression.

Unlike "if (XXX)" and "while (XXX)", with "for (YYY...", the YYY can be
more kinds of statements than the XXX.

7 years agoGLSL: replace general missing functionality with specific messages.
John Kessenich [Mon, 5 Jun 2017 22:42:33 +0000 (16:42 -0600)]
GLSL: replace general missing functionality with specific messages.

7 years agoMerge pull request #912 from amdrexu/feature
John Kessenich [Mon, 5 Jun 2017 15:08:12 +0000 (09:08 -0600)]
Merge pull request #912 from amdrexu/feature

Implement the extension GL_AMD_texture_gather_bias_lod

7 years agoImplement the extension GL_AMD_texture_gather_bias_lod
Rex Xu [Thu, 17 Nov 2016 09:47:59 +0000 (17:47 +0800)]
Implement the extension GL_AMD_texture_gather_bias_lod

7 years agoReplace #422: Remove the redundant location setting in AST->SPIR-V.
John Kessenich [Sun, 4 Jun 2017 19:22:39 +0000 (13:22 -0600)]
Replace #422: Remove the redundant location setting in AST->SPIR-V.

This was redundant in two ways:
1) it replicated algorithms owned in the front end, and
2) it sometimes left location information on both a block and its members.

7 years agoGLSL: Fix bug setting component=0 for an auto-location assignment.
John Kessenich [Sun, 4 Jun 2017 19:17:20 +0000 (13:17 -0600)]
GLSL: Fix bug setting component=0 for an auto-location assignment.

Setting component=0 is later taken to mean the shader did so, which
is not always legal. It should instead set the component as not set
by the shader.

7 years agoGLSL: Error when using location on an arrayed block.
John Kessenich [Sun, 4 Jun 2017 19:05:50 +0000 (13:05 -0600)]
GLSL: Error when using location on an arrayed block.

This implements a recent change to the GLSL specification to enforce
this ill-defined situation.

7 years agoMerge pull request #899 from antiagainst/rm-empty-cpps
John Kessenich [Sat, 3 Jun 2017 21:29:06 +0000 (15:29 -0600)]
Merge pull request #899 from antiagainst/rm-empty-cpps

Remove empty cpp files

7 years agoMerge pull request #915 from LoopDawg/subvec4-intrinsic
John Kessenich [Sat, 3 Jun 2017 21:28:11 +0000 (15:28 -0600)]
Merge pull request #915 from LoopDawg/subvec4-intrinsic

HLSL: add test coverage for sub-vec4 texture intrinsics

7 years agoMerge pull request #905 from KhronosGroup/flatten-opaque-structs
John Kessenich [Sat, 3 Jun 2017 00:48:26 +0000 (18:48 -0600)]
Merge pull request #905 from KhronosGroup/flatten-opaque-structs

SPV: When passing structs of opaque types, flatten and pass the membe…

7 years agoHLSL: Convert run-time sampler assignments to compile-time aliases.
John Kessenich [Fri, 2 Jun 2017 22:28:39 +0000 (16:28 -0600)]
HLSL: Convert run-time sampler assignments to compile-time aliases.

For "s.m = t", a sampler member assigned a sampler, make t an alias
for s.m, and when s.m is flattened, it will flatten to the alias t.
Normally, assignments to samplers are disallowed.

7 years agoSPV: When passing structs of opaque types, flatten and pass the members instead.
John Kessenich [Fri, 26 May 2017 06:01:36 +0000 (00:01 -0600)]
SPV: When passing structs of opaque types, flatten and pass the members instead.

This avoids either A) needing uniformConstant struct, or
B) initializing a struct with opaque members, as writing them is not
allowed.

7 years agoHLSL: iomapper: Fix #914. Tolerate user aliasing of bindings.
John Kessenich [Fri, 2 Jun 2017 00:16:33 +0000 (18:16 -0600)]
HLSL: iomapper: Fix #914. Tolerate user aliasing of bindings.

Because it is valid in HLSL to alias bindings:
A) remove validation that aliasing is not done
B) make the algorithms tolerate aliasing

7 years agoHLSL: add test coverage for sub-vec4 texture intrinsics
LoopDawg [Thu, 1 Jun 2017 19:10:25 +0000 (13:10 -0600)]
HLSL: add test coverage for sub-vec4 texture intrinsics

This changes no functional code.  There was a bit of a testing hole
in that textures templatized on sub-vec4 types were not being exercised
with any intrinsics.  This adds some basic sanity coverage of that case.

7 years agoMerge pull request #907 from KhronosGroup/include
John Kessenich [Thu, 1 Jun 2017 18:37:52 +0000 (12:37 -0600)]
Merge pull request #907 from KhronosGroup/include

HLSL: Add an Includer to handle #include for local HLSL paths.

7 years agoMerge pull request #913 from amdrexu/bugfix
John Kessenich [Thu, 1 Jun 2017 18:36:21 +0000 (12:36 -0600)]
Merge pull request #913 from amdrexu/bugfix

Parser: Add missing codes for float16

7 years agoHLSL: Add an Includer to handle #include.
John Kessenich [Mon, 22 May 2017 21:00:42 +0000 (15:00 -0600)]
HLSL: Add an Includer to handle #include.

7 years agoParser: Add missing codes for float16
Rex Xu [Thu, 1 Jun 2017 11:58:54 +0000 (19:58 +0800)]
Parser: Add missing codes for float16

7 years agoMerge pull request #911 from KhronosGroup/debug-info
John Kessenich [Thu, 1 Jun 2017 04:47:28 +0000 (22:47 -0600)]
Merge pull request #911 from KhronosGroup/debug-info

SPV: Add OpSource shader source code and file name.

7 years agoSPV: Debug output: Include OpLine information for execution path.
John Kessenich [Thu, 1 Jun 2017 00:50:53 +0000 (18:50 -0600)]
SPV: Debug output: Include OpLine information for execution path.

Note that declaratives are not handled, only procedurals.

7 years agoSPV: Add OpSource shader source code and file name.
John Kessenich [Wed, 31 May 2017 23:11:16 +0000 (17:11 -0600)]
SPV: Add OpSource shader source code and file name.