mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-25 18:05:12 -04:00
101fd2e1a9
Add 46 seeds for the libgte helper functions at BFC34E00-BFC36D00. These wrap individual GTE operations (RTPS, RTPT, NCLIP, MVMVA, etc.) and were never discovered because they're called via JALR function pointers, not direct JAL. Coverage: 52→114 gte_execute, 166→429 LWC2/SWC2. Emitted functions: 1178→1214. Seeds: 960→1006. Fix DuckStation oracle VRAM readback by setting UseSoftwareRendererForReadbacks=true in settings.ini. Add debug/analysis tools: GTE audit, VRAM stitching, rapid polling, GPU info, divergence comparison, jump table dumps. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
19 lines
510 B
Python
19 lines
510 B
Python
#!/usr/bin/env python3
|
|
"""Read GPU state from debug server."""
|
|
import socket, json, sys
|
|
|
|
port = int(sys.argv[1]) if len(sys.argv) > 1 else 4370
|
|
s = socket.create_connection(('localhost', port), timeout=5)
|
|
s.sendall(b'{"cmd":"gpu_state"}\n')
|
|
data = b''
|
|
while b'\n' not in data:
|
|
data += s.recv(4096)
|
|
s.close()
|
|
resp = json.loads(data.split(b'\n')[0])
|
|
if resp.get('ok'):
|
|
for k, v in sorted(resp.items()):
|
|
if k not in ('ok', 'id'):
|
|
print(f' {k}: {v}')
|
|
else:
|
|
print(f'Error: {resp}')
|