commit | e249898ed9834b88f54202fcbf1c0cbe0835f76d | [log] [tgz] |
---|---|---|
author | Kyle Charbonneau <kylechar@google.com> | Thu Oct 31 17:48:45 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Oct 31 17:48:45 2024 +0000 |
tree | 5b50d28f35ee1f7cc3f2efaf30ecd634d9d6d9d3 | |
parent | efed88f512126582b9df364ff0301c1088782276 [diff] |
Give DescriptorSetAllocator a mutex There are memory corruption crashes inside DescriptorSetAllocator with Android Graphite/Dawn/Vulkan. The class is accessed with MutexProtected from BindGroupLayoutVk but not from DeviceVk so concurrent access to member variables on different threads seems possible. Since the class is reference counted move the mutex inside the class so that calling a method on any reference is thread safe. Bug: 368362677 Change-Id: I7ca400555261c75995431d4a4023a571747961ee Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/212774 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Geoff Lang <geofflang@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.