From 5d2215e898dab636b2ba3b044fa520efe960efe3 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Fri, 24 Jan 2020 18:36:38 +0100 Subject: [PATCH] [d3d9] Don't try to blit to compressed images Fixes Vulkan validation errors and potential driver crashes in Dragon Age Origins. --- src/d3d9/d3d9_device.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/d3d9/d3d9_device.cpp b/src/d3d9/d3d9_device.cpp index 7c8d394f2c5..24cc953ca65 100644 --- a/src/d3d9/d3d9_device.cpp +++ b/src/d3d9/d3d9_device.cpp @@ -936,6 +936,10 @@ 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) { if (needsResolve) { VkImageResolve region;