From f583dc68e5586fd468475ae833ee3ce8fab5a95b Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Tue, 21 Apr 2020 09:06:28 -0700 Subject: [PATCH] freedreno/a6xx: small query cleanup Don't open-code `fd6_event_write()` Signed-off-by: Rob Clark Part-of: --- src/gallium/drivers/freedreno/a6xx/fd6_query.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_query.c b/src/gallium/drivers/freedreno/a6xx/fd6_query.c index d950eea5e80..0e031cff0a6 100644 --- a/src/gallium/drivers/freedreno/a6xx/fd6_query.c +++ b/src/gallium/drivers/freedreno/a6xx/fd6_query.c @@ -93,9 +93,7 @@ occlusion_pause(struct fd_acc_query *aq, struct fd_batch *batch) OUT_PKT4(ring, REG_A6XX_RB_SAMPLE_COUNT_ADDR_LO, 2); OUT_RELOCW(ring, query_sample(aq, stop)); - OUT_PKT7(ring, CP_EVENT_WRITE, 1); - OUT_RING(ring, ZPASS_DONE); - fd_reset_wfi(batch); + fd6_event_write(batch, ring, ZPASS_DONE, false); OUT_PKT7(ring, CP_WAIT_REG_MEM, 6); OUT_RING(ring, 0x00000014); // XXX -- 2.30.2