From ceb3a7f8c68738a60a6e869c07b8148f747a84bd Mon Sep 17 00:00:00 2001 From: Robin Kertels Date: Wed, 3 May 2023 01:53:05 +0200 Subject: [PATCH] [dxvk] Do direct FB resolve if resolve format is UNDEFINED If the format is undefined, we use the format of each image which is obviously also view compatible with the imge. --- 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 061a2d10..c0c1a7d1 100644 --- a/src/dxvk/dxvk_context.cpp +++ b/src/dxvk/dxvk_context.cpp @@ -4423,7 +4423,7 @@ namespace dxvk { // create a temporary image to draw to, and then copy to the actual // destination image using a regular Vulkan transfer function. bool useDirectCopy = (dstImage->info().usage & (VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT)) - && (dstImage->isViewCompatible(format)); + && (!format || dstImage->isViewCompatible(format)); if (useDirectCopy) { this->resolveImageFbDirect(dstImage, srcImage,