commit | eebb7d5e52deaf8d20018bcfa08c19748cef67d6 | [log] [tgz] |
---|---|---|
author | Corentin Wallez <cwallez@chromium.org> | Tue Sep 20 17:02:32 2022 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Sep 20 17:02:32 2022 +0000 |
tree | d51e98af068060be6a3be55c175de3f30277349c | |
parent | 1d100e4270df9d4fb785ffee9670936578257153 [diff] |
Fix leak of the eager exportable VkSemaphore. Exporting an exportable VkSemaphore doesn't implicitly destroy the VkSemaphore object. So instead of Detach()ing the VkSemaphore when it is first consumed, just let it go out of the scope and be destroyed with RAII. This also fixes the RAII by not destroying the VkSemaphore immediately and instead wait until it becomes unused. Found by running dawn_end2end_tests with the VVLs. Bug: chromium:1258986 Change-Id: I858839b3094eee0f575c07a8f18504680afb53e3 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/103024 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Loko Kung <lokokung@google.com> 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.