John Kessenich
ecba76fe73
Non-Functional: Whitespace, comments, replace accidentally deleted comment.
...
- fixed ParseHelper.cpp newlines (crlf -> lf)
- removed trailing white space in most source files
- fix some spelling issues
- extra blank lines
- tabs to spaces
- replace #include comment about no location
2017-01-06 11:24:14 -07:00
John Kessenich
807a0d9e2f
Merge pull request #640 from chaoc/modify-shader-ballot
...
Modify shader ballot extension by adding OpSubgroupReadInvocationKHR
2016-12-21 17:40:29 -07:00
chaoc
f200da8631
Modify shader ballot extension by adding OpSubgroupReadInvocationKHR
2016-12-21 12:08:09 -08:00
chaoc
6e5acae144
Add support for SPV_NV_geometry_shader_passthrough
2016-12-20 13:28:52 -08:00
chaoc
0ad6a4e60d
Add support for SPV_NV_sample_mask_override_coverage
2016-12-19 16:29:34 -08:00
John Kessenich
e6cbc5b19d
Merge pull request #624 from steve-lunarg/remapper-strip-removed
...
WIP: Remapper: remove debug info for IDs stripped in other passes
2016-12-19 14:07:58 -07:00
John Kessenich
1e275c8486
HLSL: More robust handling of bad shader input, catching a few more things.
2016-12-14 17:02:32 -07:00
steve-lunarg
297754cfe8
Remapper: remove debug info for IDs stripped in other passes
...
If some DCE is performed such as removing dead functions, then even
if we are NOT stripping debug info, we still must remove the debug
opcodes that refer to the now-dead IDs.
Also, this adds a small change to perform no ID remapping if none
is requested, making spirv-remap properly be a no-op if no options
are given.
2016-12-12 09:01:11 -07:00
John Kessenich
6a60c2f9ea
Linker: Walk the call graph to report an error on missing bodies.
2016-12-08 23:22:21 -07:00
John Kessenich
517fe7a6ad
Non-functional: Rename some entry-point variables to entryPoint, not main.
2016-11-26 13:31:47 -07:00
John Kessenich
fca826212c
Always correctly terminate main. Issue #588 , PR #600 .
2016-11-26 13:23:20 -07:00
chrgau01@arm.com
c3f1cdfa57
GLSL: The execution scope for barriers should be Workgroup.
2016-11-14 10:10:05 +01:00
Jamie Madill
57cb69a3f1
Fix unrefenced variable warning with AMD_EXTENSIONS disabled.
2016-11-09 13:49:24 -05:00
Johannes van Waveren
2f4c832d47
Merge remote-tracking branch 'upstream/master'
2016-10-21 17:21:46 +09:00
Johannes van Waveren
8e1e717cae
fixed MSVC 2015 compile warnings
2016-10-21 17:21:12 +09:00
David Neto
bb5c02fd23
Add missing guard to code that uses AMD extensions
...
Otherwise compilation fails when ENABLED_AMD_EXTENSIONS is off.
2016-10-19 10:17:25 -04:00
John Kessenich
1fabc0f697
Merge pull request #548 from baldurk/vs2010-compile-fixes
...
VS2010 compile fixes
2016-10-15 23:09:31 -06:00
Rex Xu
17ff343bf4
SPV: Add missing extension declarations for certain AMD extensions.
2016-10-14 17:41:45 +08:00
baldurk
021dbb4cd4
Change negatable_left_shift and negatable_right_shift to inline funcs
...
* This avoids an internal compile error on VS2010 possibly related to
std::enable_if use.
2016-10-13 19:39:24 +02:00
baldurk
cabba60abf
Change {} constructor brackets to ()
2016-10-13 19:32:37 +02:00
baldurk
7cac9e7245
Change "using x = y;" to "typedef y x;" statements
2016-10-13 19:31:15 +02:00
baldurk
a227d27227
Explicitly implement default constructors
2016-10-13 19:30:27 +02:00
baldurk
1a65fc269c
Add std::isnan and std::isinf wrappers for VS2010 that doesn't have them
2016-10-13 19:28:54 +02:00
baldurk
033d3ef22c
Change enum class to plain enum
2016-10-13 19:28:20 +02:00
baldurk
ff160f15ef
Add #include <cstdint> for std::uint32_t usage
2016-10-13 19:24:42 +02:00
Maciej Jesionowski
7208a974aa
SPV: Use SampledImage with OpImageQueryLod
...
Khronos SPIR-V issue #74
2016-10-12 16:16:24 +02:00
Rex Xu
f3b27471f8
SPV: Implement extension SPV_KHR_shader_draw_parameters.
2016-10-11 14:40:35 +08:00
John Kessenich
ed33e05762
HLSL: Do structure conversion for return type struct-punning on non-entry-point functions.
2016-10-06 13:06:13 -06:00
John Kessenich
074ced3e00
Merge pull request #521 from yavn/frag-shader-primitive-id-capability
...
SPV: PrimitiveId in frag shader will emit OpCapability
2016-10-01 11:38:18 -06:00
Rex Xu
c9e3c3c941
Parser: Implement extension GL_AMD_gpu_shader_half_float.
...
- Add built-in types: float16_t, f16vec, f16mat.
- Add support of half float constant: hf, HF.
- Extend built-in floating-point operators: +, -, *, /, ++, --, +=, -=,
*=, /=, ==, !=, >=, <=, >, <.
- Add support of type conversions: float16_t -> XXX, XXX -> float16_t.
- Add new built-in functions.
2016-09-30 16:13:06 +08:00
Maciej Jesionowski
04b3e8746f
SPV: PrimitiveId in frag shader will emit Geometry capability
...
Using PrimitiveId in a fragment shader requires declaring
an OpCapability with either Geometry or Tessellation.
2016-09-27 10:35:09 +02:00
Rex Xu
b707205b0d
SPV: OpGroupBroadcast is unable to handle vector operand.
2016-09-26 15:53:40 +08:00
Rex Xu
36876e6408
SPV: Still have to specify SPIR-V extension for gl_SubGroupSizeARB and gl_SubGroupInvocationARB.
2016-09-23 22:13:43 +08:00
Rex Xu
5159664475
SPV: Implement the extension SPV_KHR_shader_ballot
2016-09-22 16:05:07 +08:00
John Kessenich
eee9d536bc
Track separate entry-point names and mangled names...
...
... and use each in the correct way at consumption sites.
This completes issue #513 .
2016-09-19 18:09:30 -06:00
John Kessenich
6fccb3cd75
Non-functional: Sweep through the stack for consistent with "main" and entry point.
...
Partially addresses issue #513 .
2016-09-19 16:01:41 -06:00
Rex Xu
64b9743ce0
SPV: Support simultaneous l-value swizzle and dynamic component selection.
2016-09-14 14:43:55 +08:00
John Kessenich
b3e24e4359
SPV: Fix issue #506 : generalize struct deep copy to include arrays.
2016-09-11 12:33:43 -06:00
Rex Xu
c9f349234f
SPV: Use OpBitcast to implement 4 pack/unpack built-in functions.
2016-09-09 17:50:07 +08:00
Rex Xu
64bcfdb632
Parser: Add 64-bit type conversion for specialization constant.
2016-09-05 22:20:28 +08:00
John Kessenich
4bf7155051
SPV: Flatten structs for copy when they are GLSL type aliases.
...
Addresses issue #304 and issue #307 by replacing unmatched type OpStores with
per-member copies. Covers assignment statements and most argument passing, but
does not yet cover r-value-based argument passing.
2016-09-02 16:35:01 -06:00
John Kessenich
f2b7f3353b
SPV: Tighten up number of struct-types declared based on decoration.
...
Takes some pressure off of issue #304 .
Structures don't inherit locations and then explicitly decorate
members with them, so removed this reason to have another instance
of a structure type.
2016-09-01 17:05:23 -06:00
steve-lunarg
a8456415b8
WIP: SPV Remapper: add remapper test framework
2016-08-25 10:46:51 -06:00
Rex Xu
2bbbe0621d
SPV: Some group invocation operations should be applied to scalars.
2016-08-23 15:41:05 +08:00
steve-lunarg
811d9f4cad
WIP: SPIRV remapper: allow 64 bit literals in OperandVariableLiteralId class iteration
2016-08-17 08:33:49 -06:00
Dan Baker
55d5f2d4df
HLSL: Changing SPIRV source language to unkown
2016-08-15 16:05:45 -04:00
David Neto
b86e8b629a
Revert "Merge pull request #456 from steve-lunarg/remapper-literal64"
...
This reverts commit ad08b30f69
, reversing
changes made to 28660bb580
.
This backs out the pull request
https://github.com/KhronosGroup/glslang/pull/456 because it introduced
several internal errors even on code that only uses 32-bit numeric
types.
2016-08-12 16:49:58 -04:00
steve-lunarg
b249f2fc24
SPIRV: allow 64 bit literals in OperandVariableLiteralId class iteration.
2016-08-12 09:53:31 -06:00
John Kessenich
2c6038ecf1
Merge branch 'cpp-headers'
2016-08-11 10:01:13 -06:00
John Kessenich
4583b61e20
HLSL: Smear scalars to match vectors for relational operations.
...
Yield a vector relational compare and a vector result.
2016-08-07 19:14:22 -06:00