Sergey Kosarevsky
e9ddba8fd8
CInterface: added _BIT suffix to glslang_messages_t and glslang_reflection_options_t, fixed const-correctness
2019-12-25 00:05:41 +03:00
Sergey Kosarevsky
ca593a98f9
CInterface: reformatted according to .clang-format rules
2019-12-25 00:00:23 +03:00
Sergey Kosarevsky
8cded6ccb9
Added original glslang_c_interface implementation by Viktor Latypov
2019-12-24 23:53:05 +03:00
Chow
786aa339a1
Add Tess machine dependent built-in variables initialization for GLES 3.2
...
Add Tess machine dependent built-in variables initialization for GLES 3.2
2019-12-24 13:56:15 +08:00
Chow
97c4c0936f
Add support for ARB_uniform_buffer_object
...
GLSL Version : >= 120
Purpose:
Allow users to use features by enabling this extension, even in low versions.
Extension Name:
ARB_uniform_buffer_object
Builtin-variables:
Uniform
Builtin-functions:
Nah
Keywords:
Nah
Features:
uniform block
Reference:
https://www.khronos.org/registry/OpenGL/extensions/ARB/ARB_uniform_buffer_object.txt
2019-12-23 16:30:12 +08:00
Chow
a8f9886cc6
Add support for ARB_texture_multisample
...
GLSL Version : >= 140
Purpose:
Allow users to use features by enabling this extension, even in low versions.
Extension Name:
ARB_texture_multisample
Builtin-variables:
Nah
Builtin-functions:
Nah
Keywords:
sampler2DMS, isampler2DMS, usampler2DMS,
sampler2DMSArray, isampler2DMSArray, usampler2DMSArray
Reference:
https://www.khronos.org/registry/OpenGL/extensions/ARB/ARB_texture_multisample.txt
2019-12-23 15:37:04 +08:00
Chow
78b1180466
Add support for ARB_sample_shading
...
Version : >= 130
Extension Name: ARB_sample_shading
Builtin-variables:
"gl_SampleID"
"gl_SamplePosition"
"gl_SampleMask"
"gl_NumSamples"
Reference:
https://www.khronos.org/registry/OpenGL/extensions/ARB/ARB_sample_shading.txt
2019-12-23 14:34:38 +08:00
Chow
44e842cd9c
Add constant expression with mod
...
Purpose:
glsl spec allows to define array with the length of the result of constant expression, the arithmetic operation of "mod(float (7.1), float (4.0))" should be generate the array length at the shader compile time,
but glslang didn't support mod operation for the constant expression in previous implementation;
An example is as following:
###########
#version 460
flat out highp int vtx_out_out0;
void main (void)
{
float array[int(mod(float (7.1), float (4.0)))];
vtx_out_out0 = array.length();
}
###########
2019-12-23 11:29:52 +08:00
John Kessenich
1843c0c415
Fix #2020 : PR #1977 broke HLSL member consistency, this finishes it...
...
using an unitialized member. This commit consistently does not use those
HLSL members unless ENABLE_HLSL is on.
2019-12-09 23:48:50 -07:00
John Kessenich
71b0100ae9
Fix : #2014 : Don't do "extension-on && version >= ..." keyword checks.
...
Keywords should only have tests like "extension-on || version >= ...", or
"extension-off && version <= ...".
2019-12-09 04:34:09 -07:00
John Kessenich
d519167d2e
Fix #1993 : Fully exclude ftransform() from SPIR-V semantics.
2019-12-09 01:35:14 -07:00
Reid Kleckner
24b3e8384e
Remove glslang::pool_allocator::setAllocator
...
TPoolAllocator is not copy assignable, so this setter could never have
been used. After a recent change (878a24ee2), new versions of Clang
reject this code outright.
2019-12-04 14:09:03 -08:00
Ian Romanick
fbcdcac254
INTEL_shader_integer_functions2: Add compiler front-end support
...
The changes to glslang/glslang/MachineIndependent/ParseHelper.cpp exist
purely to prevent even more instances of "warning: enumeration value
‘EOp...’ not handled in switch"
v2: Remove 8-bit types. Overzealous copy-and-paste led to adding
support for a bunch of types that the extension doesn't actually enable.
v3: Update expected test results file. Just changing an expected
results file to make a test pass seems sketchy to me, but I'm not sure
what else to do.
v4: Add missing entry for EOpAbsDifference in
TOutputTraverser::visitBinary. Noticed by JohnK.
2019-12-03 11:06:34 -08:00
Ian Romanick
e0da415dff
INTEL_shader_integer_functions2: Add basic extension tracking
2019-12-03 10:54:22 -08:00
Malcolm Bechard
dd9e570db6
Fix #1981
...
Copy over incoming units localSize if it's set, and this->localSize is not set
Also fix overwritting localSizeSpecId if it's already been set.
2019-11-27 23:37:16 -05:00
John Kessenich
38b4db48f9
Fix #1983 : __ is okay starting with ES 300, rather than 310.
2019-11-23 01:29:02 -07:00
John Kessenich
86258aab80
Merge pull request #1972 from andflo-Arm/master
...
Fix construction issue for 8 and 16 bit types.
2019-11-22 21:38:36 -07:00
John Kessenich
8b5853d4f9
Fix #1987 : Use large enough built-in buffer to hold vec4 of maxint-64.
2019-11-22 11:11:03 -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
3c0d2e5b67
HLSL: Fix #1976 : Don't let ENABLE_HLSL change struct/class layout.
2019-11-15 05:01:27 -07:00
Andreas Flöjt
cb563e68d2
Add a test for 8- and 16-bit construction.
2019-11-14 14:41:52 +01:00
John Kessenich
e7cb9cb9c4
HLSL: Fix #1960 : fmod() was not converting int args to float.
2019-11-12 05:32:51 -07:00
Andreas Flöjt
1b93de4f1d
Fix construction issue for 8 and 16 bit types.
...
The problem is that constructing a float16_t, int8_t, uint8_t, int16_t,
or uint16_t with a non 32-bit argument generates an aggregate with the
wrong construction op. For int8_t and uint8_t, this resulted in a crash.
2019-11-11 11:30:22 +01:00
Kai Ninomiya
d87d3a062e
Fix compileGLSLZeroCopy accidental minification
2019-11-07 11:10:47 -08:00
John Kessenich
36be19fc15
Merge pull request #1954 from corporateshark/master
...
Fix warning: size_t->int implicit cast
2019-11-03 21:33:42 -07:00
John Kessenich
31c3370d83
Bump up the generator version, which is exposed in SPV test results.
2019-11-02 21:26:40 -06:00
Sergey Kosarevsky
d48881c79b
Fix warning: size_t->int implicit cast
2019-11-03 01:34:54 +03:00
John Kessenich
7f77b2e866
Bump version.
2019-11-01 10:51:21 -06:00
John Kessenich
f8d1d7442b
Web: Reclaim more space and make all work w/wo GLSLANG_WEB.
2019-10-23 03:15:55 -06:00
John Kessenich
e5eee8fb03
Web: Add basic atomics for SSBOs.
2019-10-23 00:25:39 -06:00
John Kessenich
3dd1ce5b54
Web: Add SSBOs and a few other missing compute features.
2019-10-23 00:25:39 -06:00
John Kessenich
51ed01c877
Web: Add compute stage.
2019-10-23 00:25:39 -06:00
John Kessenich
61c22e255d
Web: Add separate texture/sampler, exclude *CubeArray*.
...
Looks like will add about 1K compressed size to executable footprint.
2019-10-23 00:25:38 -06:00
Timo Suoranta
f0a85fc744
Fixes for gcc 9 / -Werror=deprecated-copy
...
Also enable -Werror-deprecated-copy for GCC version 9 and later.
2019-10-19 15:36:34 +03: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
765cee8441
GLSL/SPV: Pre SPIR-V 1.5, subgroupQuadBroadcast index must be constant
2019-10-14 23:08:26 -06:00
John Kessenich
101ca388fb
Merge pull request #1880 from georgeouzou/master
...
Add support for GL_ARB_explicit_uniform_location
2019-10-12 08:24:11 -06:00
georgeouzou
01a5047373
remove redundant check
2019-10-12 15:17:29 +03:00
Ryan Harrison
7c9accb653
Remove unnecessary semi-colons and add warning about them
...
These are causing integration issues with Chromium down stream since
it is more strict about these.
2019-10-11 11:25:04 -04:00
John Kessenich
696703800e
Merge pull request #1888 from Roy-AMD/Adjusting-code-interface
...
Adjusting code interface
2019-10-11 01:56:05 -06:00
John Kessenich
135e3e35ea
Merge pull request #1918 from KhronosGroup/format-attributes
...
HLSL: Add attributes for image formats and nonreadable/nonwritable
2019-10-03 11:23:16 -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
7bc047326e
Merge pull request #1906 from ShchchowAMD/master
...
Reflection will crash when the VS input symbol defines the same name with FS output symbol
2019-09-25 08:24:53 -06:00
John Kessenich
c2fafea970
GLSL/SPV: Fix #1900 : Drop const on literal when doing an object copy.
2019-09-20 06:08:49 -06:00
John Kessenich
f7a48b153f
Merge pull request #1907 from kainino0x/separate-web-and-emscripten
...
Separate GLSLANG_WEB (min-size build) and Emscripten options
2019-09-19 09:12:52 -06:00
John Kessenich
90e402f42b
SPV_KHR_physical_storage_buffer/SPV: Add GL_EXT_buffer_reference_uvec2
...
Adds uvec2 <-> reference constructor support.
Switches from EXT to KHR for physical_storage_buffer.
2019-09-18 23:52:36 -06:00
John Kessenich
d0848b72fa
Merge branch 'master' into separate-web-and-emscripten
2019-09-18 01:55:12 -06:00
Kai Ninomiya
230117a02c
use custom es6 modularization instead of MODULARIZE=1
2019-09-18 00:04:09 -07:00
Kai Ninomiya
4391924ac5
Separate GLSLANG_WEB (min-size build) and Emscripten options
...
Allows building non-min-size builds with Emscripten.
Adds ENABLE_GLSLANG_WEB_DEVEL.
Moves the glslang.js files to OSDependent/Web.
Small cleanups and docs update.
2019-09-17 23:18:03 -07:00