mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-04-01 09:25:24 +02: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,
|
// Copies are only supported if the sample count matches,
|
||||||
// otherwise we need to resolve.
|
// otherwise we need to resolve.
|
||||||
bool needsResolve = srcImage->info().sampleCount != VK_SAMPLE_COUNT_1_BIT;
|
auto needsResolve = false;
|
||||||
bool fbBlit = dstImage->info().sampleCount != VK_SAMPLE_COUNT_1_BIT;
|
if (srcImage->info().sampleCount != dstImage->info().sampleCount) {
|
||||||
fastPath &= !fbBlit;
|
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.
|
// Copies would only work if we are block aligned.
|
||||||
if (pSourceRect != nullptr) {
|
if (pSourceRect != nullptr) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user