mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-13 12:57:49 +00:00
gpu: Use host address for caching instead of guest address.
This commit is contained in:
parent
e400f8b65f
commit
7fccfc3ee7
26 changed files with 393 additions and 293 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue