1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-14 22:29:15 +01:00

[d3d9] Allow StretchRect BC -> BC format without stretch

This commit is contained in:
Joshua Ashton 2020-01-25 00:31:33 +00:00
parent c07f7e2ea0
commit 9b486515fa

View File

@ -936,9 +936,11 @@ namespace dxvk {
bool stretch = srcCopyExtent != dstCopyExtent; bool stretch = srcCopyExtent != dstCopyExtent;
fastPath &= !stretch; fastPath &= !stretch;
// We don't support compressed destination formats at the moment if (!fastPath || needsResolve) {
if (dstFormatInfo->flags.test(DxvkFormatFlag::BlockCompressed)) // Compressed destination formats are forbidden for blits.
return D3DERR_INVALIDCALL; if (dstFormatInfo->flags.test(DxvkFormatFlag::BlockCompressed))
return D3DERR_INVALIDCALL;
}
if (fastPath) { if (fastPath) {
if (needsResolve) { if (needsResolve) {