mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-28 18:21:22 +00:00
If there is an empty row at the beginning of a copy region due to alignment adjustment, this copy region split by 2D texture splitter will be definitely incorrect for 3D textures because every depth slice (except the first slice) will wrongly skip one row. We need to recompute this copy region via modifying this copy region and adding a couple more copy regions for the empty first row issue. The idea of recomputation is: - modify this copy region and don't copy the last row in order to make its bufferSize.height not exceed rowsPerImage, - use one more copy region to handle the last row of each depth slice except the last depth slice, - use another copy region to handle the last row of the last depth slice. Bug: dawn:547 Change-Id: Ib2f6019963ed29d62a9f13d7316b5f04801db8c9 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/52341 Commit-Queue: Yunchao He <yunchao.he@intel.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org>