1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-21 22:54:16 +01:00

[dxvk] Fix clear optimization edge case with multi-planar images

This commit is contained in:
Philip Rebohle 2025-02-12 21:29:29 +01:00
parent 0a84dbb787
commit 3453732bba

View File

@ -4267,7 +4267,7 @@ namespace dxvk {
// Ignore mismatched size for now, needs more testing since we'd
// need to prepare the image first and then call clearImageViewFb
if (dstImage->mipLevelExtent(dstSubresource.mipLevel) != dstExtent)
if (dstImage->mipLevelExtent(dstSubresource.mipLevel, dstSubresource.aspectMask) != dstExtent)
return false;
auto view = dstImage->createView(viewInfo);