commit | 70147102cbb04667ec2eb79bfc983388f60a6cea | [log] [tgz] |
---|---|---|
author | Shrek Shao <shrekshao@google.com> | Thu Mar 07 00:42:11 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Mar 07 00:42:11 2024 +0000 |
tree | f21df08194a7056232cb55008a7fd27a44537401 | |
parent | b26e68557c850d8486deb097055b69065ffdd5a2 [diff] |
[WGPUFuture][native] fix duplicate WaitRef to unready events in ProcessPollEvents If any unready WaitRef still exists in `futures` and mEvents release the lock and other thread enters mEvents->Use, it ends in creating duplicate WaitRef to unready events, triggering the assert on `!wasAlreadyWaited`. Fix by making futures inside the temp scope and using a separate vector of WaitRefs only to completable events. Bug: dawn:1987 Change-Id: I678a214600da13388e362b5c27d16154fa727bb0 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/177932 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Shrek Shao <shrekshao@google.com> Reviewed-by: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Loko Kung <lokokung@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.