mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-20 18:29:23 +00:00
Fix bugs in the multi-layer copies with BC formats on D3D12 and OpenGL
This patch fixes two bugs in the copy commands with BC formats and multiple array layers on D3D12 and OpenGL and adds two end2end tests as the regression tests. This patch also removes "viewArrayLayer" in the struct CopyConfig used in CompressedTextureBCFormatTest and sets the base array layer into CopyConfig.copyOrigin3D.z instead. BUG=dawn:453 TEST=dawn_end2end_tests Change-Id: I1c2e6b79fb7c44fc996655ab5a908e27ba8c4729 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/24183 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
16ca52cc16
commit
4d007f34f3
@@ -542,7 +542,7 @@ namespace dawn_native { namespace opengl {
|
||||
ASSERT(texture->GetDimension() == wgpu::TextureDimension::e2D);
|
||||
uint64_t copyDataSize = (copySize.width / formatInfo.blockWidth) *
|
||||
(copySize.height / formatInfo.blockHeight) *
|
||||
formatInfo.blockByteSize;
|
||||
formatInfo.blockByteSize * copySize.depth;
|
||||
Extent3D copyExtent = ComputeTextureCopyExtent(dst, copySize);
|
||||
|
||||
if (texture->GetArrayLayers() > 1) {
|
||||
|
||||
Reference in New Issue
Block a user