Skip to content

Commit

Permalink
[dxvk] Fix clear optimization edge case with multi-planar images
Browse files Browse the repository at this point in the history
  • Loading branch information
doitsujin committed Feb 12, 2025
1 parent 0a84dbb commit 3453732
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dxvk/dxvk_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3453732

Please sign in to comment.