commit | 3cd31e647c7de96644e52613b3b23270736654fb | [log] [tgz] |
---|---|---|
author | Corentin Wallez <cwallez@chromium.org> | Mon Nov 23 16:16:00 2020 +0000 |
committer | Commit Bot service account <commit-bot@chromium.org> | Mon Nov 23 16:16:00 2020 +0000 |
tree | 3a6073a4d1b97d2805bd697d83598e9f24e5db9a | |
parent | 546a7c98c89718f2dadf1ae07088fa7cf2ccb53f [diff] |
Metal: Prevent data race on mLastSubmittedCommands There was a data-race between getting and using the pointer to mLastSubmittedCommands in WaitForCommandsToBeScheduled and setting it inside the scheduling handler. Lock the mutex before calling waitUntilScheduled so that the object doesn't get destroyed from underneath us. Bug: chromium:1142024 Change-Id: Iadbf473530342de6d108d39285d723815452ac7c Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/31260 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org>
Dawn is an open-source and cross-platform implementation of the work-in-progress 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)
(TODO)
Apache 2.0 Public License, please see LICENSE.
This is not an officially supported Google product.