- Nov 02, 2018
-
-
Grigory Dzhavadyan authored
Consider the following code: layout(constant_id=0) const int Y = 1; layout(constant_id=1) const int Z = 2; layout(constant_id=3) const int X = Y + Z; Previously, it would produce SPIR-V decorations like this: Decorate 21(Y) SpecId 1 Decorate 22 SpecId 3 Decorate 33(Z) SpecId 0 This seems inaccurate, since the spec constant `X` that is dependent on the two others did not get a name in the SPIR-V decorations. This behavior may potentially negatively affect shader introspection capabilities. This change alters the behavior to always add a name, which results in the code above producing the following decorations: Decorate 21(Y) SpecId 1 Decorate 22(X) SpecId 3 Decorate 33(Z) SpecId 0
-
- Oct 29, 2018
-
-
John Kessenich authored
Fix MSVC warning C4065: 'default' but no 'case' labels
-
Corentin Wallez authored
This would happen in SpvPostProcess when we don't enable AMD extensions.
-
- Oct 26, 2018
-
-
John Kessenich authored
-
John Kessenich authored
Fix 8-bit storage nearly always using the UniformAndStorageBuffer8BitAccess capability.
-
John Kessenich authored
-
John Kessenich authored
Allow GL_NV_mesh_shader in fragment shaders for perprimitiveNV
-
Neil Henning authored
UniformAndStorageBuffer8BitAccess capability. When using the 8-bit storage extension it basically always used the `UniformAndStorageBuffer8BitAccess` capability, even in cases where it wasn't required. For instance if we are targeting Vulkan 1.1 (SPIR-V 1.3 or higher), and we are only using 8-bit types in an SSBO, we only need the `StorageBuffer8BitAccess` capability. I fixed this by enabling storage buffer use in Vulkan 1.1 / SPIR-V 1.3 or higher, and then changing the logic to match. I also added some tests that will output different capabilities when run on Vulkan 1.0 and 1.1, thus they are added twice to the test list (one for each version). Fixes #1539
-
Sahil Parmar authored
- Emit relevant capability/extension for use of perprimitiveNV in fragment shader - Remove redundant checks for mesh shader qualifiers in glslang.y - Add profile version check for use of extension GL_NV_mesh_shader - Add a new gtest for use of perprimitiveNV in fragment shader
-
- Oct 25, 2018
-
-
John Kessenich authored
Fixup unused parameter warnings
-
John Kessenich authored
-
- Oct 24, 2018
-
-
Dan Sinclair authored
This CL removes the current parameters which are unused in order to fixup the issued clang warnings.
-
- Oct 22, 2018
-
-
John Kessenich authored
BUILD.gn: remove the static_library target.
-
- Oct 21, 2018
-
-
John Kessenich authored
-
- Oct 20, 2018
-
-
John Kessenich authored
-
- Oct 17, 2018
-
-
Corentin Wallez authored
This had no sources and depended on a source_set which is an invalid use of GN because the source_set gets propagated to dependents of the static_library instead.
-
John Kessenich authored
Fix a parse issue of imageAtomicCompSwap()
-
Rex Xu authored
The max count of arguments is 5 when image2DMS/image2DMSArray is specified.
-
- Oct 16, 2018
-
-
John Kessenich authored
Fix flags.nonprivate to be true for workgroup memory, which is implicitly workgroupcoherent/nonprivate
-
Jeff Bolz authored
Fix flags.nonprivate to be true for workgroup memory, which is implicitly workgroupcoherent/nonprivate
-
- Oct 10, 2018
-
-
Khronos Group Webmaster authored
-
- Oct 05, 2018
-
-
John Kessenich authored
Allow redeclaration of builtin interface blocks in mesh shader
-
John Kessenich authored
Fix inferred output primitive for GL_NV_geometry_shader_passthrough
-
Chao Chen authored
For GL_NV_geometry_shader_passthrough extension, the Inferred output primitive for ElgTriangles should be ElgTriangleStrip. Also removed unnecessary relax for GL_NV_geometry_shader_passthrough in link validate
-
John Kessenich authored
Enhancement: add extra command line options that modifies aml
-
- Oct 04, 2018
-
-
Sahil Parmar authored
Apart from allowing redeclaration of gl_MeshPerVertexNV and gl_MeshPerPrimitiveNV blocks, this change also - - Resize clip/cull perview distances based on static index use - Error out use of both single-view and per-view builtins - Add new gtests with redeclared blocks and edit existing test output - Fix couple of typos
-
- Oct 03, 2018
-
-
John Kessenich authored
BUILD.gn: glslang_sources need the public config too
-
Corentin Wallez authored
-
- Oct 02, 2018
-
-
John Kessenich authored
BUILD.gn: only use complete_static_lib on mac
-
Corentin Wallez authored
-
Neil Roberts authored
This will be used to generate uniform locations with --aml
-
Neil Roberts authored
-
- Sep 28, 2018
-
-
John Kessenich authored
Add ES 320 support and additional error checks for SPV_NV_mesh_shader
-
- Sep 27, 2018
-
-
Sahil Parmar authored
Also continue error checking post requireStage() check
-
- Sep 26, 2018
-
-
Sahil Parmar authored
-
John Kessenich authored
BUILD.gn: make the static_lib complete to fix the build on OSX
-
Corentin Wallez authored
-
Sahil Parmar authored
-
John Kessenich authored
This also fixes some cpp files that uncover issues when building with the flags turned off.
-
John Kessenich authored
Remove NV_EXTENSION ifdefs from ShaderLang.h
-