commit | eea2dde5513ef8abd08c26e5a9e2ad70593dff45 | [log] [tgz] |
---|---|---|
author | Kyle Charbonneau <kylechar@google.com> | Mon Mar 24 09:34:05 2025 -0700 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Mar 24 09:34:05 2025 -0700 |
tree | a254f6ec588d7585e551b0c22323580d1e72aeb8 | |
parent | de897dc90d2ebdea90c86f49853120cf160352a8 [diff] |
Fix lock-order-inversion Device[Vk]::ReduceMemoryUsageImpl() was holding the lock for both FencedDeleter and ResourceMemoryAllocator at the same time due to temporary values in std::max() expression. They were acquired in the opposite order to when ResourceMemoryAllocator enques deletion in FencedDeleter. Avoid holdin the locks at the same time in ReduceMemoryUsageImpl() to prevent this. Bug: 405422523 Change-Id: Ic046888db7234dbf74b15815537972381aa52376 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/232394 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Brandon Jones <bajones@chromium.org> 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.