Jim Blandy and Claude Sonnet 5
f892b2e235
spv-out: don't dynamically index PushConstant vectors with OpAccessChain
...
Per VUID-RuntimeSpirv-None-04745, all accesses into a PushConstant-storage-class
variable that are arrays must use dynamically uniform indices; this restriction
also applies to vectors. Naga was emitting `OpAccessChain` with per-invocation
(non-uniform) indices directly into push-constant vectors, which is undefined
behavior under that rule -- observed on RADV as every invocation silently
reading element 0 of the vector.
Add a special case to `write_checked_load`, alongside the existing matCx2
ones, that loads the whole vector and uses `OpVectorExtractDynamic` instead,
which isn't subject to the restriction.
Fixes gfx-rs/wgpu#8612 .
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com >
2026-07-21 12:05:24 -07:00
Andy Leiserson
b2be758b64
fix(naga spv-out): Sanitize debug strings ( #9904 )
2026-07-20 20:41:22 +00:00
Luo Zhihao
77c17d24b0
Fix required immediate slots calculation and panics when slots overflow ( #9725 )
2026-07-20 12:06:14 -07:00
Erich Gubler
d73f0e5315
build: consume cfg_aliases 0.2.2 ( #9885 )
2026-07-16 15:39:48 -04:00
Jeffrey Vo
de9f9f4de8
fix(naga msl-out): Support sampler lod_clamp & max_anisotropy ( #9842 )
2026-07-16 12:21:07 -04:00
Erich Gubler
15d817e404
Suppress semicolon_in_expressions_from_macros lint in build scripts ( #9884 )
2026-07-16 15:43:51 +00:00
Erich Gubler
d19bc953ce
fix(msl-out): populate TypeContext::access when printing storage texture function arguments ( #9867 )
2026-07-15 11:42:02 -04:00
Erich Gubler
ee9f40c316
chore: remove package.authors in Cargo.toml ( #9862 )
2026-07-15 11:41:12 -04:00
Luo Zhihao
d056b0e025
Validate pipeline layout immediate_size and fix its calculation when there are multiple immediate variables ( #9711 )
2026-07-14 09:47:17 -07:00
Laurent Cheylus
328e03c3c5
fix(naga): disable libfuzzer on OpenBSD ( #9858 )
...
Signed-off-by: Laurent Cheylus <foxy@free.fr >
2026-07-13 00:53:33 -04:00
Luo Zhihao and Jim Blandy
7fe459a58b
Lower clippy large-error-threshold ( #9612 )
...
Co-authored-by: Jim Blandy <jimb@red-bean.com >
2026-07-07 13:42:21 -04:00
Marc Stampfli
953fbd74be
Fix signed % wrong for negative operands in GLSL (OpenGL/GLES) ( #9687 )
2026-07-06 12:08:52 +02:00
teoxoy
b29c1792b2
[hlsl] avoid a DXIL validation error due to DXC's optimizations
2026-07-02 00:25:01 +02:00
Marc Stampfli
a353ba97c9
Fix signed % wrong for negative operands on NVIDIA (OpSRem poison without maintenance8) ( #9674 )
2026-07-01 09:49:30 +00:00
Vecvec and Connor Fitzgerald
a03be8d223
[msl] Make ray queries safer ( #9442 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2026-06-29 22:27:03 +00:00
Máté Homolya
bf5c6cff4e
Implement bindless buffers on metal ( #9081 )
2026-06-29 17:21:43 -04:00
Connor Fitzgerald
87bfa5ebb2
Properly generate glsl sidecar for 9629 ( #9750 )
2026-06-26 03:25:41 +00:00
Mike Seddon
cab7d0b47f
Add MSL support for mixed-precision cooperative matrix multiply-add ( #9629 )
2026-06-25 22:14:27 -04:00
Kevin Reid
156741bcb2
Add Debug implementations and missing_debug_implementations lint. ( #9744 )
2026-06-25 18:57:47 -04:00
Vecvec
55534165c1
[spv-out] Some small ray query fixes ( #9731 )
2026-06-24 20:32:54 -04:00
d21c0d08ef
Migrate from taplo to tombi for TOML CI ( #9694 )
...
Co-authored-by: Erich Gubler <erichdongubler@gmail.com >
Co-authored-by: Kevin Reid <kpreid@switchb.org >
2026-06-19 13:53:49 +00:00
Andy Leiserson
cdb08a7728
chore(naga): Enable large_stack_frames lint
2026-06-17 07:59:12 -07:00
Andy Leiserson
d1ef7134a1
refactor(naga): Sort clippy waivers
2026-06-17 07:59:12 -07:00
Andy Leiserson
813f5e5243
chore(naga msl-out): Remove dead code left over from stack size test
2026-06-17 07:59:12 -07:00
Andy Leiserson
493bfe30fe
fix(naga hlsl-out): Reduce stack usage ( #9648 )
2026-06-17 07:24:55 -07:00
Andy Leiserson
0892b3841a
fix(naga msl-out): Fix identifier collision for multiple fragment returns ( #9684 )
2026-06-17 10:02:56 +02:00
Connor Fitzgerald
bb3ab6f796
Add GLSL output to naga snapshots ( #9204 )
2026-06-15 21:41:38 +00:00
renovate[bot]
2086f62106
Update crate-ci/typos action to v1.47.2 ( #9652 )
2026-06-15 17:49:46 +00:00
Rui He
ac2c247c2a
fix(naga): zero initialize loop-local var declarations in each iteration ( #9592 )
2026-06-15 14:42:48 +00:00
Inner Daemons
1c42a95e37
Add naga-types crate ( #9434 )
2026-06-15 16:11:06 +02:00
Trey
1c77f87b0f
fix packSnorm2x16/packUnorm2x16 swap in naga GLSL frontend ( #9675 )
2026-06-15 15:01:41 +02:00
Dzmitry Malyshau and Connor Fitzgerald
10f97e5777
Add emit_int_div_checks option to skip integer division safety wrappers ( #9443 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2026-06-12 18:31:24 +00:00
saripalli shanmukha kiran sagar
6fbbb0fbb7
naga: add take() method to Arena and UniqueArena ( #9611 )
2026-06-08 15:02:23 -07:00
AdrianEddy and Andreas Reich
c003fc45e2
feat(gles): add support for 16-bit normalized texture formats and color attachments ( #9601 )
...
Co-authored-by: Andreas Reich <r_andreas2@web.de >
2026-06-07 09:02:33 +00:00
Dragoy
66d997113f
naga: include OpAtomicCompareExchange result access in emitted range ( #9621 )
2026-06-03 20:03:55 +02:00
Jim Blandy and Andreas Reich
498e746ad2
[naga msl-out] Remove unnecessary pub from Writer fields. ( #9395 )
...
Co-authored-by: Andreas Reich <r_andreas2@web.de >
2026-05-27 16:13:17 +00:00
kwillemsen and Koen Willemsen
ce445e882e
Expose notes from wgsl::ParseError ( #9572 )
...
Co-authored-by: Koen Willemsen <Koen.Willemsen@materialise.be >
2026-05-22 10:01:01 -04:00
Connor Fitzgerald
d88b06caca
Fix type resolution issue in GL push constants ( #9116 )
2026-05-20 08:19:51 -07:00
Andy Leiserson
4c1ea47ea2
fix(dx12): Fix textureNum{Levels,Layers,Samples} functions ( #9542 )
2026-05-13 17:51:15 +02:00
Dzmitry Malyshau
1781d73b40
msl: fix cooperative matrix loading semantics ( #9451 )
2026-05-12 14:20:06 -07:00
Andy Leiserson
20d6629185
fix(naga): Don't panic on oversize types ( #9516 )
2026-05-11 18:58:12 +02:00
teoxoy
786b8b11da
[hlsl] handle matCx2<f16> in the uniform address space properly
2026-05-07 20:22:15 +02:00
teoxoy
22720cf121
fix reading from uniform variables of type array<matCx2<T>, N>
2026-05-07 20:22:15 +02:00
JMS55
868eb17098
SHADER_I16 full support ( #9412 )
2026-04-24 20:49:41 -04:00
Vecvec
56e4a389dd
[spv-out] ray tracing pipelines ( #9085 )
2026-04-20 17:02:49 +02:00
Andy Leiserson
e855a96b48
fix(naga): Accept trailing comma in 1-arg @interpolate
2026-04-17 11:50:51 -07:00
Andy Leiserson
b051a87e3e
fix(naga): Require explicit flat interpolation for integer shader I/O
2026-04-17 11:50:51 -07:00
Andy Leiserson
75ed5df337
test: Add snapshot test for GLSL interpolation spec
2026-04-17 11:50:51 -07:00
Ali and Connor Fitzgerald
c040694c94
fixed mat2xc alignment in spv ( #9369 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2026-04-15 20:52:49 +00:00
Vecvec
f6d9a1dbaa
[msl-out] Switch to intersection queries ( #9304 )
2026-04-15 16:01:28 -04:00