mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-20 19:07:01 +02:00
fix regression TryReadBacking
This commit is contained in:
+4
-3
@@ -466,9 +466,10 @@ std::pair<Buffer*, uint64_t> BufferCache::ObtainBuffer(uint64_t vaddr, uint64_t
|
|||||||
const auto alignment = std::max<uint64_t>(
|
const auto alignment = std::max<uint64_t>(
|
||||||
m_graphics.physical_device_properties.limits.minUniformBufferOffsetAlignment, 1);
|
m_graphics.physical_device_properties.limits.minUniformBufferOffsetAlignment, 1);
|
||||||
auto [mapped, offset] = m_stream_buffer.Map(size, alignment);
|
auto [mapped, offset] = m_stream_buffer.Map(size, alignment);
|
||||||
EXIT_IF(mapped == nullptr || !Libs::LibKernel::Memory::TryReadBacking(vaddr, mapped, size));
|
if (mapped != nullptr && Libs::LibKernel::Memory::TryReadBacking(vaddr, mapped, size)) {
|
||||||
m_stream_buffer.Commit();
|
m_stream_buffer.Commit();
|
||||||
return {&m_stream_buffer, offset};
|
return {&m_stream_buffer, offset};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
auto* buffer = m_slot_buffers.try_get(id);
|
auto* buffer = m_slot_buffers.try_get(id);
|
||||||
|
|||||||
Reference in New Issue
Block a user