[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.