[D3D12] Fix resolve not syncing with CPU memory and memory extent calculation

This commit is contained in:
Triang3l
2020-08-28 23:49:23 +03:00
parent a1d33615b0
commit 210c30aef9
4 changed files with 13 additions and 9 deletions

View File

@@ -1133,7 +1133,7 @@ bool RenderTargetCache::Resolve(const Memory& memory,
copy_dest_resident = texture_cache.EnsureScaledResolveBufferResident(
resolve_info.copy_dest_base, resolve_info.copy_dest_length);
} else {
copy_dest_resident = shared_memory.EnsureTilesResident(
copy_dest_resident = shared_memory.RequestRange(
resolve_info.copy_dest_base, resolve_info.copy_dest_length);
}
if (copy_dest_resident) {
@@ -1225,6 +1225,8 @@ bool RenderTargetCache::Resolve(const Memory& memory,
written_length_out = resolve_info.copy_dest_length;
copied = true;
}
} else {
XELOGE("Failed to obtain the resolve destination memory region");
}
}
} else {