1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-04 16:24:29 +01:00

[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.
This commit is contained in:
Robin Kertels 2023-05-03 01:53:05 +02:00 committed by Philip Rebohle
parent a42643b235
commit ceb3a7f8c6

View File

@ -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,