Browse Source

Fixed the gpu command list size when creating CiTraces.

Subv 9 years ago
parent
commit
5719467add
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/core/hw/gpu.cpp

+ 2 - 2
src/core/hw/gpu.cpp

@@ -476,8 +476,8 @@ inline void Write(u32 addr, const T data) {
             u32* buffer = (u32*)Memory::GetPhysicalPointer(config.GetPhysicalAddress());
             u32* buffer = (u32*)Memory::GetPhysicalPointer(config.GetPhysicalAddress());
 
 
             if (Pica::g_debug_context && Pica::g_debug_context->recorder) {
             if (Pica::g_debug_context && Pica::g_debug_context->recorder) {
-                Pica::g_debug_context->recorder->MemoryAccessed(
-                    (u8*)buffer, config.size * sizeof(u32), config.GetPhysicalAddress());
+                Pica::g_debug_context->recorder->MemoryAccessed((u8*)buffer, config.size,
+                                                                config.GetPhysicalAddress());
             }
             }
 
 
             Pica::CommandProcessor::ProcessCommandList(buffer, config.size);
             Pica::CommandProcessor::ProcessCommandList(buffer, config.size);