mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-11 02:04:11 +00:00
m1n1.trace.agx: Reset queue tracer on new queue
Signed-off-by: Asahi Lina <lina@asahilina.net>
This commit is contained in:
parent
08cc1c3178
commit
daf56619df
1 changed files with 3 additions and 3 deletions
|
@ -341,8 +341,8 @@ class AGXTracer(ASCTracer):
|
|||
|
||||
self.add_mon_regions()
|
||||
|
||||
def get_cmdqueue(self, info_addr):
|
||||
if info_addr in self.cmdqueues:
|
||||
def get_cmdqueue(self, info_addr, new_queue):
|
||||
if info_addr in self.cmdqueues and not new_queue:
|
||||
return self.cmdqueues[info_addr]
|
||||
|
||||
cmdqueue = CommandQueueTracer(self, info_addr)
|
||||
|
@ -566,7 +566,7 @@ class AGXTracer(ASCTracer):
|
|||
return
|
||||
elif isinstance(msg, RunCmdQueueMsg):
|
||||
self.log(f"== Work notification (type {msg.queue_type})==")
|
||||
queue = self.get_cmdqueue(msg.cmdqueue_addr)
|
||||
queue = self.get_cmdqueue(msg.cmdqueue_addr, msg.new_queue)
|
||||
work_items = list(queue.get_workitems(msg))
|
||||
if self.encoder_id_filter is not None:
|
||||
for wi in work_items:
|
||||
|
|
Loading…
Reference in a new issue