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:
parent
e6ef72b63d
commit
186866c837
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user