mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-05 01:24:14 +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:
parent
a42643b235
commit
ceb3a7f8c6
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user