commit | a0239e7d364cb3dcc1e504aea3ab8ceb88bf6132 | [log] [tgz] |
---|---|---|
author | Antonio Maiorano <amaiorano@google.com> | Fri Nov 01 03:48:54 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Nov 01 03:48:54 2024 +0000 |
tree | 046b00c0f0c81bd6d68e6741d0e529248bbba216 | |
parent | aa806c5cb792a9826ad5075f80c2ba15e1e8943d [diff] |
HLSL-IR: Fix default-only-switch workaround for FXC Existing implementation on the IR path would add a "case 0" along with the default case, but did doesn't fix the FXC code gen bug. This patch implements the same fix we did on the AST path: that is, to replace the switch with a single-iteration loop. Also opportunistically renamed FxcPolyfill to ReplaceDefaultOnlySwitch as this was the only thing it handles, and we've decided to keep each FXC-specific transform separate. Bug: 368660972 Bug: 42250197 Change-Id: I9ad11fb089d792c3e6c9ce7be5eccae7fc52f2d2 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/213014 Reviewed-by: dan sinclair <dsinclair@chromium.org> Reviewed-by: James Price <jrprice@google.com> Auto-Submit: Antonio Maiorano <amaiorano@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.