commit | f5abb823f98d0ab55b31b63453d46188b7f9e5a3 | [log] [tgz] |
---|---|---|
author | Antonio Maiorano <amaiorano@google.com> | Wed Feb 28 01:01:02 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Feb 28 01:01:02 2024 +0000 |
tree | 532befe9c01b65258842be398f26789567478e4d | |
parent | 458f703ec39a873dc46ba3041f71eb387e6a161d [diff] |
tint: work around zero-init bug on some GPUs for workgroup size(1) This was seen specifically on Windows with an AMD GPU, when using DXC to compile compute shaders with workgroup size of 1. Flaky, but reproducible when running CTS test: webgpu:shader,execution,zero_init:compute,zero_init:addressSpace="workgroup";workgroupSize=[1,1,1];* We are generating valid code in Tint, but this workaround makes it so that DXC opts to emit the zero-init instructions rather than tagging the groupshared variable as 'zeroinitializer'. This seems to make the buggy driver happy. Also see: https://github.com/microsoft/DirectXShaderCompiler/issues/6352 Bug: tint:2143 Change-Id: If84b992c4961bafeb1a8ff328626d3f6cf1fb98d Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/176140 Commit-Queue: Antonio Maiorano <amaiorano@google.com> Reviewed-by: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@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.