mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-19 05:52:11 +01:00
[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.
This commit is contained in:
parent
4a71da3a1c
commit
cfcca11fc5
@ -454,8 +454,7 @@ namespace dxvk {
|
|||||||
|
|
||||||
// Don't perform the copy if the image extent is not aligned and
|
// 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 it does not touch the image border for unaligned dimensons
|
||||||
if (!util::isBlockAligned(srcOffset, regExtent, srcFormatInfo->blockSize, srcExtent)
|
if (!util::isBlockAligned(srcOffset, regExtent, srcFormatInfo->blockSize, srcExtent)) {
|
||||||
|| !util::isBlockAligned(dstOffset, regExtent, dstFormatInfo->blockSize, dstExtent)) {
|
|
||||||
Logger::err(str::format(
|
Logger::err(str::format(
|
||||||
"D3D11: CopySubresourceRegion: Unaligned block size",
|
"D3D11: CopySubresourceRegion: Unaligned block size",
|
||||||
"\n Src offset: (", srcOffset.x, ",", srcOffset.y, ",", srcOffset.z, ")",
|
"\n Src offset: (", srcOffset.x, ",", srcOffset.y, ",", srcOffset.z, ")",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user