glslang-zig/glslang/MachineIndependent
LoopDawg e2713125b9 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.
2017-06-14 14:11:18 -06:00
..
preprocessor Implement extension GL_AMD_gpu_shader_int16 2017-06-09 17:11:23 +08:00
Constant.cpp Implement extension GL_AMD_gpu_shader_int16 2017-06-09 17:11:23 +08:00
gl_types.h [lumped builds] Add include guards (#pragma once) to header files that did not have any. 2017-05-10 16:58:38 +03:00
glslang.y Implement extension GL_AMD_gpu_shader_int16 2017-06-09 17:11:23 +08:00
glslang_tab.cpp Merge branch 'amdrexu-feature' 2017-06-09 12:52:21 -06:00
glslang_tab.cpp.h Merge branch 'amdrexu-feature' 2017-06-09 12:52:21 -06:00
InfoSink.cpp Non-functional: White space after "//", mostly for copyrights. 2017-01-06 12:34:14 -07:00
Initialize.cpp Implement extension GL_AMD_gpu_shader_int16 2017-06-09 17:11:23 +08:00
Initialize.h Build fix: Make string assignment simpler to avoid some compiler issues. 2017-05-09 23:30:56 -06:00
Intermediate.cpp HLSL: fix several issues in mat construction from scalars 2017-06-14 14:11:18 -06:00
intermOut.cpp Implement extension GL_AMD_gpu_shader_int16 2017-06-09 17:11:23 +08:00
IntermTraverse.cpp Non-functional: White space after "//", mostly for copyrights. 2017-01-06 12:34:14 -07:00
iomapper.cpp Build: Fix build warnings. 2017-06-06 19:53:24 -06:00
iomapper.h Non-functional: White space after "//", mostly for copyrights. 2017-01-06 12:34:14 -07:00
limits.cpp Non-functional: White space after "//", mostly for copyrights. 2017-01-06 12:34:14 -07:00
linkValidate.cpp Implement extension GL_AMD_gpu_shader_int16 2017-06-09 17:11:23 +08:00
LiveTraverser.h [lumped builds] Add include guards (#pragma once) to header files that did not have any. 2017-05-10 16:58:38 +03:00
localintermediate.h Implement extension GL_AMD_gpu_shader_int16 2017-06-09 17:11:23 +08:00
parseConst.cpp HLSL: Allow empty struct initializers 2017-04-27 18:22:52 -06:00
ParseContextBase.cpp Non-functional: Round of adding 'const', related to more efficient getFullNamespaceName(). 2017-03-30 10:16:22 -06:00
ParseHelper.cpp HLSL: Fix #924: Convert between two different arrays with cast. 2017-06-13 23:13:10 -06:00
ParseHelper.h GLSL: Fix #853: Only outer dimension of array can be specialization constant. 2017-06-08 12:26:49 -06:00
parseVersions.h Implement extension GL_AMD_gpu_shader_int16 2017-06-09 17:11:23 +08:00
PoolAlloc.cpp Memory/constructor/warning clean-up. Addresses issue #705. 2017-02-02 14:55:02 -07:00
propagateNoContraction.cpp HLSL: Add EOpMatrixSwizzle, selectively decomposed to other ops, for issue #670. 2017-01-13 12:35:01 -07:00
propagateNoContraction.h [lumped builds] Add include guards (#pragma once) to header files that did not have any. 2017-05-10 16:58:38 +03:00
reflection.cpp WIP: HLSL: add refection queries for structuredbuffer counter blocks 2017-04-18 12:58:15 -06:00
reflection.h WIP: HLSL: add refection queries for structuredbuffer counter blocks 2017-04-18 12:58:15 -06:00
RemoveTree.cpp Non-functional: White space after "//", mostly for copyrights. 2017-01-06 12:34:14 -07:00
RemoveTree.h [lumped builds] Add include guards (#pragma once) to header files that did not have any. 2017-05-10 16:58:38 +03:00
Scan.cpp Implement extension GL_AMD_gpu_shader_int16 2017-06-09 17:11:23 +08:00
Scan.h Non-functional: White space after "//", mostly for copyrights. 2017-01-06 12:34:14 -07:00
ScanContext.h [lumped builds] Add include guards (#pragma once) to header files that did not have any. 2017-05-10 16:58:38 +03:00
ShaderLang.cpp GLSL: replace general missing functionality with specific messages. 2017-06-05 16:42:33 -06:00
SymbolTable.cpp Implement extension GL_AMD_gpu_shader_int16 2017-06-09 17:11:23 +08:00
SymbolTable.h HLSL: Implement member functions calling member functions. 2017-05-17 02:20:34 -06:00
Versions.cpp Implement extension GL_AMD_gpu_shader_int16 2017-06-09 17:11:23 +08:00
Versions.h Implement extension GL_AMD_gpu_shader_int16 2017-06-09 17:11:23 +08:00