CommandBufferVk: Update an ASSERT with copy format compatibility.

Fixed: dawn:1354
Change-Id: Id5b8169113436debf7a8af71df9737d1e0d2dec5
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/85920
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Corentin Wallez 2022-04-06 17:42:54 +00:00 committed by Dawn LUCI CQ
parent 380a262ad0
commit a696d08c51
1 changed files with 1 additions and 1 deletions

View File

@ -449,7 +449,7 @@ namespace dawn::native::vulkan {
const TextureCopy& srcCopy, const TextureCopy& srcCopy,
const TextureCopy& dstCopy, const TextureCopy& dstCopy,
const Extent3D& copySize) { const Extent3D& copySize) {
ASSERT(srcCopy.texture->GetFormat().format == dstCopy.texture->GetFormat().format); ASSERT(srcCopy.texture->GetFormat().CopyCompatibleWith(dstCopy.texture->GetFormat()));
ASSERT(srcCopy.aspect == dstCopy.aspect); ASSERT(srcCopy.aspect == dstCopy.aspect);
dawn::native::Format format = srcCopy.texture->GetFormat(); dawn::native::Format format = srcCopy.texture->GetFormat();
const TexelBlockInfo& blockInfo = format.GetAspectInfo(srcCopy.aspect).block; const TexelBlockInfo& blockInfo = format.GetAspectInfo(srcCopy.aspect).block;