mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-18 21:08:01 -05:00
gpu: Use host address for caching instead of guest address.
This commit is contained in:
@ -396,7 +396,10 @@ void Maxwell3D::ProcessCBData(u32 value) {
|
||||
const auto address = memory_manager.GpuToCpuAddress(buffer_address + regs.const_buffer.cb_pos);
|
||||
ASSERT_MSG(address, "Invalid GPU address");
|
||||
|
||||
Memory::Write32(*address, value);
|
||||
u8* ptr{Memory::GetPointer(*address)};
|
||||
rasterizer.InvalidateRegion(ToCacheAddr(ptr), sizeof(u32));
|
||||
std::memcpy(ptr, &value, sizeof(u32));
|
||||
|
||||
dirty_flags.OnMemoryWrite();
|
||||
|
||||
// Increment the current buffer position.
|
||||
|
Reference in New Issue
Block a user