From 3453732bba6a4255ac93da60ae26dbe6968b4df3 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Wed, 12 Feb 2025 21:29:29 +0100 Subject: [PATCH] [dxvk] Fix clear optimization edge case with multi-planar images --- src/dxvk/dxvk_context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dxvk/dxvk_context.cpp b/src/dxvk/dxvk_context.cpp index f603c687f..0b7c7ce16 100644 --- a/src/dxvk/dxvk_context.cpp +++ b/src/dxvk/dxvk_context.cpp @@ -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);