commit | c5c748072ae6a28c17e73578f7d6b9556fb8415a | [log] [tgz] |
---|---|---|
author | Antonio Maiorano <amaiorano@google.com> | Thu Aug 08 14:45:08 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Aug 08 14:45:08 2024 +0000 |
tree | a19566e09b9598d2dc451431ed04c95626786234 | |
parent | 8f3ec78e223412d40fd76020c78fe2ea1270068d [diff] |
DXC: enable asserts in non-debug builds This change enables asserts in non-debug builds of DXC by undefining NDEBUG, and defining LLVM_ASSERTIONS_NO_STRINGS, and LLVM_ASSERTIONS_TRAP. We do this to reduce the DXC security bug rate by preferring assertions. We make sure assertions always trap, which makes the GPU process crash. The binary size of dxcompiler.dll increases by 3.5 MiB. We drop assertion strings, which would otherwise add another 3 MiB. The Chrome installer payload increases by 738 KiB. This increase was approved by chrome-binary-size@, see go/webgpu-dxc-asserts-in-non-debug-increasing-installer-size. Change-Id: I44d0ca34de7085e5d88df6079892fc2f5bbf867f Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/199734 Reviewed-by: dan sinclair <dsinclair@chromium.org> Commit-Queue: Antonio Maiorano <amaiorano@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.