commit | 9e88dffecac53821c82d6665629ecc880ad361a3 | [log] [tgz] |
---|---|---|
author | Ryan Harrison <rharrison@chromium.org> | Tue Jun 17 09:54:02 2025 -0700 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jun 17 09:54:02 2025 -0700 |
tree | 2d4c13765c6e785ae489dad85a9ef4b429c88958 | |
parent | 43d1c379ef751f9a68a292a53341dedac21b2bc9 [diff] |
[tint][ir] Validate that discard is not directly in a non-fragment The existing check correctly identities if a discard occurs in a function that is called in a non-fragment entry point, but does not catch if the function for the entry point itself contains a discard. This is rooted to the fact that entry point functions are not considered to be contained in any other functions, not even reflexively themselves. This is fixed here by adding an explicit check in the validation rule for the containing function being an endpoint. The alternate would be to make a function be in its own set of containing functions, but that may have wider ranging impact that would need further testing to avoid infinite loops, since currently containing function is synonymous with calling function. Fixes: 424227913 Change-Id: If847c464a78db1e0ea2b90d32a2e52cdf82ac433 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/247334 Auto-Submit: Ryan Harrison <rharrison@chromium.org> Reviewed-by: 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.