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 <jnoorman@igalia.com>
Fixes: 2bff78dcab ("freedreno/computerator: Convert to new cs builders")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37107>
This commit is contained in:
Job Noorman 2025-08-31 18:48:34 +02:00 committed by Marge Bot
parent 07ffdf47f5
commit 135ce96669

View file

@ -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) {