Commit Graph

2296 Commits

Author SHA1 Message Date
John Kessenich
4b1a890ba1 Nonfunctional, infrastructure: Clean up Test directory droppings.
The multithreaded outputs in particular can be troublesome when searching.
2017-07-06 12:06:30 -06:00
John Kessenich
645fdaa7cf Merge pull request #971 from amdrexu/bugfix
HLSL: Translate directive [flatten] and [branch] to SPV control mask.
2017-07-06 00:44:32 -06:00
Rex Xu
57e65929e4 HLSL: Translate directive [flatten] and [branch] to SPV control mask. 2017-07-06 11:31:33 +08:00
John Kessenich
423fae4858 Tests: Add a test for concurrent use of std430 and push_constant. 2017-07-05 18:34:15 -06:00
John Kessenich
9645f78293 Merge pull request #965 from chaoc/spv-khr-post-depth-coverage
Implement SPV_KHR_post_depth_coverage
2017-07-05 14:48:19 -06:00
chaoc
c120452754 Implement SPV_KHR_post_depth_coverage
Added support for both extension GL_ARB_post_depth_coverage and GL_EXT_post_depth_coverage.
2017-07-05 12:27:15 -07:00
John Kessenich
33bf7b2f89 Merge pull request #974 from LoopDawg/anyall-types
HLSL: handle type conversion for any/all intrinsics
2017-07-05 13:12:08 -06:00
LoopDawg
54b9ff9c34 HLSL: handle type conversion for any/all intrinsics
HLSL allows float/etc types for any/all intrinsics, while the
SPIR-V opcode requires bool.  This adds a simple decomposition
to type convert the argument.  It could get a little more clever
in some of the type cases if it ever had to.
2017-07-05 12:19:39 -06:00
John Kessenich
17b5f9175d Merge pull request #969 from d3x0r/patch-1
Add option to skip installation
2017-07-04 11:00:42 -06:00
John Kessenich
3f70d405db Merge pull request #970 from rohith10/master
Fix CMake scripts to set the POSITION_INDEPENDENT_CODE property correctly
2017-07-04 11:00:23 -06:00
Rohith Chandran
6206091e63 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. 2017-07-04 10:53:45 -04:00
d3x0r
4593312490 Update CMakeLists.txt 2017-07-04 06:01:09 -07:00
d3x0r
4e53d9052d Update CMakeLists.txt 2017-07-04 06:00:35 -07:00
d3x0r
89de217f01 Update CMakeLists.txt 2017-07-04 06:00:04 -07:00
d3x0r
9c6ea324cb Update CMakeLists.txt 2017-07-04 05:59:34 -07:00
d3x0r
57a2b22d34 Update CMakeLists.txt 2017-07-04 05:59:03 -07:00
d3x0r
cde46127a1 Update CMakeLists.txt 2017-07-04 05:58:07 -07:00
d3x0r
02ed9eb2a1 Update CMakeLists.txt 2017-07-04 05:57:47 -07:00
d3x0r
42b6926192 Update CMakeLists.txt 2017-07-04 05:57:08 -07:00
d3x0r
f8f494ff14 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.
2017-07-04 05:54:57 -07:00
John Kessenich
eb5f12d1ca Merge pull request #967 from dsrbecky/multiview
Multiview extension: Accept layout(num_views) qualifier
2017-07-03 22:14:09 -06:00
John Kessenich
d1be7545c6 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.
2017-07-03 21:49:09 -06:00
John Kessenich
02a14e7c99 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.
2017-07-03 21:49:09 -06:00
John Kessenich
0af795e808 Merge pull request #966 from TiemoJung/io_remapper_update
io resolver improvements
2017-07-03 21:48:58 -06:00
John Kessenich
aad93a80b2 Merge pull request #959 from TiemoJung/texture_upgrade
Fix for not transforming all image symbols into sampled images symbols
2017-07-03 21:47:39 -06:00
David Srbecky
5513d9d0d8 Multiview extension: Accept layout(num_views) qualifier 2017-07-03 15:51:40 +01:00
t.jung
0422eb234f io resolver improvements
- adds stage parameter to end notify
- adds begin notify
- adds begin resolve
- adds end resolve

