commit | 1455a56bf76540305a81a0b95300cd7fefd9b036 | [log] [tgz] |
---|---|---|
author | Ryan Harrison <rharrison@chromium.org> | Mon Aug 18 13:42:47 2025 -0700 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Aug 18 13:42:47 2025 -0700 |
tree | 2581775119e24e6b3b2ed9e5b3dacde27c8cb0bd | |
parent | a593c871442f63f68c9bff54c908196846576b38 [diff] |
[tint][val] Fix validation of fixed operand count instructions CheckBinary and CheckUnary are currently using the wrong helpers, and thus do not validate the number of operands are exactly what is expected. Additional operands are let through, and don't have their type checked at all, which can lead to crashes later on. This patch changes them to check for exactly the correct number of operands. It also adds related test cases to coverage various malformed inputs that were missing (and check valid inputs are accepted). Fixes: 436474475 Change-Id: Iecf9e2dae55565f99b88aa6f6b18aa72f99d84f3 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/257834 Commit-Queue: Ryan Harrison <rharrison@chromium.org> Auto-Submit: Ryan Harrison <rharrison@chromium.org> Commit-Queue: dan sinclair <dsinclair@chromium.org> Reviewed-by: dan sinclair <dsinclair@chromium.org> Reviewed-by: James Price <jrprice@google.com> Commit-Queue: 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.