Skip to content

Commit

Permalink
[d3d9] Don't try to blit to compressed images
Browse files Browse the repository at this point in the history
Fixes Vulkan validation errors and potential driver crashes in
Dragon Age Origins.
  • Loading branch information
doitsujin authored and misyltoad committed Jan 24, 2020
1 parent 13792df commit 5d2215e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/d3d9/d3d9_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5d2215e

Please sign in to comment.