commit | ae39e6d62808b1b3899430c38f41f618ed9337d7 | [log] [tgz] |
---|---|---|
author | James Price <jrprice@google.com> | Tue Apr 25 19:16:25 2023 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Apr 25 19:16:25 2023 +0000 |
tree | 0b56280169e1c6358624477692efc1399d9d721c | |
parent | a41693babb6069d4487a1cd2ab114aa87ee0fe78 [diff] |
spirv-reader: Declare multiuse constant composites When an OpConstantComposite result is used by multiple instructions, declare it as a module-scope `const` instead of inlining the constant at each use site. This fixes an issue whereby the spirv-reader was massively inflating the size of the WGSL it produces, which was caught via an OOM fuzzer bug. Bug: oss-fuzz:57795 Change-Id: Iac8c6a2147a7e2ebfddbaacae9fcb1dbe0b59e9d Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/128881 Auto-Submit: James Price <jrprice@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: David Neto <dneto@google.com> Commit-Queue: David Neto <dneto@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.