commit | cafed68012b3d6b49bd8e0a7bc7dff314a0dee56 | [log] [tgz] |
---|---|---|
author | James Price <jrprice@google.com> | Thu May 29 19:29:02 2025 -0700 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu May 29 19:29:02 2025 -0700 |
tree | 5f4a05edc38d32bbd279e6619afbe0a162d02722 | |
parent | b664a6e4456399d4cea52d6bedb691f43958592c [diff] |
[spirv] Avoid scoping issues with MergeReturn in loops When replacing a `return` instruction that is nested at any depth inside a loop or switch statement, we can use `exit_loop` or `exit_switch` to jump directly out of the loop/switch, instead of conditionalizing the instructions that follow the return. This fixes scoping issues where loop continuing blocks were referencing values defined inside conditional blocks. Fixed: 420345727 Change-Id: I247ad747b34e8af69091ea0a445e8c44f521f4a6 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/243834 Commit-Queue: James Price <jrprice@google.com> Reviewed-by: dan sinclair <dsinclair@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.