Commit Graph

3858 Commits

Author SHA1 Message Date
Hans-Kristian Arntzen
65d7393430
Merge pull request #2379 from etang-cw/TexAtomicRecompile
Reduce recompile count with texture atomics
2024-09-18 16:39:49 +02:00
Hans-Kristian Arntzen
8894bca032
Small style nit. 2024-09-18 16:39:34 +02:00
Evan Tang
e4c2f30f43 Reduce recompile count with texture atomics
Avoid waiting until a run where we're not forcing a recompile to force another recompile
2024-09-11 11:19:51 -05:00
Hans-Kristian Arntzen
f84c1fbe3c
Merge pull request #2377 from flafflar/legacy-glsl-switch-handling
GLSL: Convert switch blocks to if statements in legacy desktop versions
2024-09-10 17:12:01 +02:00
flafflar
83f74950b8
GLSL: Convert switch blocks to if statements in legacy desktop versions 2024-09-08 15:46:00 +03:00
Hans-Kristian Arntzen
6a1fb66eef
Merge pull request #2376 from chyyran/get_buffer_block_flags_no_assert
Replace assert of buffer block SPIRType with exception in `get_buffer_block_flags`
2024-09-02 17:02:54 +02:00
Hans-Kristian Arntzen
c29a7b2ef3 Merge branch 'c_hlsl_preserve_structured_buffers' of https://github.com/chyyran/SPIRV-Cross 2024-09-02 17:00:39 +02:00
Hans-Kristian Arntzen
c1161c5677
Merge pull request #2373 from chyyran/c_gl_plain_uniforms
c: allow access to gl_plain_uniforms resources
2024-09-02 16:59:10 +02:00
chyyran
28d8914022 Replace assert of buffer block SPIRType with exception 2024-09-02 10:12:52 -04:00
chyyran
4b98efbf7f c: Add HLSL option preserve_structured_buffers 2024-09-02 09:40:47 -04:00
chyyran
b2171de6e5 c: allow access to gl_plain_uniforms resources 2024-09-02 09:39:40 -04:00
Hans-Kristian Arntzen
aad675ff41
Merge pull request #2375 from KhronosGroup/fix-2366
Roll toolchain deps.
2024-09-02 13:50:00 +02:00
Hans-Kristian Arntzen
caebe2f11c
Merge pull request #2372 from chyyran/c_wrap_set_entry_point_in_handler
c: wrap spvc_compiler_set_entry_point in error scope
2024-09-02 13:36:38 +02:00
Hans-Kristian Arntzen
e2de90ed75 Roll toolchain deps. 2024-09-02 13:31:45 +02:00
chyyran
96cea7f676 c: wrap spvc_compiler_set_entry_point in error scope 2024-08-31 16:57:38 -04:00
Hans-Kristian Arntzen
dae7a689d9
Merge pull request #2367 from KhronosGroup/spec-constant-switch
Handle SpecConstantOp used as switch case.
2024-08-23 10:57:24 +02:00
Hans-Kristian Arntzen
b49acb11ca Handle SpecConstantOp used as switch case. 2024-08-23 10:53:01 +02:00
Hans-Kristian Arntzen
d33a39045d
Merge pull request #2365 from KhronosGroup/fix-2362
c: Add HLSL option use_entry_point_name.
2024-08-20 10:52:29 +02:00
Hans-Kristian Arntzen
61193afb7b c: Add HLSL option use_entry_point_name. 2024-08-20 10:31:41 +02:00
Hans-Kristian Arntzen
5c424470fe
Merge pull request #2361 from frenzibyte/fix-cmake-on-android
Fix CMake failing with Android NDK 27+
2024-08-20 10:24:41 +02:00
Hans-Kristian Arntzen
7af81edee8
Merge pull request #2360 from etang-cw/VolatileHelperNonMain
Fix volatile helper invocation in non-main functions
2024-08-20 10:07:22 +02:00
Salman Ahmed
f51773b81c Fix CMake failing with Android NDK 27+ 2024-08-08 13:52:06 +03:00
Evan Tang
467ba39110 Don't add volatile to thread address space variables 2024-08-07 12:03:25 -05:00
Evan Tang
670cc7fb1d Fix volatile helper invocation in non-main functions 2024-08-07 11:27:16 -05:00
Hans-Kristian Arntzen
66363ac7e8
Merge pull request #2357 from taisei-project/fix-matrix-stride
Fix incorrect return value for ParsedIR::get_member_decoration(SpvDecorationMatrixStride)
2024-07-30 09:49:39 +02:00
Andrei Alexeyev
b7dbf7a379
Fix incorrect return value for ParsedIR::get_member_decoration(SpvDecorationMatrixStride) 2024-07-23 16:47:03 +02:00
Hans-Kristian Arntzen
68d401117c
Merge pull request #2356 from KhronosGroup/fix-2348
HLSL: Implement SM 6.8 BaseVertex/BaseInstance.
2024-07-15 13:32:13 +02:00
Hans-Kristian Arntzen
1de3f8c1f2 HLSL: Implement SM 6.8 BaseVertex/BaseInstance. 2024-07-15 13:22:11 +02:00
Hans-Kristian Arntzen
d17a2d6940
Merge pull request #2351 from js6i/entry_point_decls
Stale access permissions for overlapping descriptors
2024-07-15 12:52:24 +02:00
Bill Hollings
1297499703 MSL: Minor fix to resource type of spvBufferSizeConstants array indexes.
- spvBufferSizeConstants tracks MSL indexes of buffers, not images.
- Previous code did not allow array index beyond zero.
2024-07-15 12:52:02 +02:00
Hans-Kristian Arntzen
ae75fccf71
Add more detailed comment explaining the force recompile hack. 2024-07-15 12:50:14 +02:00
Hans-Kristian Arntzen
c1bf9099b9
Merge pull request #2350 from etang-cw/QueryLod
Fix MSL for OpImageQueryLod on a vector larger than needed
2024-07-15 12:02:06 +02:00
Hans-Kristian Arntzen
abed74fb9b
Small nit. 2024-07-15 11:53:20 +02:00
Jan Sikorski
b37f1598ad MSL: Recompile when an aliased descriptor's name is changed. 2024-07-11 11:21:04 +02:00
Evan Tang
cb06c50eba Fix MSL for OpImageQueryLod on a vector larger than needed 2024-07-09 10:52:14 -05:00
Hans-Kristian Arntzen
6fd1f75636
Merge pull request #2347 from billhollings/arg-buff-runtime-array
MSL: Support a runtime array with dynamic offset in an argument buffer.
2024-06-19 23:25:34 +02:00
Bill Hollings
eadf9d340a MSL: Support a runtime array with dynamic offset in an argument buffer.
- Retrieve size of runtime array from get_resource_array_size().
- Move validation assertion to after retrieval of array size.
2024-06-19 17:06:13 -04:00
Hans-Kristian Arntzen
d79ba7d714
Merge pull request #2346 from KhronosGroup/fix-2336
MSL: Handle OpPtrAccessChain with ArrayStride
2024-06-19 15:02:32 +02:00
Hans-Kristian Arntzen
7e469d0908 MSL: Fix indent. 2024-06-19 14:45:24 +02:00
Hans-Kristian Arntzen
ff82659d05 MSL: Add test for custom ArrayStride. 2024-06-19 14:29:28 +02:00
Hans-Kristian Arntzen
098427a9ce MSL: Cast to packed format when using unexpected stride.
We're still technically missing handling for Aligned mask on Load/Store,
but that needs separate analysis and gets horribly annoying ...
This should cover most use cases.
2024-06-19 14:24:50 +02:00
Hans-Kristian Arntzen
eeb35a97e9 MSL: Clean up some obsolete use of type.pointer. 2024-06-19 14:23:49 +02:00
Hans-Kristian Arntzen
bc105b6ad0 MSL: Consider pointer arithmetic for OpPtrAccessChain.
If the stride is weird for non-struct types you gotta do what you gotta
do.
2024-06-19 13:43:08 +02:00
Hans-Kristian Arntzen
4b27b458c5 MSL: Fix invalid packing for pointer-to-vector.
Normally BDA is pointer to block, but there are use cases with
OpPtrAccessChain.
2024-06-19 12:22:16 +02:00
Hans-Kristian Arntzen
5d127b917f
Merge pull request #2344 from billhollings/gather-constoffsts-arg-buffs
MSL: Image gather ConstOffsets supports multiple address spaces.
2024-06-18 17:12:18 +02:00
Bill Hollings
b5ccb0cf2c MSL: Image gather ConstOffsets supports multiple address spaces.
Required when using descriptor set argument buffers.

- Output overloaded functions for each address space.
- Update test shaders.
2024-06-18 10:55:43 -04:00
Hans-Kristian Arntzen
98d9e42e78
Merge pull request #2345 from KhronosGroup/fix-2337
MSL/C: Add _2 variant for the resource binding API.
2024-06-17 13:59:15 +02:00
Hans-Kristian Arntzen
11be429ef2 MSL/C: Add _2 variant for the resource binding API.
Adds missing count variable for bindless.
2024-06-17 13:19:53 +02:00
Hans-Kristian Arntzen
ab608ac89c
Merge pull request #2343 from billhollings/recurs-desc-set-arg-buff
MSL: Support descriptor sets with recursive content when using argument buffers.
2024-06-17 12:45:23 +02:00
Hans-Kristian Arntzen
d7ad3d7257
Apply suggestions from code review
Fix nits
2024-06-17 12:44:22 +02:00