commit | 6f5b030654e908e2c7d400cbf003a38195c7b00f | [log] [tgz] |
---|---|---|
author | Antonio Maiorano <amaiorano@google.com> | Sat Nov 02 00:16:36 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Sat Nov 02 00:16:36 2024 +0000 |
tree | 80c668435b7dd419a3189ddd65f864cda1d75148 | |
parent | bfef434cce0508a3bc4b7b497f5bd8e465345db3 [diff] |
HLSL-IR: fix ShaderIO OOB indexing when mixing subgroup and workgroup inputs with others GetInput was indexing OOB on input_indices when indexing these other inputs. For example, for a compute shader with a subgroup parameter followed by a regular invocation id, GetInput would intercept the subgroup parameter to emit the proper Wave call, but for the invocation id, it would index input_indices at a member index that was out of bounds. The fix is to make sure input_indices is properly populated, even for members we won't be looking up in there. Bug: 363199902 Bug: 357896924 Change-Id: I5e3d30980a10b8beeccf5461611ea96b5bcda7b6 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/213379 Auto-Submit: Antonio Maiorano <amaiorano@google.com> Commit-Queue: dan sinclair <dsinclair@chromium.org> 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.