Commit Graph
402 Commits
Author SHA1 Message Date
sagudev f4455f178d get_mapped_range return Mapping which holds the BufferState lock
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-10-08 11:08:30 +00:00
Andy Leiserson f3982866be refactor(core): Replace StagingBuffer::write with write_exact 2026-09-08 15:07:15 -07:00
AdrianEddy a148f96e20 feat(webgl): Add ability to interop with external textures (#9834) 2026-08-28 21:18:35 +00:00
Marc Stampfli 8c87a72876 fix(core): deadlock between Queue::compact_blas and Queue::submit (#10118) 2026-08-25 23:12:05 +00:00
Andy Leiserson 70d4865941 fix(core): Fix init tracking for 3D textures as render attachments
Fixes #9455
2026-08-25 12:51:23 -07:00
sagudev 98aa89efa5 Move Queue::submit erroring into core
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-08-20 12:45:49 +02:00
sagudev 8c7317b1f5 Move error handling of Queue::write_texture and Queue::write_buffer into core
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-08-20 12:45:49 +02:00
Sam feab2f79ef Add DeviceDescriptor::default_queue: QueueDescriptor to support setting label to queue (#10109)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-08-19 10:06:10 +00:00
Jim Blandy 61040094ef docs: Improve documentation of submission processing
Improve internal documentation for:

- `wgpu_core::device::queue::PendingSubmission`
- `wgpu_core::device::Device::is_valid` and `check_is_valid`
- `wgpu_core::device::Device::maintain`
- `wgpu_hal::vulkan::Queue::submit`
2026-08-14 18:59:00 -07:00
Andy Leiserson 5e7afdf25b fix(core): Avoid overlapping locks in texture write init handling
Fixes #9460
2026-08-14 18:59:00 -07:00
Andy Leiserson 192207d376 fix(core): Fix lock release order in PendingSubmission and Queue::write_buffer 2026-08-14 18:59:00 -07:00
Alexander BruunandConnor Fitzgerald 8c30789740 feat(vulkan): allow specifying queue family ownership transfer in texture barriers (#9668)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2026-08-14 23:27:28 +00:00
Sam 5cd735daf4 Extract IDs, Registries and Global into wgpu-core-remote (#10053) 2026-08-14 14:24:01 +02:00
sagudev a3105e5bf9 [core] move normalize from Global into Queue::get_timestamp_period
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-08-12 18:54:48 +02:00
sagudev 60e606781c move trace inside Queue::write_texture
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-08-12 18:54:48 +02:00
Andy Leiserson 390f05b69a fix(core): Lose device on errors during critical part of submission 2026-08-07 17:07:48 -07:00
Andy Leiserson 708276188b fix(core): Validate submitted command buffers in a separate pass 2026-08-07 17:07:48 -07:00
AdrianEddyandErich Gubler f9f55b7d51 fix(core): drop PendingSubmission's guards in reverse acquisition order (#9960)
Co-authored-by: Erich Gubler <erichdongubler@gmail.com>
2026-07-30 06:07:11 -04:00
Andy Leiserson c97d22fff4 fix(core): Add some missing validity checks (#9913) 2026-07-21 07:36:40 -04:00
Andy Leiserson bcc59481c9 Eagerly initialize buffer tails (#9791) 2026-07-08 17:22:05 -04:00
Sam 4e9fd048d3 [core] Make some Global methods thin in device (#9826)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-07-07 15:08:49 +02:00
Sam 52a280d631 [core] Move validity into Arc<Buffer> (#9803)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-07-06 13:51:11 +02:00
Sam 9749877df6 [core] Move validity into Arc<Blas> (#9800)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-07-06 12:33:51 +02:00
Sam 7418e2d1c1 [core] Use two staged validity in Texture. (#9788) 2026-07-02 09:06:09 +02:00
Sam b76a432a27 [core] Move Fallible into Arc<Texture> (#9718)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-06-25 19:27:44 +02:00
Andy Leiserson 7d549d9d2f fix(webgl): Add destination of copy_external_image_to_texture to PendingWrites (#9727) 2026-06-24 14:12:06 -04:00
Sam c29a05d6dd fix(core): Deferred query set destruction (#9704)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-06-18 14:39:08 -07:00
Teoxoy ab33a724dc [wgpu-core] add query set initialization tracking
Vulkan, D3D12 and Metal require slots of query sets to
have been written prior to resolving them into a buffer.
2026-06-17 11:53:01 -07:00
Sam 019bce9139 Implement QuerySet::destroy (#9671)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-06-16 12:37:11 +02:00
Andy Leiserson 560b763f64 fix(core): Correctly track texture init state after writing one aspect 2026-06-03 19:33:29 +02:00
Vecvec a1fceed071 Move fence synchronisation into wgpu-hal (#9475) 2026-05-28 14:49:12 -07:00
Andy Leiserson 6469861478 Small optimization to prepare_surface_texture_for_submit (#9473) 2026-05-08 13:39:47 -07:00
Andy Leiserson 54bf53eb11 fix(core): Check for device loss on all submit paths (#9478) 2026-05-06 19:06:19 +02:00
Andy Leiserson e1e4bb1a14 fix(core): Flush pending writes before mapAsync, if needed
Fixes #5173
2026-04-29 10:24:42 -07:00
Andy Leiserson 0aaa7ff4b1 fix(core): Flush pending writes in on_submitted_work_done 2026-04-29 10:24:42 -07:00
Andy Leiserson 8e9f7e572b refactor(core): Make submit_with_pending_writes more general
Extend the command_index lock through submission
2026-04-29 10:24:42 -07:00
Andy Leiserson 78c90239c1 chore(core): Remove an unused error variant 2026-04-29 10:24:42 -07:00
Andy Leiserson 90dd7435e9 fix(core): Don't overlap QUEUE_PENDING_WRITES and QUEUE_LIFE_TRACKER locks 2026-04-22 14:36:17 -04:00
Andy Leiserson 458d310916 docs: Update lock graph
Related to #5572
2026-04-22 14:36:17 -04:00
atlas 20f5c7430e fix(core): use wait_for_idle instead of timeout loop to wait for present in Queue drop 2026-04-14 10:51:03 +02:00
atlas 4c61d61361 fix(core): Keep surface texture alive through present preparation 2026-04-14 10:51:03 +02:00
atlas 12ab856f6c feat(core): Move present from Surface to Queue 2026-04-14 10:51:03 +02:00
atlas c662f2a595 refactor(core): Factor out submit_pending_writes from Queue::submit 2026-04-14 10:51:03 +02:00
Andy Leiserson acc5855e1f fix(core): Use more checked arithmetic, part 2 (#9363) 2026-04-09 15:21:20 -06:00
Ali 65a5c2b3bc fix Queue::writeBuffer : raise a validation error for out-of-bounds transfers on zero-size buffers (#9374) 2026-04-08 16:03:13 +00:00
Andy Leiserson 11db97cf1b fix(core): Use more checked arithmetic (#9357) 2026-04-01 15:23:21 -07:00
Niklas EickerandConnor Fitzgerald 62c2f5da97 Move ordered usages to hals (#8924)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2026-03-15 03:23:32 +00:00
Andy Leiserson d152e7369b Reduce binary bloat from error vtables (#9149) 2026-03-04 08:52:24 -08:00
Erich GublerandJim Blandy f24e8a9273 fix(core)!: validate start + size for buffer ops in more places
Co-authored-by: Jim Blandy <jimb@red-bean.com>
2026-02-20 10:34:58 -05:00
Erich Gubler 3e4f439b0b refactor(core)!: ArcCommand::WriteBuffer: serialize offset and size instead of start..end 2026-02-20 10:34:58 -05:00