mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-31 07:50:24 +00:00
This patch fixes a bug in the computation of texture copy buffer size. As the 'width' and 'height' in copy commands are all in pixels, while the buffer size is counted in bytes, we shoud first convert 'width' into bytes before calculating the buffer size. BUG=dawn:42 TEST=dawn_unittests Change-Id: Iebd5ed07a54eea762f4a653e295ecacb845ba32f Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/7940 Commit-Queue: Jiawei Shao <jiawei.shao@intel.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org>