Commit Graph

4642 Commits

Author SHA1 Message Date
Jeremy Hayes
08cf7bd2ff Update known_good.json 2022-12-06 14:01:55 -07:00
Greg Fischer
e3e8baf8c5
Merge pull request #3079 from gby/GL_ARM_shader_core_builtins
GL_ARM_shader_core_builtins support
2022-12-06 13:11:57 -07:00
Gilad Ben-Yossef
0464ff4515 GL_ARM_shader_core_builtins support
Add support for GL_ARM_shader_core_builtins and SPV_ARM_core_builtins,
including initial tests
2022-12-05 14:15:47 +02:00
Johannes Kauffmann
a7603c132d Use nullptr where possible instead of NULL or 0 2022-11-30 09:33:28 -07:00
Johannes Kauffmann
728c689574 Include: PoolAlloc: do not rely on CMake define
On Windows, _DEBUG is defined by CMake if CMAKE_BUILD_TYPE is Debug. But
on other platforms, this is not the case and thus in debug mode, the
guard checks are not enabled.

Instead, rely on the NDEBUG define, which is always defined in release
mode (Release, RelWithDebInfo and MinSizeRel). This works reliably on
all platforms: It is also used to enable or disable assertions.
2022-11-29 14:58:29 -07:00
Greg Fischer
12bb8602dd
Merge pull request #3077 from greg-lunarg/edos3
Add EliminateDeadOutputStores to API.
2022-11-28 16:27:56 -07:00
Greg Fischer
7f047b986b Add EliminateDeadOutputStores to API.
Also eliminates dead output variables and unused output variable
components. Finally calls aggressive dead code elimination.

AnalyzeDeadOutputStores also supplied to be called on the following
shader to provide input for the Eliminate* function.
2022-11-28 15:09:41 -07:00
Greg Fischer
0cd93a0efe
Merge pull request #3076 from greg-lunarg/kg124
Update known goods
2022-11-28 13:27:56 -07:00
Greg Fischer
1ddba01a80 Update known goods 2022-11-28 12:06:59 -07:00
Sven-Hendrik Haase
88fd417b0b Fix locations of cmake files in side compat shims
In https://github.com/KhronosGroup/glslang/pull/3027, the installed cmake files were
stuck into a /cmake subdir but this isn't reflected in these compatibility shims.
2022-11-16 16:54:09 -07:00
Greg Fischer
2b2523fb95
Merge pull request #3061 from ShabbyX/remove-angle-build-flag
Remove GLSLANG_ANGLE
2022-11-08 14:46:48 -07:00
Shahbaz Youssefi
6b2493a4d8 Remove GLSLANG_ANGLE
ANGLE no longer links with glslang.  This change reverts
1ef2e250fc which added a flag to strip
glslang to reduce its binary size.  This flag is no longer needed.
2022-11-08 15:11:36 -05:00
Greg Fischer
f4cba22d08
Merge pull request #3060 from greg-lunarg/limit3
Fix include in resource_limits_c.h
2022-11-08 10:40:25 -07:00
Greg Fischer
cc4c7330a2 Fix include in resource_limits_c.h
Fixes #3059
2022-11-07 12:06:46 -07:00
Greg Fischer
5e08deae05
Merge pull request #3057 from ShabbyX/fix-gn-build
Fix gn build
2022-11-03 14:01:33 -06:00
Shahbaz Youssefi
1813a14af3 Fix gn build 2022-11-03 10:17:33 -04:00
Greg Fischer
8da6495058
Merge pull request #3055 from greg-lunarg/limit2
Improve ResourceLimits interface to be more forward compatible
2022-11-02 10:52:49 -06:00
Greg Fischer
90c5214344 Improve ResourceLimits interface to be more forward compatible
New interface allows users to generate ResourceLimits for interface so
that additions to TBuiltInResource do not break the ABI.

Users should use the glslang-default-resource-limits library and the
Public/ResourceLimits.h header. Similar changes have been made to the
C interface. Use Public/resource_limits_c.h.

Fixes #2822
2022-11-01 12:06:51 -06:00
Jeremy Hayes
1a8869e4d1
Merge pull request #3050 from Try/mesh-shader-ibo-fixup
mesh shader: fix implicit index-array size calculation for lines and triangles
2022-10-31 15:38:24 -06:00
Try
114092494b update failing test-cases 2022-10-19 21:45:30 +02:00
Greg Fischer
980ac50813
Merge pull request #3047 from akien-mga/spirv.hpp-dos2unix
Convert spirv.hpp line endings to LF (Unix style)
2022-10-19 11:33:25 -06:00
Jeremy Hayes
0c3c37de1b
Merge pull request #3046 from amdrexu/bugfix
Fix incorrect parse message of mesh shader
2022-10-19 10:45:29 -06:00
Greg Fischer
a0ad0d7067
Merge pull request #3043 from gnl21/helper-invocation
Change Volatile generation for HelperInvocation
2022-10-17 13:51:33 -06:00
Try
a21b8d8d8d mesh shader: fix implicit index-array size calculation for lines and triangles
#fixed #3041
2022-10-16 15:36:19 +02:00
Graeme Leese
5c352476c7 Test for spv1.6 + memory model HelperInvocation
This should generate a Volatile tag on the access, not on the variable
itself.
2022-10-14 15:30:03 +01:00
Graeme Leese
d570b2b05b Change Volatile generation for HelperInvocation
For SPIR-V 1.6 HelperInvocation accesses need to be volatile to avoid
undefined values when shaders execute 'demote'. Previously this was
always decorated on the gl_HelperInvocation variable, but this is not
valid when the Vulkan memory model is in use.

