From bfaf358f821b1787b0680e894ff69933bdc811fb Mon Sep 17 00:00:00 2001 From: Asahi Lina Date: Wed, 31 Aug 2022 11:10:51 +0900 Subject: [PATCH] m1n1.agx.render: Add microsequence hooks Signed-off-by: Asahi Lina --- proxyclient/m1n1/agx/render.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/proxyclient/m1n1/agx/render.py b/proxyclient/m1n1/agx/render.py index 76352e43..3d68a24f 100644 --- a/proxyclient/m1n1/agx/render.py +++ b/proxyclient/m1n1/agx/render.py @@ -219,6 +219,9 @@ class GPURenderer: self.ev_idx = 0 + self.mshook_ta = None + self.mshook_3d = None + def submit(self, cmdbuf, wait_for=None): nclusters = 8 @@ -650,6 +653,8 @@ class GPURenderer: #print(" s7", hex(wc_3d.struct_7._addr)) ms = GPUMicroSequence(agx) + if self.mshook_3d: + self.mshook_3d(self, work, ms) start_3d = Start3DCmd() start_3d.struct1 = wc_3d.struct_1 # 0x44 bytes! @@ -908,6 +913,8 @@ class GPURenderer: #print("wc_ta", wc_ta) ms = GPUMicroSequence(agx) + if self.mshook_ta: + self.mshook_ta(self, work, ms) start_ta = StartTACmd() start_ta.tiling_params = wc_ta.tiling_params