aboutsummaryrefslogtreecommitdiff
path: root/src/core/hw/gpu.cpp
diff options
context:
space:
mode:
authorSebastian Valle <subv2112@gmail.com>2016-12-08 15:45:53 -0500
committerGitHub <noreply@github.com>2016-12-08 15:45:53 -0500
commit91fce7f5d215114e3c3f4adb88ae1ef0d70030b9 (patch)
treeb728f58138b1791f9f4acca4388476cc9ad68eca /src/core/hw/gpu.cpp
parentb185a33a1ddf085d1c1ebb9c75b66f719cfd11f4 (diff)
parent4650bc60b4c787e03b67826aa0084e21592c418e (diff)
Merge pull request #2280 from Subv/citrace_size
Fixed the gpu command list size when creating CiTraces.
Diffstat (limited to 'src/core/hw/gpu.cpp')
-rw-r--r--src/core/hw/gpu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hw/gpu.cpp b/src/core/hw/gpu.cpp
index cfba82e51c..1503b45da4 100644
--- a/src/core/hw/gpu.cpp
+++ b/src/core/hw/gpu.cpp
@@ -487,8 +487,8 @@ inline void Write(u32 addr, const T data) {
u32* buffer = (u32*)Memory::GetPhysicalPointer(config.GetPhysicalAddress());
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);