commit | 3354bf0d91e941942f56930c48adddaa9e471560 | [log] [tgz] |
---|---|---|
author | Loko Kung <lokokung@google.com> | Thu Sep 22 23:45:36 2022 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Sep 22 23:45:36 2022 +0000 |
tree | 6d226e39db9171c0105b50ba689c7404bb688ae0 | |
parent | c4ebf2cc57dd715001f09589b522f401ab6dac03 [diff] |
Add cleanup when encoding indirect draw validations. - Cleanup is necessary because otherwise encoded render commands may be leaked if the validation encoding fails. (The leaked render commands can then trigger an assert in ~Device::Cache because the commands can hold a ref to an AttachmentState that was not destroyed, and hence still be in the device cache. - Added explicit check in EncoderIndirectDrawValidationCommands for device 'alive-ness' since it may create new objects later and hit the same error later on anyways. - Added regression test. Fixed: chromium:1365011 Change-Id: I342479a4227fc43d82ea35f662d049e6db2b1740 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/103340 Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Loko Kung <lokokung@google.com> Kokoro: Kokoro <noreply+kokoro@google.com>
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.