commit | 122fe3f11b5f69e2bd5125d7de6991a30cb71e84 | [log] [tgz] |
---|---|---|
author | Ryan Harrison <rharrison@chromium.org> | Tue Nov 26 22:05:45 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Nov 26 22:05:45 2024 +0000 |
tree | 73448e39bb68f209019b8ee6fe0fd8b61bf660bf | |
parent | 76024e111207c3adca346373e26b4c25064d8543 [diff] |
[tint][ir][fuzz] Refactor IR fuzzer infra to impl pre/post validation This change hoists the bespoke code from a variety of fuzzer implementation for doing post-run validation up into the fuzzer runner code, so that copy-paste errors and capability omissions are more difficult. Fuzzer creation now takes in either a single Capability set that is used for validation before and after a run, or a pair of Capability sets, one for before validation and one for post validation. This required having the fuzzer impl function return whether or not the run was successful, thus whether or not post-validation should occur. Instead of using a simple bool, the Result<SuccessType> that many transform impls return was instead used, so these impls could be passed into the fuzzing infra with less boiler plate. Some fuzzing passes that previously did not perform a post-validation step now do with this change. Fixes: 380282495 Change-Id: I0372a326384d8f29aa4a61dd02b49a61dc2efc7d Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/216534 Commit-Queue: Ryan Harrison <rharrison@chromium.org> Reviewed-by: Antonio Maiorano <amaiorano@google.com> Reviewed-by: James Price <jrprice@google.com>
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.