"""Where does the production build store 0x1a texels? Watch DRAM writes during one texture's header+bulk upload -> the storage base per handle.""" import sys, os, struct, collections HERE=os.path.dirname(os.path.abspath(__file__)) sys.path.insert(0,HERE); sys.path.insert(0,os.path.dirname(HERE)) sys.path.insert(0,r'C:\VWE\TeslaRel410\dpl3-revive\patha') import emu860, emu_main, emu860c from driver import boot, CpuShim from vrboard import A ANAME={int(a):a.name for a in A} emu860.Mem.log=lambda self,*a,**k:None data=open(r'C:/VWE/TeslaRel410/emulator/render-bridge/captures/netdeath-20260708.fifodump','rb').read() recs=[]; off=0 while True: i=data.find(b'VPXM',off) if i<0: break ln=struct.unpack_from('=4: a=struct.unpack_from('>12 for a in addrs) print("write pages during upload:") for pg,n in pages.most_common(8): lo=min(a for a in addrs if a>>12==pg); hi=max(a for a in addrs if a>>12==pg) print(" %#x000 : %d writes span %#x..%#x"%(pg,n,lo,hi)) # find contiguous run matching texel pattern (0x00BBGGRR grayscale) top=pages.most_common(1)[0][0] run=[(addrs[k],wvals[k]) for k in range(len(addrs)) if addrs[k]>>12==top][:6] print("sample @page %#x000:"%top) for a,v in run: print(" %#010x <- %08x"%(a,v))