1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-28 02:19:26 +01:00

[d3d9] Do not resolve in StretchRect if src and dst are at the same sample count

This commit is contained in:
TheIronWolfModding 2025-03-24 16:39:07 +01:00 committed by Philip Rebohle
parent e6ef72b63d
commit 186866c837

View File

@ -1226,9 +1226,12 @@ namespace dxvk {
// Copies are only supported if the sample count matches,
// otherwise we need to resolve.
bool needsResolve = srcImage->info().sampleCount != VK_SAMPLE_COUNT_1_BIT;
bool fbBlit = dstImage->info().sampleCount != VK_SAMPLE_COUNT_1_BIT;
fastPath &= !fbBlit;
auto needsResolve = false;
if (srcImage->info().sampleCount != dstImage->info().sampleCount) {
needsResolve = srcImage->info().sampleCount != VK_SAMPLE_COUNT_1_BIT;
auto fbBlit = dstImage->info().sampleCount != VK_SAMPLE_COUNT_1_BIT;
fastPath &= !fbBlit;
}
// Copies would only work if we are block aligned.
if (pSourceRect != nullptr) {