commit | 9dc42add8fdeb00c36aaaa3ed2d19d4bdfbc6ab6 | [log] [tgz] |
---|---|---|
author | Ben Clayton <bclayton@google.com> | Mon Feb 05 18:01:33 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Feb 05 18:01:33 2024 +0000 |
tree | 2715a4f5686ead39b8e9e9f6e32b108a5e39f7e9 | |
parent | ec817fd5805b7a4d8c2f529119b74355838e4e00 [diff] |
[tint][ast] Fix type <-> parameter shadowing issues. The ZeroInitWorkgroupMemory and ModuleScopeVarToEntryPointParam transforms both suffered from issues where parameters could shadow types which are used in the function body. To fix the ZeroInitWorkgroupMemory issue, move the workgroup zeroing logic out to a separate function. To fix the ModuleScopeVarToEntryPointParam issue, use type inferencing on the created let declaration. This type of issue does not exist with the IR path. Bug: chromium:40943165 Change-Id: If1a753fddbad6a1b78b08624a038e4ab70ade0f8 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/173460 Auto-Submit: Ben Clayton <bclayton@google.com> Reviewed-by: David Neto <dneto@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: David Neto <dneto@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.