rdb
78a3c915a1
HLSL: Add better diagnostic when using in/out qualifiers in global scope ( #2258 )
2020-06-02 00:32:35 -06:00
rdb
b56e0e441b
HLSL: Recognize POSITION semantic et al in DX9 compatibility mode ( #2255 )
2020-06-02 00:30:50 -06:00
rdb
d8edfd8e66
HLSL: fix handling of uniform qualifier in entry point parameters ( #2254 )
...
* HLSL: Fix handling of uniforms in entry point parameters
* HLSL: fix handling of "uniform in"
* Tests: Update baseResults of hlsl.function.frag.out for #2254
* HLSL: fix uniforms in function parameters for opaque types
2020-06-02 00:30:07 -06:00
greg-lunarg
e00d27c6d6
Fix missing patch decoration for TessFactor PCF arg ( #2249 )
...
Fixes #1553
2020-05-27 22:12:42 -06:00
greg-lunarg
7c753a7253
Flatten all interface variables ( #2217 )
...
Specifically, add flattening of arrayed io for geometry and
tesselation shaders. Previously some interface structs just had
builtins split out which caused some interfaces to not be exactly
the same as that of flattened adjacent stages, affecting validation
and correctness.
This obviates builtin splitting. That will be removed in a followup
commit. It was left in for this commit to better exhibit the functional
changes that were made.
Fixes #1660 .
2020-05-18 02:13:10 -06:00
ntfs.hard
f68024543f
opposite inner condition
2020-03-30 00:55:49 +03:00
John Kessenich
abfc4c2ceb
Fix part of #2070 : Correctly handle promotion for <unary-op>(int).
...
This still only handles a scalar correctly, and some
vector cases need additional fixes.
2020-02-18 06:53:39 -07:00
John Kessenich
b0ada80356
HLSL: Fix #1974 : ignore input primitives on non-entry-point functions.
2020-01-17 00:14:51 -07:00
Arfrever Frehtes Taifersar Arahesis
bd69a4fb12
Respect CMAKE_INSTALL_LIBDIR in installed CMake files
...
Fixes #1965
2019-11-18 11:11:55 -08:00
John Kessenich
b03e4fc4e0
Merge pull request #1866 from rumblehhh/master
...
Export glslang targets on installation
2019-10-15 04:25:20 -06:00
John Kessenich
8a97d38913
HLSL: Fix #1912 : add attribute syntax for nonreadable/nonwritable
2019-09-29 19:16:25 -06:00
John Kessenich
2d9b0a3550
HLSL: Fix #1912 : add attribute syntax for overriding image formats.
2019-09-28 11:39:15 -06:00
John Kessenich
54c72c6d24
HLSL: Fix #1903 Catch 0-argument case to constructors.
2019-09-18 00:04:57 -06:00
John Kessenich
7015bd658e
Web: Remove/rationalize a set of *_EXTENSIONS, using GLSLANG_WEB.
...
Focus was on the front end (not SPIR-V), minus the grammar.
Reduces #ifdef count by around 320 and makes the web build 270K smaller,
which is about 90% the target size.
The grammar and scanner will be another step, as will the SPIR-V backend.
This makes heavy use of methods #ifdef'd to return false as a global way
of turning off code, relying on C++ DCE to do the rest.
2019-08-20 23:21:55 -06:00
James Rumble
c6f7294ced
Handle install vs build include directories
...
Fix target_include_directories to appropriately handle build-tree and the install-tree.
2019-08-06 15:29:31 +01:00
James Rumble
ab6d1499e1
Export glslang targets on installation
...
This allows the targets to be used in other cmake projects. See the following for more details:
https://cmake.org/cmake/help/latest/manual/cmake-packages.7.html#creating-packages
https://foonathan.net/blog/2016/07/07/cmake-dependency-handling.html
2019-08-06 14:47:51 +01:00
John Kessenich
4b4b41a634
HLSL: Fix #1815 : Don't constant fold spec-constant array indexing.
2019-07-03 01:28:51 -06:00
Matthew Albrecht
cda52d5333
Fixed .dll install on MSVC.
2019-05-23 19:06:44 -05:00
John Kessenich
5cb2fa2ad2
Fix #1759 : Check for specialization constants when literals required.
2019-05-03 08:40:35 -06:00
Dan Sinclair
0560138e66
Fixup leak of TString
...
In decomposeIntrinsic a new TString was being allocated and passed into
a TVariable. That string was leaking. This CL converts the new TString
to call NewPoolTString to allocate from the TString pool.
2019-02-20 16:40:13 -05:00
John Kessenich
567396b6b4
Whitespace: Fix some tabs->spaces, mostly to retriggered failed bots.
2019-02-11 03:43:12 -07:00
Rex Xu
eaf31ab98c
Add 8-bit/16-bit transform feedback support for future use
2019-02-03 23:31:32 +08:00
John Kessenich
544c039d26
HLSL: Fix #1679 : Add HLSL earlydepthstencil -> SPV EarlyFragmentTests.
2019-01-28 22:19:43 -07:00
John Kessenich
d9cee59afa
Merge pull request #1626 from KhronosGroup/extension-support
...
Infrastructure: Generalize and broaden per-variable extension checking.
2019-01-23 12:05:22 -08:00
Hodgman
0bb89f5809
HLSL: Protect against some crashes
2019-01-21 18:21:11 -08:00
John Kessenich
493dee0ade
Merge pull request #1656 from amdrexu/bugfix
...
Fix xfb_stride incorrectness(#1654 )
2019-01-17 21:53:34 -07:00
John Kessenich
d9739794e9
Merge pull request #1662 from dneto0/fix-leak2
...
HLSL: Avoid leaking a shadow sampler struct
2019-01-17 06:29:41 +07:00
David Neto
edadbed6fb
HLSL: Avoid leaking a shadow sampler struct
2019-01-16 17:04:58 -05:00
David Neto
806e0573da
Avoid leaking name for counter buffer
2019-01-16 10:44:31 -05:00
John Kessenich
b2395e9ddf
HLSL: Fix #1655 ; use "" for nullptr file names. Needs test cases.
2019-01-16 16:07:51 +07:00
Rex Xu
75c5603ada
Fix xfb_stride incorrectness( #1654 )
...
Add int64 support in XFB. Change containsDouble to contains64BitType. Make
it more general.
2019-01-14 12:02:58 +08:00
John Kessenich
28be4543cd
Infrastructure: Generalize and broaden per-variable extension checking.
2019-01-09 22:21:22 +07:00
John Kessenich
b23d232ec5
Licensing. Fixes #958 . Add licenes file and update copyrights.
2018-12-14 10:47:35 -07:00
Rémi Verschelde
ebfd91a719
Remove Unix executable permission from text files
2018-12-10 10:49:16 +01:00
John Kessenich
bd1c1831d5
Manually merge ClemensRognerSD-dx9-sampler and resolve conflicts.
2018-12-07 18:38:26 -07:00
greg-lunarg
5d43c4aac7
SPV: Fix #1575 , fix #1593 : Support HLSL #line
...
SPIR-V OpLines now contain filenames from HLSL-style #lines.
2018-12-07 17:36:33 -07:00
John Kessenich
e3b76ed608
Merge branch 'scalar_block_layout' of https://github.com/jeffbolznv/glslang into jeffbolznv-scalar_block_layout
2018-11-16 09:57:33 -07:00
Jeff Bolz
7da39ed968
Implement GL_EXT_scalar_block_layout
2018-11-14 09:30:53 -06:00
t.jung
31cd98c7b2
HLSL: implemented c register handling
...
Adjusted a test not to use c register for
a structured buffer, they are supposed to
use t registers
Added comments with hints for what are the
register types are used for.
2018-11-14 13:12:12 +01:00
John Kessenich
918caa7ee4
Merge pull request #1547 from Igalia/apinheiro/xfb-struct-assignment
...
Apinheiro/xfb struct assignment
2018-11-09 12:27:39 -07:00
Jeff Bolz
02ed310ac3
Rename PCH macro to glslang_pch (to avoid name collision) and update to latest spirv-tools
2018-11-07 09:35:31 -06:00
Jeff Bolz
22d0b7cbad
Use precompiled headers for some glslang projects
2018-10-31 15:38:08 -05:00
Alejandro Piñeiro
af8c1bdb16
ParseHelper: assign xfb_offset for struct members too
...
If the out variable is a struct type, with a xfb_offset explicitly
assigned, the members need to get their xfb_offset assigned. This is
specially relevant, as we cannot use layout qualifiers on struct
members.
2018-10-31 10:34:44 +01:00
John Kessenich
086febc448
PP: Fix #155 : Don't give error on HLSL PP-only parsing.
2018-10-25 12:43:02 -06:00
otakuto
d03da06ac1
Remove execute permissions
2018-08-07 03:16:20 +09:00
John Kessenich
62faea79d7
Merge pull request #1451 from KhronosGroup/shadow-forces-depth
...
GLSL/SPV: If a texture is used with a shadow sampler, force 'shadow'.
2018-07-23 16:41:00 -07:00
John Kessenich
11da9eed5d
HLSL: Fix #1445 : distance() works on scalars.
2018-07-23 16:55:01 -06:00
John Kessenich
7d4c9a07b5
GLSL: Construct shadow texture from non-shadow sampler.
...
Tracks https://github.com/KhronosGroup/GLSL/pull/22 .
2018-07-23 15:59:09 -06:00
John Kessenich
0ea33a2628
Non-functional: Retrigger bots; the previous failure looks suspicious.
2018-07-11 02:24:36 -06:00
John Kessenich
cf6bd066b9
HLSL: Fix #1432 : Globally initialize local static variables.
2018-07-11 01:09:14 -06:00