From cfcca11fc536378596ed156aafe9822f4403a276 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Sun, 22 Apr 2018 23:00:31 +0200 Subject: [PATCH] [d3d11] CopySubresourceRegion: Fix block size alignment check The source region size doesn't have to be aligned to the destination block size. We should be checking whether the destination region is aligned to the destination block size. --- src/d3d11/d3d11_context.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/d3d11/d3d11_context.cpp b/src/d3d11/d3d11_context.cpp index 576ac8954..d2fbe5223 100644 --- a/src/d3d11/d3d11_context.cpp +++ b/src/d3d11/d3d11_context.cpp @@ -454,8 +454,7 @@ namespace dxvk { // Don't perform the copy if the image extent is not aligned and // if it does not touch the image border for unaligned dimensons - if (!util::isBlockAligned(srcOffset, regExtent, srcFormatInfo->blockSize, srcExtent) - || !util::isBlockAligned(dstOffset, regExtent, dstFormatInfo->blockSize, dstExtent)) { + if (!util::isBlockAligned(srcOffset, regExtent, srcFormatInfo->blockSize, srcExtent)) { Logger::err(str::format( "D3D11: CopySubresourceRegion: Unaligned block size", "\n Src offset: (", srcOffset.x, ",", srcOffset.y, ",", srcOffset.z, ")",