[GPU] Write the interpreter's LOD statistics through the shared report writer

This commit is contained in:
ParantezTech 2026-10-11 19:01:25 +03:00
parent d5332f01ca
commit 880270b344
1 changed files with 1 additions and 6 deletions

View File

@ -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<uint> 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;