From 880270b344395de3fd4806f2c5e8ed8330d1e741 Mon Sep 17 00:00:00 2001 From: ParantezTech <12572227+par274@users.noreply.github.com> Date: Sun, 11 Oct 2026 19:01:25 +0300 Subject: [PATCH] [GPU] Write the interpreter's LOD statistics through the shared report writer --- .../Gpu/GpuCommands/GpuCommandInterpreter.Memory.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/SharpEmu.Libs/Gpu/GpuCommands/GpuCommandInterpreter.Memory.cs b/src/SharpEmu.Libs/Gpu/GpuCommands/GpuCommandInterpreter.Memory.cs index 6388ed0..1fec559 100644 --- a/src/SharpEmu.Libs/Gpu/GpuCommands/GpuCommandInterpreter.Memory.cs +++ b/src/SharpEmu.Libs/Gpu/GpuCommands/GpuCommandInterpreter.Memory.cs @@ -11,7 +11,6 @@ namespace SharpEmu.Libs.Gpu.GpuCommands; public sealed partial class GpuCommandInterpreter { private const uint DmaSkippedDestination = 0x3022C; - private const uint LodStatsWithoutCounters = 1; // Destination selectors 1, 2, 4 and 5 are memory; registers and GDS are not supported. internal void WriteData(ulong destination, ReadOnlySpan source, uint writeControl) @@ -375,12 +374,8 @@ public sealed partial class GpuCommandInterpreter if (destination != 0 && bufferSize != 0) { var report = new byte[bufferSize]; - var hasCounters = MipStatistics.Shared.TryWriteReport(report); + MipStatistics.Shared.WriteReport(report); WriteBytes(destination, report); - if (bufferSize >= sizeof(uint)) - { - WriteDword(destination, hasCounters ? MipStatistics.FirstCounterOffset : LodStatsWithoutCounters); - } } return 4;