commit | ae72b0b2e6e410b0bf4a49bc22d9b642c8262fe9 | [log] [tgz] |
---|---|---|
author | James Price <jrprice@google.com> | Fri Aug 18 11:22:45 2023 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Aug 18 11:22:45 2023 +0000 |
tree | 61167c4e8166dfd9510f27f25946cf715b0c59d7 | |
parent | 4942aed69a654190938419dd368f6931e50437fb [diff] |
[ir][spirv-writer] Avoid integer DBZ Add a polyfill to BinaryPolyfill that modifies the RHS to avoid DBZ. This also checks for the `INT_MIN / -1` case to avoid signed integer overflow. For modulo, compute the remainder manually as many backends have undefined behavior for negative operands. Tested against WebGPU CTS with SwiftShader. Bug: tint:1906 Change-Id: I980b8bf68ae03263522c21fef6ed6580bf85ae52 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/147600 Reviewed-by: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: James Price <jrprice@google.com>
Dawn is an open-source and cross-platform implementation of the work-in-progress 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)
(TODO)
Apache 2.0 Public License, please see LICENSE.
This is not an officially supported Google product.