mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-26 16:30:17 +00:00
m1n1.agx.{context,render}: Track fewer objects
Signed-off-by: Asahi Lina <lina@asahilina.net>
This commit is contained in:
parent
27e161b94e
commit
1e0999450d
2 changed files with 4 additions and 4 deletions
|
@ -152,7 +152,7 @@ class GPUMicroSequence:
|
|||
def finalize(self):
|
||||
self.ops.append(EndCmd())
|
||||
self.size = sum(i.sizeof() for i in self.ops)
|
||||
self.obj = self.agx.kobj.new_buf(self.size, "GPUMicroSequence")
|
||||
self.obj = self.agx.kobj.new_buf(self.size, "GPUMicroSequence", track=False)
|
||||
self.obj.val = b"".join(i.build() for i in self.ops)
|
||||
self.obj.push()
|
||||
return self.obj
|
||||
|
@ -191,8 +191,8 @@ class GPUBufferManager:
|
|||
self.pages_per_block = 4
|
||||
self.block_size = self.pages_per_block * self.page_size
|
||||
|
||||
self.page_list = context.uobj.new(Array(0x10000 // 4, Int32ul), "BM PageList")
|
||||
self.block_list = context.uobj.new(Array(0x8000 // 4, Int32ul), "BM BlockList")
|
||||
self.page_list = context.uobj.new(Array(0x10000 // 4, Int32ul), "BM PageList", track=False)
|
||||
self.block_list = context.uobj.new(Array(0x8000 // 4, Int32ul), "BM BlockList", track=False)
|
||||
|
||||
self.info = info = agx.kobj.new(BufferManagerInfo)
|
||||
info.page_list_addr = self.page_list._addr
|
||||
|
|
|
@ -125,7 +125,7 @@ class GPURenderer:
|
|||
self.buffer_mgr_initialized = False
|
||||
self.unk_emptybuf = agx.kobj.new_buf(0x40, "unk_emptybuf")
|
||||
self.tvb_something_size = 0x8000
|
||||
self.tvb_something = ctx.uobj.new_buf(self.tvb_something_size, "TVB Something", track=True).push()
|
||||
self.tvb_something = ctx.uobj.new_buf(self.tvb_something_size, "TVB Something", track=False).push()
|
||||
|
||||
##### Job group
|
||||
|
||||
|
|
Loading…
Reference in a new issue