John Kessenich
6e899be5ec
Non-functional: Rationalize operators handled by the split addConversion() functions.
...
Historically, addConversion() was split to handle binary node <-> node conversions
from non-binary node -> type conversions. However, the split wasn't entirely clean
WRT HLSL design and left duplication of case statements, which are misleading, and
this commit cleans up.
2018-03-15 19:58:49 -06:00
John Kessenich
137a24dffa
AST: Remove convertToBasicType() which was obfuscating the conversion design.
...
Reinforces that conversion rules are operation-specific.
Side effect is that HLSL logical-operator conversions are more direct
(e.g. float -> bool, rather than float -> int -> bool).
2018-03-15 19:32:27 -06:00
John Kessenich
2ad4737dc2
Merge pull request #1286 from greg-lunarg/kg14
...
Update known_good to SPIR-V 1.3 support
2018-03-12 12:42:27 -06:00
John Kessenich
b095da74ed
Merge pull request #1288 from amdrexu/bugfix
...
HLSL: Correct some mistakes for min16 types
2018-03-12 12:41:56 -06:00
John Kessenich
2bd8cd04b0
Merge pull request #1287 from eintw1ck/master
...
include/Common.h: reorder includes to avoid redefinition on some platforms
2018-03-12 12:39:00 -06:00
Rex Xu
a00e51b5b2
HLSL: Correct some mistakes for min16 types
...
- Add missing constructor ops to support float16/int16/uint16 types
- Allow half float literals
- Correct two errors of double literal parse in HLSL: extension check and
postfix
2018-03-12 23:15:11 +08:00
Josh de Kock
b3e80f5aec
include/Common.h: reorder includes to avoid redefinition on some platforms
...
On some systems sstream defines snprintf, this leads to the a redefinition of sprintf_s if snprintf is defined before checking if it exists in sstream.
2018-03-11 19:51:17 +00:00
GregF
bfa64afb78
Increment minor version to 4
2018-03-09 17:51:11 -07:00
GregF
c96885f405
Update known_good to SPIR-V 1.3 support
2018-03-09 17:45:57 -07:00
John Kessenich
845860d565
Merge pull request #1283 from siavashserver/fix-memory-leak
...
Fix memory leak upon ProcessDeferred failure.
2018-03-08 10:55:02 -07:00
John Kessenich
ca2793403a
Merge pull request #1284 from amdrexu/bugfix
...
Allow --hlsl-enable-16bit-types to be used without AMD_EXTENSIONS
2018-03-08 10:24:32 -07:00
Rex Xu
7798aaf149
Allow --hlsl-enable-16bit-types to be used without AMD_EXTENSIONS
2018-03-08 22:17:04 +08:00
siavashserver
b502a802f4
Fix memory leak upon ProcessDeferred failure.
2018-03-08 09:13:36 +03:30
John Kessenich
a51525059f
Merge pull request #1269 from bkaradzic/master
...
Fixed GCC+Clang errors and warnings on Linux and OSX.
2018-03-07 14:31:57 -07:00
John Kessenich
9c82dd10cf
Merge branch 'amdrexu-feature'
2018-03-07 14:30:40 -07:00
John Kessenich
fb97d25c98
Merge branch 'feature' of https://github.com/amdrexu/glslang into amdrexu-feature
2018-03-07 14:29:45 -07:00
John Kessenich
45422f1851
Merge branch 'amdrexu-bugfix'
2018-03-07 14:26:08 -07:00
John Kessenich
f15fbc04f7
Merge branch 'bugfix' of https://github.com/amdrexu/glslang into amdrexu-bugfix
2018-03-07 14:25:46 -07:00
John Kessenich
56364b0850
Merge branch 'sheredom-fixup_sm_60_wording'
2018-03-07 14:21:55 -07:00
John Kessenich
e62d1baf3a
Merge branch 'fixup_sm_60_wording' of https://github.com/sheredom/glslang into sheredom-fixup_sm_60_wording
2018-03-07 14:20:11 -07:00
John Kessenich
ac3707921e
Revert the commits that change OpArrayLength type and bumped the version number.
...
Now, version 5.* is all connected to making the uint type, which doesn't quite work.
Generator versions 4 and 6 do not do this.
2018-03-07 11:48:25 -07:00
Neil Henning
fd920b3b6a
WaveReadLaneFirst is the correct wording (was using WaveReadFirstLane previously...).
2018-03-07 17:04:20 +00:00
John Kessenich
097047a919
Merge pull request #1277 from KhronosGroup/Vulkan_1_1
...
SPV: Implement Vulkan 1.1 features and extensions.
2018-03-07 09:26:43 -07:00
Rex Xu
e68a7698e6
Add more error checks for swizzleInvocations{Masked}AMD()
2018-03-07 17:22:41 +08:00
Rex Xu
cb61eec948
HLSL: Map min types to GLSL 16-bit types
2018-03-07 13:10:01 +08:00
Branimir Karadžić
1e5c946326
Fixed ifdef.
2018-03-06 20:11:46 -08:00
John Kessenich
66011cb2c2
SPV: Implement Vulkan 1.1 features and extensions.
2018-03-06 16:12:04 -07:00
John Kessenich
b2ae1d0521
Revert "Merge pull request #1274 from greg-lunarg/legal2"
...
This reverts commit 2c65069ecdbc41dc16580ff58d9d99a2e80ac9ce, reversing
changes made to fa9b465b92b7e043623ef24d9002aacb32fab0d8.
2018-03-06 14:50:41 -07:00
John Kessenich
663b90d908
Build: Fix build issues with previous commit.
2018-03-06 14:20:16 -07:00
John Kessenich
2c65069ecd
Merge pull request #1274 from greg-lunarg/legal2
...
Legalization: Omit legalization warning when spirv-opt is linked.
2018-03-06 13:17:04 -07:00
John Kessenich
fa9b465b92
Versioning: Bump to minor version 1, for new SPIRV-Tools update.
2018-03-06 13:08:19 -07:00
GregF
fd50f6a4c3
Legalization: Omit legalization warning when spirv-opt is linked.
2018-03-06 13:00:08 -07:00
John Kessenich
caa54449b4
Merge pull request #1263 from greg-lunarg/kg12
...
Update spirv-tools known_good
2018-03-06 11:12:04 -07:00
John Kessenich
02538357c8
Merge pull request #1272 from amdrexu/bugfix
...
Add more error checks for interpolateAtVertexAMD()
2018-03-06 01:02:13 -07:00
Rex Xu
4f5b99e37e
Add more error checks for interpolateAtVertexAMD()
2018-03-06 15:01:40 +08:00
John Kessenich
c6c80a6e48
Versioning: Address #1255 : Move to semantic versioning.
...
Still missing is automation and final decisions on mechanisms in general.
2018-03-05 22:23:17 -07:00
Branimir Karadžić
1de8e54d66
Fixed GCC+Clang errors and warnings on Linux and OSX.
2018-03-03 13:04:12 -08:00
John Kessenich
41e24fdb83
Merge branch 'amdrexu-bugfix'
2018-03-03 11:53:41 -07:00
John Kessenich
aa2295f1aa
Merge branch 'bugfix' of https://github.com/amdrexu/glslang into amdrexu-bugfix
2018-03-03 11:52:58 -07:00
John Kessenich
0216f24f0e
SPV: Bump up the generator number.
2018-03-03 11:47:07 -07:00
Rex Xu
e518772dc9
SPV: The result type of OpArrayLength should be UINT
2018-03-03 22:06:27 +08:00
John Kessenich
b5b5f918c6
Non-functional: Make the vulkan version number meaning be only 0 or not 0.
2018-03-02 18:17:42 -07:00
John Kessenich
e58d58b782
Non-functional: Move to latest headers.
2018-03-02 12:36:02 -07:00
John Kessenich
29c49e1089
Merge pull request #1266 from amdrexu/feature
...
Implement the extension GL_AMD_gpu_shader_half_float_fetch
2018-03-02 11:23:15 -07:00
John Kessenich
2c40e85616
Merge pull request #1268 from amdrexu/bugfix2
...
Fix issues of SPIRV headers
2018-03-02 09:41:22 -07:00
Rex Xu
81f4c03a76
Fix issues of SPIRV headers
2018-03-02 17:42:37 +08:00
Rex Xu
1e5d7b0b27
Implement the extension GL_AMD_gpu_shader_half_float_fetch
...
- Support new opaque types: f16sampler*, f16image*, f16subpassInput*.
- Add new built-in GLSL texture/image functions.
2018-03-02 16:48:03 +08:00
John Kessenich
5630d0ec79
Fix typo.
2018-03-02 01:09:28 -07:00
John Kessenich
60a57840ee
Merge pull request #1264 from dneto0/typo-client-version
...
Fix typo in help for -V<bad-number>
2018-02-28 16:12:37 -07:00
John Kessenich
52e9435ec5
Merge pull request #1265 from davidhubbard/master
...
EShLangFragment falls through to EShLangCompute, only #ifndef AMD_EXTENSIONS.
2018-02-28 16:11:43 -07:00