Felix Maier
8e18714bb6
Fix Web build
2020-05-11 22:06:21 +02:00
Pankaj Mistry
e05cc20ec2
Add support for es extension GL_EXT_blend_func_extended
...
* Introduces builtin variables gl_SecondaryFragColorEXT and gl_SecondaryFragDataEXT
* Introduces builtin constant gl_MaxDualSourceDrawBuffersEXT
* enables support for layout qualifier "index" in es profile
2020-04-30 23:21:14 -07:00
pmistryNV
2c53baedbb
Add support for extension GL_EXT_shader_integer_mix ( #2203 )
2020-04-30 22:41:33 -06:00
pmistryNV
f03cb290ac
Add support for extension GL_ARB_texture_query_lod. ( #2194 )
2020-04-27 23:46:54 -06:00
dan sinclair
b858d41964
Remove unused Es310Desktop430 ( #2200 )
...
This variable is no longer used, remove.
2020-04-27 22:05:24 -06:00
pmistryNV
ea50f6d77e
Add support for extension GL_ARB_shading_language_packing ( #2192 )
2020-04-27 02:46:32 -06:00
pmistryNV
7d65f09b83
Add support for extension GL_ARB_shader_storage_buffer_object ( #2184 )
...
Enable below features for GL Core version 420:
* layout qualifier "std430"
* storage qualifier "buffer"
* atomic memory functions
2020-04-22 22:46:52 -06:00
pmistryNV
3f4e5c4563
Add support for extension GL_ARB_shader_image_size ( #2185 )
2020-04-19 20:47:54 -06:00
pmistryNV
9f46e3dd5e
Add support for extension GL_ARB_shader_bit_encoding ( #2183 )
2020-04-17 05:24:12 -06:00
alelenv
75de196cec
Add support for EXT_ray_flags_primitive_culling. ( #2173 )
...
Fixes issue #2169 .
2020-04-08 22:09:20 -06:00
dan sinclair
d50acf97c4
Remove unused variables.
...
This CL removes two unused variables from the initialization code.
2020-03-30 10:03:13 -04:00
Geoffrey Martin-Noble
9b3baf9881
Add missing braces to if condition
...
The indentation implies this was the intention. Noticed the issue while trying to compile our code with -Werror -Wall
2020-03-25 20:52:43 -07:00
Neslisah Torosdagli
7f689bebec
const rayFlag defs used in the test cases in stead of numerical values
2020-03-23 23:09:44 -04:00
Neslisah Torosdagli
50a722818b
GL_EXT_ray_query glslang updates, and test cases added.
2020-03-20 18:23:27 -04:00
Neslisah Torosdagli
34e874228e
comment update, rayQueryEXT is writable, readonly check removed.
2020-03-19 16:53:42 -04:00
Torosdagli
6719ce09db
GL_EXT_ray_query updates
2020-03-19 16:52:00 -04:00
Neslisah Torosdagli
120b3daa93
comment update, rayQueryEXT is writable, readonly check removed.
2020-03-19 16:46:30 -04:00
Torosdagli
06c2eee720
GL_EXT_ray_query updates
2020-03-19 16:46:30 -04:00
Daniel Koch
db32b243ff
Add support for GLSL_EXT_ray_tracing
...
and SPV_KHR_ray_tracing
2020-03-17 20:42:47 -04:00
Jeff Bolz
40007b862d
Forbid memoryBarrierAtomicCounter for Vulkan compiles
2020-03-16 23:53:04 -05:00
Jeff Bolz
04d73731de
GL_EXT_debug_printf implementation
2020-03-05 13:41:34 -06:00
John Kessenich
56364b6b60
Copyright update, mostly to trigger bots again.
2020-03-01 04:51:40 -07:00
John Kessenich
248d2c5f7c
Merge pull request #2035 from ShchchowAMD/builtin_max_limits
...
Add Tess machine dependent built-in variables initialization for GLES…
2020-01-26 22:38:13 -07:00
John Kessenich
5181367062
Merge pull request #1998 from ShchchowAMD/ARB_gpu_shader_fp64
...
Add support for ARB_gpu_shader_fp64
2020-01-08 06:18:44 -07:00
Chow
ac6b7cf581
Add builtin constants
...
Add builtin constants:
gl_MaxFragmentUniformVectors and gl_MaxVertexUniformVectors.
They should both be available since version 410 for core.
2020-01-06 15:53:20 +08:00
Chow
a3c7a25e10
Add support for ARB_gpu_shader_fp64
...
GLSL Version : >= 150
Purpose:
Allow users to use features by enabling this extension, even in low versions.
Extension Name:
ARB_gpu_shader_fp64
Builtin-variables:
Nah
Builtin-functions:
functions overloaded for this extension, please check registry in reference.
Keywords:
Double
Features:
add support for type "double"
Reference:
https://www.khronos.org/registry/OpenGL/extensions/ARB/ARB_gpu_shader_fp64.txt
Add support for implicit conversion
1. Remove builtin double vertex (this is introduced by vertex_attrib_64bit
2. Add extension check and implicit conversion as double has been introduced
3. Add test results.
2020-01-06 11:08:20 +08: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
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
John Kessenich
d519167d2e
Fix #1993 : Fully exclude ftransform() from SPIR-V semantics.
2019-12-09 01:35:14 -07: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
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
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
Jeff Bolz
c5b669e04c
Add GL_EXT_shader_subgroup_extended_types support
2019-09-17 23:44:27 -05:00
John Kessenich
fe0b2bd694
Merge pull request #1897 from dj2/unused
...
Comment out unused params; Fix type warning.
2019-09-12 08:40:57 -06:00
Dan Sinclair
23e9f5ca74
Comment out params instead of removing
2019-09-11 08:59:47 -04:00
Dan Sinclair
24a5d23d5a
Remove unused params
2019-09-10 15:39:22 -04:00
Rex Xu
3b1b9e2957
Fix incorrect function prototypes of 64-bit findLSB/findMSB
...
According to the 32-bit counterparts, their forms should be
genI64Type findLSB(genI64Type value)
genI64Type findLSB(genU64Type value)
genI64Type findMSB(genI64Type value)
genI64Type findMSB(genU64Type value)
2019-09-09 22:53:02 +08:00
Jeff Bolz
387657e4cf
GL_NV_integer_cooperative_matrix support
2019-08-22 20:37:59 -05:00
John Kessenich
369ffa9543
web: Fix accidental additon of refract() prototypes and update README.
2019-08-21 07:54:27 -06:00
John Kessenich
fb4f2333da
Web: Use isEsProfile() instead of run-time testing; remove more atomics
...
Saves 2.5K, and design is better.
2019-08-20 23:21:56 -06:00
John Kessenich
155d351f86
Web: Remove unused stage functionality, SPIR-V logger, and hex_utils
...
Saves another 20K.
2019-08-20 23:21:56 -06:00
John Kessenich
3e4b6ff76a
Web: Tighten up sampling code and interfaces.
...
Saves about 9K.
2019-08-20 23:21:56 -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
John Kessenich
e66dace97e
Web: First pass of tabling the built-in function declarations.
...
Doing this much saved about 11.5K, including adding all the infrastructure.
2019-08-20 23:21:55 -06:00
Ashwin Lele
c1e61d6cff
Fix bugs in missing Builtin decoration for some NV builtins for tessellation
...
control shaders.
Fix bug in member remapping.
2019-07-22 12:36:38 -07:00
John Kessenich
9f2236e58e
Build: shut up warning to add unnecessary parens.
2019-07-17 19:15:47 -06:00