Change-Id: Ib134fe42a1a6d996d81dca59475cce6b4a9ff865
2017-07-01 10:29:11 +02:00
John Kessenich
994660208c Merge pull request #964 from dsrbecky/multiview
Implement extensions GL_OVR_multiview and GL_OVR_multiview2
2017-06-30 16:39:32 -06:00
David Srbecký
0fbe02c6a0 Implement extensions GL_OVR_multiview and GL_OVR_multiview2
They are almost identical to the already supported GL_EXT_multiview
2017-06-30 19:11:56 +01:00
t.jung
fde4975d27 Fix for not transforming all image symbols into sampled images symbols
Change-Id: I10f9bcea2e97f36912a81214552b93db4805b61a
2017-06-30 07:06:17 +02:00
John Kessenich
2ae23ca1ca Merge pull request #957 from amdrexu/feature
Implement extension GL_ARB_shader_stencil_export
2017-06-29 15:28:52 -06:00
John Kessenich
37d7cfb129 Merge pull request #961 from benvanik/fix_order
Fixing initialization order to fix -Wreorder warning in clang.
2017-06-29 15:20:59 -06:00
Ben Vanik
82da44d4d7 Fixing initialization order to fix -Wreorder warning in clang. 2017-06-29 11:13:35 -07:00
John Kessenich
89400ea73e 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.
2017-06-29 10:46:47 -06:00
Rex Xu
37cdceed41 Implement extension GL_ARB_shader_stencil_export 2017-06-29 17:50:46 +08:00
John Kessenich
89f8d1e64f HLSL: Fix #942: Map SV_TargetN to SPV Location N. 2017-06-27 15:17:38 -06:00
John Kessenich
4f54c0c487 HLSL: Fix hull-shader test. 2017-06-26 19:56:41 -06:00
John Kessenich
da9eb815b3 HLSL: Don't pin down which tessellation stage must error check input primitive. 2017-06-26 17:56:54 -06:00
John Kessenich
fe6689c6c4 HLSL: support point mode. 2017-06-26 17:52:22 -06:00
John Kessenich
102328b75f Merge pull request #950 from dsrbecky/shadow_samplers
Add support for GL_EXT_shadow_samplers
2017-06-26 15:50:18 -06:00
John Kessenich
a8a8320451 Merge pull request #948 from KhronosGroup/env-control
Compilation-environment control
2017-06-26 15:46:36 -06:00
John Kessenich
6353d55e94 Command-line: Add support for setting language's environment. 2017-06-26 14:49:11 -06:00
John Kessenich
c178f0a4d9 Infrastructure: Non-functional: rationalize some command-line processing. 2017-06-26 14:49:11 -06:00
John Kessenich
4be4aebdcd Infrastructure: Non-functional: Move to rich description of environment.
This is for input languages, client APIs, code to generate, etc.
2017-06-26 14:49:11 -06:00
David Srbecky
c6ac40a1a7 Add support for GL_EXT_shadow_samplers 2017-06-26 17:43:32 +01:00
John Kessenich
4fbb8cb45e Merge pull request #947 from LoopDawg/clip-cull-distance
HLSL: handle clip/cull distance array semantic matching
2017-06-23 17:57:25 -06:00
LoopDawg
c44b95fdec 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
2017-06-23 13:06:53 -06:00
John Kessenich
4329d555ad HLSL: Broaden solution for #940, editing integer input for 'flat'. 2017-06-21 01:35:57 -06:00
John Kessenich
f0bc598dd7 HLSL: Force flat interpolation for structure members. Fixes #940. 2017-06-20 13:19:53 -06:00
John Kessenich
be1085cb88 Build: add switch default to make compilers happy 2017-06-20 09:26:33 -06:00