[security] Make sure that mPipeline in CreatePipelineEvent is cleared. - As per the bug below, the mPipeline reference may live if an error occurs as a part of initializing the pipeline. Because we still hold a reference to the resulting pipeline in the error case, we can run into a teardown race where we reference the Vulkan object when it is no longer valid. - This change just ensures that we always move the member variable out after the Complete call while holding the device lock. - Update existing tests to verify the fix. Note that the crucial change to the test is to pass Ref<PipelineMock> with std::move so that the last reference is dropped the way it would be in actual production. Bug: 575150692 Change-Id: Id1497f9fde96595bdba3b675415d2f07bc709a73 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/352215 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Auto-Submit: Loko Kung <lokokung@google.com> Reviewed-by: Corentin Wallez <cwallez@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.