From 135ce9666902b49c0cd897281f683143f063e693 Mon Sep 17 00:00:00 2001 From: Job Noorman Date: Sun, 31 Aug 2025 18:48:34 +0200 Subject: [PATCH] freedreno/computerator: fix cs builder conversion errors Fix two small errors that slipped in during the conversion to the new cs builders. Writing CP_EVENT_WRITE_0_TIMESTAMP caused hangs on a6xx. Signed-off-by: Job Noorman Fixes: 2bff78dcab4 ("freedreno/computerator: Convert to new cs builders") Part-of: --- src/freedreno/computerator/a6xx.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/freedreno/computerator/a6xx.cc b/src/freedreno/computerator/a6xx.cc index 6650322205c..6a66ba1bcf9 100644 --- a/src/freedreno/computerator/a6xx.cc +++ b/src/freedreno/computerator/a6xx.cc @@ -488,8 +488,7 @@ event_write(fd_cs &cs, struct kernel *kernel, enum vgt_event_type evt, bool time fd_pkt7 pkt(cs, CP_EVENT_WRITE, len); if (CHIP == A6XX) { - pkt.add(CP_EVENT_WRITE_0_EVENT(evt) | - COND(timestamp, CP_EVENT_WRITE_0_TIMESTAMP)); + pkt.add(CP_EVENT_WRITE_0_EVENT(evt)); } else { pkt.add(CP_EVENT_WRITE7_0_EVENT(evt) | CP_EVENT_WRITE7_0_WRITE_SRC(EV_WRITE_USER_32B) | @@ -521,7 +520,7 @@ cache_flush(fd_cs &cs, struct kernel *kernel) .add(CP_WAIT_REG_MEM_0(.function = WRITE_EQ, .poll = POLL_MEMORY)) .add(CP_WAIT_REG_MEM_POLL_ADDR(control_ptr(a6xx_backend, seqno))) .add(CP_WAIT_REG_MEM_3(.ref = seqno)) - .add(CP_WAIT_REG_MEM_4(.mask = !0)) + .add(CP_WAIT_REG_MEM_4(.mask = ~0)) .add(CP_WAIT_REG_MEM_5(.delay_loop_cycles = 16)); if (CHIP == A6XX) {