| commit | 95e7e2ec585a89324749800ac308c87e798fded5 | [log] [tgz] |
|---|---|---|
| author | Kyle Charbonneau <kylechar@google.com> | Tue Oct 28 13:30:25 2025 -0700 |
| committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Oct 28 13:30:25 2025 -0700 |
| tree | d6d3458ebe3d805783bff2df61734c60abb3d064 | |
| parent | be3bd9871c23f83c67f36279b4daaaa4a12d5bda [diff] |
Make DynamicUploader acquire device mutex on submit This will allow calling MaybeSubmitPendingCommands() without first holding the device mutex. mMemoryPendingSubmit is made atomic. All access uses std::memory_order_relaxed since the device mutex provides synchronization between threads already. Also add an additional check of the pending command serial inside MaybeSubmitPendingCommands(). It's possible a queue submit happened on another thread and mMemoryPendingSubmit() should actually be zero. In that case a queue submit would be attempted when it's not needed. Bug: 454667734 Change-Id: I91dae13b55c26a1fc163cd9179fc73d0388814fb Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/267774 Reviewed-by: Antonio Maiorano <amaiorano@google.com> Reviewed-by: Loko Kung <lokokung@google.com> Commit-Queue: Kyle Charbonneau <kylechar@google.com>
Dawn is an open-source and cross-platform implementation of the WebGPU standard. More precisely it implements webgpu.h that is a one-to-one mapping with the WebGPU IDL. Dawn is meant to be integrated as part of a larger system and is the underlying implementation of WebGPU in Chromium.
Dawn provides several WebGPU building blocks:
webgpu.h version that Dawn implements.webgpu.h.Helpful links:
Developer documentation:
User documentation: (TODO, figure out what overlaps with the webgpu.h docs)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.