From a696d08c51b02686e8bad3c6e6cf576d02b9622f Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Wed, 6 Apr 2022 17:42:54 +0000 Subject: [PATCH] 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 Commit-Queue: Corentin Wallez --- src/dawn/native/vulkan/CommandBufferVk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dawn/native/vulkan/CommandBufferVk.cpp b/src/dawn/native/vulkan/CommandBufferVk.cpp index 23125bd36c..2e94f6a213 100644 --- a/src/dawn/native/vulkan/CommandBufferVk.cpp +++ b/src/dawn/native/vulkan/CommandBufferVk.cpp @@ -449,7 +449,7 @@ namespace dawn::native::vulkan { const TextureCopy& srcCopy, const TextureCopy& dstCopy, 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); dawn::native::Format format = srcCopy.texture->GetFormat(); const TexelBlockInfo& blockInfo = format.GetAspectInfo(srcCopy.aspect).block;