Commit Graph

3730 Commits

Author SHA1 Message Date
Hans-Kristian Arntzen
71fe651e43 Be more precise in usage of pointer/array mixing. 2023-05-11 11:42:32 +02:00
Hans-Kristian Arntzen
cfd1618e31 MSL: Use templated array type when emitting BDA to arrays.
Handling native array types is not really feasible since we need to fuse
the variable declaration with the type declaration.

This is feasible in something like variable_decl, but for plain SSA
pointers, this breaks down.
2023-05-10 13:33:54 +02:00
Hans-Kristian Arntzen
193ca867ca MSL: Don't hit array copy path for pointer to array.
Pointee type of load and store pointers must be a top-level array type.
2023-05-10 12:46:35 +02:00
Hans-Kristian Arntzen
88790d3145 GLSL: Disambiguate pointer vs array properly in packed_size/alignment. 2023-05-10 12:35:47 +02:00
Hans-Kristian Arntzen
54b48a2f3a
Merge pull request #2133 from georgeouzou/main
GLSL: Support GL_KHR_shader_subgroup_arithmetic (WIP)
2023-05-10 11:32:00 +02:00
George Ouzounoudis
ff962261d4 GLSL: Add tests for subgroup iadd, fadd, imul, fmul 2023-05-01 15:51:54 +03:00
George Ouzounoudis
813cfdce4f GLSL: Address review comments
Fix a warning and some format issues
2023-05-01 14:24:33 +03:00
Hans-Kristian Arntzen
4faeb81f3f
Merge pull request #2141 from KhronosGroup/ci-update
Update Ubuntu version in CI.
2023-04-27 17:40:47 +02:00
Hans-Kristian Arntzen
a5ec818d41 HLSL: Add test for straddling + holes in struct. 2023-04-27 17:40:02 +02:00
Hans-Kristian Arntzen
6eec0afb24 Update Ubuntu CI versions. 2023-04-27 17:05:06 +02:00
Hans-Kristian Arntzen
da12e7ade7
Merge pull request #2139 from EpicGames/fixes_glsl
GLSL: Use actual field offset to validate vec4 boundary alignment.
2023-04-27 17:03:47 +02:00
Hans-Kristian Arntzen
0f48b39b7b
Merge pull request #2138 from EpicGames/fixes_hlsl
HLSL: Don't restrict SV_RenderTargetArrayIndex to GS and MS.
2023-04-27 16:58:27 +02:00
Laura Hermanns
b19aa51e32 HLSL: Don't restrict SV_RenderTargetArrayIndex to GS and MS. 2023-04-25 09:33:40 -04:00
Laura Hermanns
16b5ce09d7 GLSL: Use actual field offset to validate vec4 boundary alignment. 2023-04-24 20:36:44 -04:00
Hans-Kristian Arntzen
fc9bee27f4
Merge pull request #2131 from KhronosGroup/fix-2128
MSL: Don't append v_ identifier
2023-04-11 23:17:51 +02:00
Hans-Kristian Arntzen
3fa767db74
Merge pull request #2135 from d34d633f/patch-1
HLSL: support Texture2D::GatherCmp function
2023-04-11 19:01:51 +02:00
Hans-Kristian Arntzen
e57b901dd1 MSL: Use name_id consistently in argument declaration. 2023-04-11 17:06:56 +02:00
手机用户Xh2vb13n
d1ac6524d3
HLSL: support Texture2D::GatherCmp function
refer to https://learn.microsoft.com/en-us/windows/win32/direct3dhlsl/sm5-object-texture2d-gathercmp
2023-04-10 16:55:38 +08:00
georgeouzou
168e9f2cc9 GLSL: Support KHR_subgroup_arithmetic IMul/FMul
Support NV workarounds for IMul/FMul Reduce/InclusiveScan/ExclusiveScan
2023-04-03 19:13:30 +03:00
georgeouzou
ab3a6212b8 GLSL: Checking for inactive threads in non uniform arithmetic ops
The last argument of shuffle*NV functions does not return if the
current thread is inactive, but only if it is out of range.
2023-04-03 18:42:08 +03:00
georgeouzou
dbf6218883 GLSL: Support KHR_subgroup_arithmetic FAdd
Support NV workarounds for FAdd Reduce/InclusiveScan/ExclusiveScan
2023-04-02 10:45:25 +03:00
georgeouzou
b693d8faec GLSL: Support KHR_subgroup_arithmetic IAdd
Support NV workarounds for IAdd Reduce/InclusiveScan/ExclusiveScan
2023-04-02 01:25:15 +03:00
Hans-Kristian Arntzen
884e5c0e06 MSL: Add test for block IO output with function use. 2023-03-30 18:30:44 +02:00
Hans-Kristian Arntzen
1d4e063788 HLSL: Add missing test reference. 2023-03-30 18:30:44 +02:00
Hans-Kristian Arntzen
1f6653ec07 MSL: Do not override variable name late.
If we have emitted block IO lowering at the end of vertex shader, we
will end up using the wrong name. Forcing a v_ prefix does not solve any
actual problems since the intentifier already has to be valid.
2023-03-30 18:30:44 +02:00
Hans-Kristian Arntzen
3327924add
Merge pull request #2130 from KhronosGroup/fix-2129
GLSL: Fix expression reorder bug with legacy FMA fallback.
2023-03-30 18:25:35 +02:00
Hans-Kristian Arntzen
abd23cc233
Merge pull request #2127 from attackgoat/aliased-descriptor-fix
Aliased descriptor fix
2023-03-30 18:01:09 +02:00
Hans-Kristian Arntzen
50623e13c8 GLSL: Fix expression reorder bug with legacy FMA fallback. 2023-03-30 17:24:11 +02:00
John Wells
4c622ce030 Revert "Make argument buffer padding testable"
This reverts commit 275e4d7e88.
2023-03-30 11:13:39 -04:00
John Wells
275e4d7e88 Make argument buffer padding testable 2023-03-29 21:55:32 -04:00
Hans-Kristian Arntzen
8e64f8ee40
Merge pull request #2123 from piegfx/main
Implement set_scalar functions in the specialization constants C API
2023-03-29 20:36:10 +02:00
John Wells
42a89a5885 Add code braces 2023-03-29 13:52:42 -04:00
Skye
a3b5cdc519 update f32 to u32 2023-03-28 16:47:43 +01:00
Skye
f3d05a5aad
Merge branch 'KhronosGroup:main' into main 2023-03-28 16:46:03 +01:00
John Wells
e31deb8340 Fix for typo in help 2023-03-23 19:05:12 -04:00
John Wells
4a4ac7f946 Fix for argument buffer index compare when invalid 2023-03-23 19:04:50 -04:00
Hans-Kristian Arntzen
09e60d74f6
Merge pull request #2124 from Try/hlsl-task-shader
HLSL: Add task(amplification) shader support
2023-03-22 12:36:47 +01:00
Try
cb45e4be6f cleanup 2023-03-21 21:11:07 +01:00
Try
4a5d21bf1c virtual emit_mesh_tasks 2023-03-21 21:08:59 +01:00
Hans-Kristian Arntzen
763dbe14ab
Merge pull request #2125 from gulfemsavrun/main
Add missing <exception> include
2023-03-21 12:56:03 +01:00
Hans-Kristian Arntzen
8c509fec7b HLSL: Update rayquery reference. 2023-03-21 12:23:40 +01:00
Hans-Kristian Arntzen
202bf05386 Merge branch 'hlsl_fix_hit_t_arg' of https://github.com/skkkksdkfak/SPIRV-Cross 2023-03-21 12:21:47 +01:00
Gulfem Savrun Yeniceri
a25d0acaad Add missing <exception> include
https://reviews.llvm.org/D146097 removed the transitive include for
<exception>, which caused the following issue:

In file included from ../../third_party/spirv-cross/spirv_common.hpp:28:
../../third_party/spirv-cross/spirv_cross_containers.hpp:334:9: error:
no member named 'terminate' in namespace 'std

This patch adds the missing include to fix the issue.
2023-03-20 20:50:03 +00:00
Try
7ac2c84ff3 code-style 2023-03-18 19:50:28 +01:00
Try
dd8839c6f9 task shader initial 2023-03-18 17:20:16 +01:00
Skye
0c1302bb4e bumped version, corrected function signatures 2023-03-17 17:49:08 +00:00
Skye
5ca8266e58 Implement setscalar fns for all getscalar fns 2023-03-16 19:09:55 +00:00
Hans-Kristian Arntzen
d26c233e1c
Merge pull request #2121 from Keenuts/licenses
adds Khronos license to LICENSES folder.
2023-03-13 17:22:12 +01:00
Nathan Gauër
0d8cfdb4f0 revert trailing space fix 2023-03-13 15:41:15 +01:00
Nathan Gauër
ada706403d applying pr feedback 2023-03-13 14:01:13 +01:00