Commit Graph
205 Commits
Author SHA1 Message Date
Yilmaz Kiymaz a4b0f2257a [hal vulkan] Enable the depthBiasClamp feature when it is supported (#10566) 2026-10-16 13:53:30 +00:00
Kevin Reid 20a17523e2 Fix Clippy lint from Rust versions newer than 1.96 (#10575) 2026-10-13 17:06:07 +00:00
sagudev d7220bf2f0 [wgpu] forbid read BufferViews on MapMode::Write mapped buffers
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-10-08 11:08:30 +00:00
sagudev 07e7e08bd0 Test alive mapping while buffer/device destruction
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-10-08 11:08:30 +00:00
Stuart Parmenter 79348d63e6 Use separate Vulkan memory pool for TRANSIENT buffers (#10232) 2026-10-02 21:25:28 +00:00
Parman Mohammadalizadeh 7c8eee4744 fix(hal/vulkan): make copy-only textures viewable (#10245) 2026-09-24 17:33:00 +00:00
Sam 6293e039ca [core] "consume" adapter on first succesful request_device if STRICT_WEBGPU_COMPLIANCE (#10444)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-09-24 13:34:16 +00:00
Andy Leiserson b9f7ddad53 Fix lock issues affecting mark_externally_initialized test
- `RwLockReadGuard::forget` was not actually forgetting the
  `LockStateGuard`, resulting in a "double unlock" error when
  `SnatchableResourceGuard` later called `force_unlock_read`.
- Adjust both the test and the lock graph to avoid lock
  rank errors.
2026-09-18 19:56:30 +00:00
Andy Leiserson 63b40b57f2 test: Enable mark_externally_initialized test on Mac Vulkan (#10239) 2026-09-18 18:14:00 +00:00
Erich Gubler 81e38d86f4 fix: emit NeedsInitializedMemory for create_external_texture_binding 2026-09-18 11:04:22 +00:00
Erich Gubler 3c2c89c051 refactor(test): extract create_discarded_texture_and_view
This prepares for a second caller in the subsequent commit.
2026-09-18 11:04:22 +00:00
Erich GublerandKevin Reid 535f5c67a1 diag: rework sentence structure of MismatchedDynamicOffsetCount
Co-authored-by: Kevin Reid <kpreid@switchb.org>
2026-09-17 15:43:18 +00:00
Erich Gubler 27462da192 diag: use proper conjugation of "to be" for MismatchedDynamicOffsetCount 2026-09-17 15:43:18 +00:00
Erich Gubler 5086e107a2 fix: emit NeedsInitializedMemory for create_external_texture_binding_from_view (#10276) 2026-09-17 11:53:59 +00:00
Erich Gubler f0333904d0 test: add regression cvg. for #9316 (#10261) 2026-09-12 20:56:26 +02:00
Andy Leiserson 10fe6409d4 Partial snorm10-10-10-2 vertex format support (#10226) 2026-09-11 10:53:31 -04:00
sagudev a26e342d9b Split BufferUsages into WGPU and WebGPU bits using bitflags_array
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-09-10 16:08:34 -07:00
Andy Leiserson 107e2827f7 chore: Fix CRLF line endings (#10299) 2026-09-10 05:56:36 -04:00
Andy Leiserson ab50d50ac6 test: Reduce the texture height in clear_texture tests (#10285) 2026-09-09 17:37:23 +02:00
Andy Leiserson a792cbe99b test: Exercise zero-size vertex and index bindings 2026-09-08 15:07:15 -07:00
Andy Leiserson ea0afc6216 refactor: Parameterize type of hal::BufferBinding::size; resolve sizes in core
For storage and uniform buffer bindings, the size is a `wgt::BufferSize`
(`NonZeroU64`). For vertex and index buffer bindings, the size is a 
`wgt::BufferAddress` (regular `u64`).

Temporarily breaks some zero-size vertex/index binding cases that worked
before (end of buffer); will be resolved in an immediate follow-up
commit that fully implements zero-size vertex/index binding support.
2026-09-08 15:07:15 -07:00
Alex EggerandAndreas Reich 5c1748559d fix(hal/gles): copy every depth slice in copy_texture_to_texture (#10004)
Co-authored-by: Andreas Reich <r_andreas2@web.de>
2026-09-05 09:45:28 +00:00
Andy Leiserson 92de1a4295 test: Expectation updates for Vulkan SDK 1.4.357 (#10238) 2026-09-04 16:17:11 -04:00
sagudevandLuo Zhiaho 8630922f47 Don't include detailed shader compilation info in validation error
Co-authored-by: Luo Zhiaho <luo_zhihao@outlook.com>
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-09-04 13:38:23 +02:00
Sam 3e11ff59bf Buffer::unmap should not raise any validation errors (#10242)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-09-02 18:19:05 +00:00
Luo Zhihao 8c1b137be2 Disallow array types in var<immediate> (#10081) 2026-09-02 14:25:31 +00:00
Lucas Meurer 5887663c8e Fix dxc compile error when shader label contains : (#10134) 2026-09-01 16:35:51 -07:00
d30e2dd6d6 fix(hal/vulkan): count textures created by create_texture (#10022)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: Erich Gubler <erichdongubler@gmail.com>
2026-09-01 10:47:44 +00:00
Robin Cramer 64b9bb0e90 Added mark_externally_initialized to texture (#10075) 2026-08-31 10:21:25 -04:00
Sam 78fa6152cc Revert part of #10115 by removing result from create_render_bundle_encoder and reimpl content validation in deno (#10179) 2026-08-31 10:21:22 +02:00
07132f4440 Implement texture-component-swizzle (#9553)
Co-authored-by: Inner Daemons <85136135+inner-daemons@users.noreply.github.com>
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2026-08-30 03:49:16 -04:00
AdrianEddy a148f96e20 feat(webgl): Add ability to interop with external textures (#9834) 2026-08-28 21:18:35 +00:00
Luo ZhihaoandConnor Fitzgerald 4d749308e6 Fix separate depth stencil read-only state (#9763)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2026-08-28 15:31:26 +00:00
Andy Leiserson f0704423c9 fix(core): Init tracking for pass with multiple depth slice attachments 2026-08-25 12:51:23 -07:00
Andy Leiserson 7b2b0822cf test: Tests for render attachment initialization tracking 2026-08-25 12:51:23 -07:00
Sam 6710991814 Implement spec compilant erroring of create_render_bundle_encoder (#10115) 2026-08-25 17:58:57 +02:00
Marc Stampfli 6d1bb1959b Give a clear error when dxc is missing in the passthrough tests (#10119) 2026-08-20 11:28:24 -07:00
Zac Harrold 3c4a1a2f0c [wgpu-test]: Switch to wgpu-sync for locking primitives 2026-08-14 20:47:05 -04:00
Teodor Tanasoaia 80c257b497 [metal] fix bindgroup resources being bound incorrectly (#10043) 2026-08-12 15:05:57 +00:00
sagudev 94b3c5ea3c remove generate_report and all tests that uses them
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-08-12 14:59:54 +02:00
Andy Leiserson 55e499ff57 fixup! Bug link for subgroup_operations failure 2026-08-12 11:54:08 +02:00
Andy Leiserson ce231ae79c fixup! Tidy FailureCase helpers 2026-08-12 11:54:08 +02:00
Andy Leiserson 20e56a987d test: Adjust some KosmicKrisp expectations
Tested with Vulkan SDK 1.4.350.0
2026-08-12 11:54:08 +02:00
Teodor Tanasoaia 6aa5fe71f5 [d3d12] initialize padding of intermediary buffers used for texture to buffer copies (#10005) 2026-08-06 15:21:19 +02:00
Kevin Reid d0ecda96cd Replace wgpu-macros package with use of macro_rules_attribute. (#9963) 2026-07-30 06:16:43 -04:00
Andy Leiserson c97d22fff4 fix(core): Add some missing validity checks (#9913) 2026-07-21 07:36:40 -04:00
Andy Leiserson 372f23df12 test: Annotate expected failures on Metal and MoltenVK (#9850) 2026-07-15 07:19:44 -07:00
Andy Leiserson c098b029a2 test: Dynamic offset storage binding test for #9865 (#9866) 2026-07-15 03:27:01 -04:00
Andy Leiserson bcc59481c9 Eagerly initialize buffer tails (#9791) 2026-07-08 17:22:05 -04:00
Andy Leiserson 1798a02d3d test: Flush init actions before creating bind groups (#9814) 2026-07-06 23:50:25 -04:00