m1n1.agx.render: Only blit 1920px wide FBs, disable depth dumps

This is a hack anyway. Almost all my demos/tests work with this
particular logic right now.

Signed-off-by: Asahi Lina <lina@asahilina.net>
This commit is contained in:
Asahi Lina 2022-08-17 13:10:30 +09:00
parent 2b1bb76416
commit ffb42cabc7

View file

@ -930,17 +930,18 @@ class GPURenderer:
#print(work.wc_3d.pull())
#print(work.wc_ta.pull())
if work.fb is not None and work.width and work.height:
#if work.fb is not None and work.width and work.height:
if work.fb is not None and work.width and work.height and work.width == 1920:
self.agx.log(f"Render {work.width}x{work.height} @ {work.fb:#x}")
base, obj = self.agx.find_object(work.fb, self.ctx_id)
#unswizzle(agx, obj._paddr, width, height, 4, "fb.bin", grid=False)
open("fb.bin", "wb").write(self.agx.u.iface.readmem(obj._paddr, work.width*work.height*4))
os.system(f"convert -size {work.width}x{work.height} -depth 8 rgba:fb.bin -alpha off frame{self.frames}.png")
#open("fb.bin", "wb").write(self.agx.u.iface.readmem(obj._paddr, work.width*work.height*4))
#os.system(f"convert -size {work.width}x{work.height} -depth 8 rgba:fb.bin -alpha off frame{self.frames}.png")
self.agx.p.fb_blit(0, 0, work.width, work.height, obj._paddr, work.width, PIX_FMT.XBGR)
if work.depth is not None:#False and depth is not None:
if False: #if work.depth is not None:#False and depth is not None:
base, obj = self.agx.find_object(work.depth, self.ctx_id)
width = align_up(work.width, 64)