| commit | 773610c8aecd28ef60f64654dea530e49406e138 | [log] [tgz] |
|---|---|---|
| author | Sunny Sachanandani <sunnyps@chromium.org> | Thu Aug 25 00:24:17 2022 +0000 |
| committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Aug 25 00:24:17 2022 +0000 |
| tree | 23932ac6b033bc8907e4a6797cda985b6ec57759 | |
| parent | 1e98a9ba4a64301e0ab932e22ce989688f6cdf6c [diff] |
[m105] d3d12: Disallow creating external image after device destruction ExternalImageDXGIImpl holds a weak reference to the device. If the device is destroyed before the image is created, the image will have a dangling reference to the device which can cause a use-after-free. This CL fixes that by adding a ValidateIsAlive() check before creating the image similar to creating other API objects. No-Try: True Bug: chromium:1352802 Change-Id: I477f15680ffd27e1ad0166835c4debb80b4be761 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/99384 Auto-Submit: Sunny Sachanandani <sunnyps@chromium.org> Commit-Queue: Austin Eng <enga@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> (cherry picked from commit 1130a602efc9cf83cd0e779fa2a1ba0f9a3a36bb) Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/100320 Commit-Queue: Sunny Sachanandani <sunnyps@chromium.org> Reviewed-by: Kai Ninomiya <kainino@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.