From 9b486515fa8d24939143265f15530c500bd238f8 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Sat, 25 Jan 2020 00:31:33 +0000 Subject: [PATCH] [d3d9] Allow StretchRect BC -> BC format without stretch --- src/d3d9/d3d9_device.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/d3d9/d3d9_device.cpp b/src/d3d9/d3d9_device.cpp index 24cc953c..9acf4164 100644 --- a/src/d3d9/d3d9_device.cpp +++ b/src/d3d9/d3d9_device.cpp @@ -936,9 +936,11 @@ namespace dxvk { bool stretch = srcCopyExtent != dstCopyExtent; fastPath &= !stretch; - // We don't support compressed destination formats at the moment - if (dstFormatInfo->flags.test(DxvkFormatFlag::BlockCompressed)) - return D3DERR_INVALIDCALL; + if (!fastPath || needsResolve) { + // Compressed destination formats are forbidden for blits. + if (dstFormatInfo->flags.test(DxvkFormatFlag::BlockCompressed)) + return D3DERR_INVALIDCALL; + } if (fastPath) { if (needsResolve) {