When the memory model is enabled, stop decorating the variable
declaration and apply the memory semantic to access chain loads instead.

Fixes #3042
2022-10-14 15:23:41 +01:00
Greg Fischer
5755de46b0
Merge pull request #3049 from jeremy-lunarg/hayes-update-changes
Update CHANGES for release 11.12.0
2022-10-13 11:29:59 -06:00
Jeremy Hayes
78221d619e Update CHANGES for release 11.12.0 2022-10-13 10:58:53 -06:00
Greg Fischer
ef6c9714a8
Merge pull request #3048 from jeremy-lunarg/hayes-update-known-good
Update known_good.json
2022-10-12 17:48:02 -06:00
Jeremy Hayes
a77d26f0af Update known_good.json 2022-10-12 16:56:40 -06:00
Greg Fischer
568e233ecf
Merge pull request #3037 from mbechard/master
only use dead input elimination on vertex shaders
2022-10-12 14:29:15 -06:00
Jeremy Hayes
15bd50483f
Merge pull request #3045 from James2022-rgb/feature/c_interface_preamble_support
Add preamble support to the C interface.
2022-10-12 11:55:38 -06:00
Rémi Verschelde
7541f39849 Convert spirv.hpp line endings to LF (Unix style)
This was the only header using CRLF, the rest already uses LF.
2022-10-11 10:59:19 +02:00
Rex Xu
17b0a21877 Fix incorrect parse message of mesh shader
When GL_EXT_mesh_shader is enabled, the check of layout qualifiers
'max_vertices' and 'max_primitives' should use
gl_MaxMeshOutputVerticesEXT and gl_MaxMeshOutputPrimitivesEXT.
2022-10-11 15:01:35 +08:00
James0124
573e9849be CInterface: Add preamble support.
Add interface for `TShader::setPreamble`.
2022-10-08 09:33:21 +09:00
Jeremy Hayes
89db4e1caa
Merge pull request #3038 from ewerness-nv/extmicromapongithubmaster
GL_EXT_opacity_micromap
2022-10-05 22:35:58 -06:00
Jeremy Hayes
1846ead23b
Merge pull request #3028 from rhabacker/fix-shared-build-mode
cmake: Do not install static libraries in shared build mode
2022-10-05 22:20:52 -06:00
Eric Werness
1b1824f90f GL_EXT_opacity_micromap 2022-09-29 10:21:01 -07:00
Jeremy Hayes
28b53119bd
Merge pull request #3027 from rhabacker/fix-cmake-files-install-location
cmake: Use common installation directory for cmake support files.
2022-09-28 08:08:49 -06:00
Malcolm Bechard
d11c3ff315 only use dead input elimination on vertex shaders
It can't be safely used unilaterally on other stages, since that will
result in output/input mismatches between stages. They arn't
having their output variables eliminated accordingly.
2022-09-28 00:07:01 -04:00
Jeremy Hayes
2ab42a9a1f
Merge pull request #3012 from JohannesKauffmann/fix-wundef
Fix -Wundef warnings for MINGW_HAS_SECURE_API
2022-09-27 20:03:16 -06:00
Jeremy Hayes
c799e7bea2
Merge pull request #3036 from pmistryNV/bug3019
Fix for bug #3019 : That incorrectly removed perVertexEXT qualifier as…
2022-09-27 15:19:44 -06:00
Pankaj Mistry
559a5f1d82 Fix for bug #3019 : That incorrectly removed perVertexEXT qualifier as arrayed IO
This bug got introduced as part of EXT_mesh_shader changes 228c672
Also updated barycentric test cases to add coverage for multiple pervertexEXT array inputs
2022-09-26 12:47:12 -07:00
Jeremy Hayes
8ba94fc9de
Merge pull request #3034 from jeremy-lunarg/hayes-fix-debugdeclare-debugvalue
Use DebugDeclare for local variables
2022-09-23 10:18:45 -06:00
Jeremy Hayes
ee442785dd Use DebugDeclare for local variables
Previously we had decided to issue DebugValue directly in glslang.
However, this was incorrect and causing issues with RenderDoc.
2022-09-23 09:33:50 -06:00
Greg Fischer
8243ca3c30
Merge pull request #3021 from qingyuanzNV/fix_opline_prepending_opfunction_with_pp
Fix OpLine prepending OpFunction reports wrong file when #line is pre…
2022-09-21 16:49:46 -06:00
Greg Fischer
3400e9bfbd
Merge pull request #3031 from rg3igalia/sub-group-size-arb-flat-fix
Make gl_SubGroupARB a flat int in Vulkan
2022-09-21 16:42:24 -06:00
Ricardo Garcia
d4865f0b68 Make gl_SubGroupARB a flat int in Vulkan
gl_SubGroupARB was being correctly declared as an Input variable in
Vulkan but it was missing the Flat decoration, which made spirv-val emit
the VUID-StandaloneSpirv-Flat-04744 validation error with shaders using
that built-in.
2022-09-21 10:05:15 +02:00
Greg Fischer
b40f87f1d3
Merge pull request #3032 from mbechard/master
Improve naming in link validation
2022-09-20 10:19:08 -06:00
Malcolm Bechard
7f7831c67b further updates to 67384dd18b
since we are changing the type before the visitBinary now, we need to be
comparing against the new type.
Previous test cases worked since the 'unitType' was a shallow copy and
ended up getting updated in some cases to match the new type, but not all.
2022-09-16 17:53:08 -04:00