|author||Jiawei Shao <email@example.com>||Fri Jun 19 22:39:53 2020 +0000|
|committer||Commit Bot service account <firstname.lastname@example.org>||Fri Jun 19 22:39:53 2020 +0000|
Fix a bug in ComputeTextureCopyBufferSize with empty copySize This patch fixes a bug in buffer-to-texture and texture-to-buffer copies when copySize.height == 0 or copySize.depth == 0. Previously we miss the checks if either copySize.height or copySize.depth is 0 before doing (copySize.height / blockHeight - 1) and (copySize.depth - 1) thus we will get incorrect results because of arithmetic overflows. This patch fixes this bug by adding the missed check and adds the related regression tests in dawn_unittests BUG=dawn:453 TEST=dawn_unittests Change-Id: I970e420c0fa7f0b61c656365bef079c123a59e6a Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/23520 Commit-Queue: Kai Ninomiya <email@example.com> Reviewed-by: Austin Eng <firstname.lastname@example.org> Reviewed-by: Kai Ninomiya <email@example.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.hversion that Dawn implements.
User documentation: (TODO, figure out what overlaps with webgpu.h docs)
Apache 2.0 Public License, please see LICENSE.
This is not an officially supported Google product.