mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-19 10:07:50 +00:00
general: workarounds for SMMU syncing issues (#12749)
This commit is contained in:
parent
a918ce6fe9
commit
5f2369bba6
2 changed files with 12 additions and 7 deletions
|
@ -1488,7 +1488,10 @@ void BufferCache<P>::ImmediateUploadMemory([[maybe_unused]] Buffer& buffer,
|
|||
std::span<const u8> upload_span;
|
||||
const DAddr device_addr = buffer.CpuAddr() + copy.dst_offset;
|
||||
if (IsRangeGranular(device_addr, copy.size)) {
|
||||
upload_span = std::span(device_memory.GetPointer<u8>(device_addr), copy.size);
|
||||
auto* const ptr = device_memory.GetPointer<u8>(device_addr);
|
||||
if (ptr != nullptr) {
|
||||
upload_span = std::span(ptr, copy.size);
|
||||
}
|
||||
} else {
|
||||
if (immediate_buffer.empty()) {
|
||||
immediate_buffer = ImmediateBuffer(largest_copy);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue