• Home
  • Raw
  • Download

Lines Matching +full:a630 +full:- +full:test

1 -- Parse logs from test-quad-textured-3d.c to exctract layer/level
2 -- offsets
3 --
4 -- We figure out the offsets from blits, but there may be some
5 -- unrelated blits. So just save all of them until we find the
6 -- texture state for the 3d texture. This gives us the base
7 -- address, and the miplevel #0 width/height/depth. Then work
8 -- backwards from there finding the blits to the same dst buffer
9 -- and deducing the miplevel from the minified dimensions
17 local r = rnn.init("a630")
42 -- Just in case, filter out anything that isn't starting
43 -- at 0,0
55 blit.endaddr = 0 -- filled in later
56 --printf("Found blit: 0x%x (0x%x)\n", blit.addr, blit.base)
63 -- ignore any texture state w/ DEPTH=1, these aren't the 3d tex state we
64 -- are looking for
77 -- Note that in some case the texture has some extra page or so
78 -- at the beginning:
82 -- see if we can find the associated blits.. The blob always seems to
83 -- start from the lower (larger) mipmap levels and layers, so we don't
84 -- need to sort by dst address. Also, while we are at it, fill in the
85 -- end-addr (at least for everything but the last blit)
89 for n = 0,nallblits-1 do
91 --printf("blit addr: 0x%x (0x%x)\n", blit.addr, blit.base)
102 -- now go thru the relevant blits and print out interesting details
105 local w = width0 -- track current width/height to detect changing
106 local h = height0 -- mipmap level
107 for n = 0,nblits-1 do
109 --printf("%u: %ux%u, addr=%x\n", n, blit.width, blit.height, blit.addr)
117 --return
125 level, layer, w, h, blit.pitch, blit.addr - base, blit.addr)
127 local layersz = blit.endaddr - blit.addr