commit | 7e31f668425d3d4dfcb0cfc587f4c76384e512b6 | [log] [tgz] |
---|---|---|
author | Corentin Wallez <cwallez@chromium.org> | Fri Jun 06 08:54:25 2025 -0700 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Jun 06 08:54:25 2025 -0700 |
tree | 6d89e70ed2e509f303a626e48a2eeb5ae8246bc4 | |
parent | bd3158b75add0672b983111e0c159e99f16fc6cb [diff] |
[dawn][native] Eagerly submit to release mappedAtCreation staging. The DynamicUploader has tracking of how much memory is pending a submit to be eventually released. However the staging buffer for mappedAtCreation buffers was not accounted. Make the DynamicUploader trigger an early submit when pending staging memory is above 16MB. This could cause reantrancy during some queue submissions so ExecutionQueue is modified to have a guard against reentrant submits. Bug: 42242066 Change-Id: I1a81fc0fe51208b39b220fcc1b6d851f71367b33 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/226596 Reviewed-by: Loko Kung <lokokung@google.com> Reviewed-by: Jiawei Shao <jiawei.shao@intel.com> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
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.