commit | 1c4481d807700f787f4f38aacd12629f218b0c0e | [log] [tgz] |
---|---|---|
author | dan sinclair <dsinclair@chromium.org> | Tue Jun 10 09:03:00 2025 -0700 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jun 10 09:03:00 2025 -0700 |
tree | cbc80609336f443a5238f26b3589a7a059fbf8cb | |
parent | e9ff258aae8be9a901de2826fdb2f20cc7a6ed8f [diff] |
[ir][validator] Fix return value check for void functions. If a function returns `void` the `CheckReturn` in the IR validator was just checking if the return `Value` was true. In the case where the return has a value of `undef` then that check would not trigger as `nullptr` is false. Add a `HasValue` into the `ir::Return` so we can determine if anything exists in the operands, instead of checking the truthyness of the value itself. Bug: 422810448 Change-Id: I9d0c72632144289fd05c2aecef82972ade757066 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/246154 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: dan sinclair <dsinclair@chromium.org> Auto-Submit: dan sinclair <dsinclair@chromium.org> Commit-Queue: Ryan Harrison <rharrison@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.