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.