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.