commit | cac96415aae02c933bc8e182d8f2a2743eeeca1e | [log] [tgz] |
---|---|---|
author | Zhaoming Jiang <zhaoming.jiang@intel.com> | Mon Nov 22 09:57:52 2021 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Nov 22 09:57:52 2021 +0000 |
tree | 6e8c5bf2f323538be2283f9f2fbdfa67b595162a | |
parent | 3d9e331ef83a8813cd50acbd831d0df96f827118 [diff] |
Add size parameter check in buffer mapAsync in wire server This patch add the size parameter check in buffer mapAsync in dawn wire server to make sure that it is not WGPU_WHOLE_MAP_SIZE. Together with validation in mapAsync in dawn native, we can ensure that the size parameter deserialized in wire server is a valid actual size. When using default size with dawn wire, the actual size is computed by wire client, and WGPU_WHOLE_MAP_SIZE shall never be passed to server. Bug: chromium:1270819 Change-Id: Ic0fe52efed15860bcc519a3881f0f649f7455435 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/70260 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Zhaoming Jiang <zhaoming.jiang@intel.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.