commit | aa806c5cb792a9826ad5075f80c2ba15e1e8943d | [log] [tgz] |
---|---|---|
author | Lokbondo Kung <lokokung@google.com> | Fri Nov 01 03:25:37 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Nov 01 03:25:37 2024 +0000 |
tree | abc0c08e6849806d4ac192d17a90f51544ee21f1 | |
parent | 0eee090c2b8adca4142c352b6668a9b72435c538 [diff] |
[dawn][native] Fixes TSAN race from GetCompilationInfo. - The race happens when multiple threads Complete the CompilationInfoEvent. The call to OwnedCompilationMessages::GetCompilationInfo was writing to the owned copy of CompilationInfo in both threads. Note that in practice, the competing threads would have written the same things. - Adds an atomic bool to gate writing to the internal CompilationInfo struct that should only ever be written once. - Updates some of the asserts to use the new bool to be explicit. Bug: 373845830 Change-Id: I3998a276bc210bc5bf5bccfe31c44b4e01de4472 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/211947 Reviewed-by: Shrek Shao <shrekshao@google.com> Auto-Submit: Loko Kung <lokokung@google.com> Reviewed-by: Geoff Lang <geofflang@chromium.org> Commit-Queue: Geoff Lang <geofflang@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.