mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 15:40:11 +01:00
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:
parent
07ffdf47f5
commit
135ce96669
1 changed files with 2 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue