From: Rob Clark Date: Tue, 21 Apr 2020 16:06:28 +0000 (-0700) Subject: freedreno/a6xx: small query cleanup X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f583dc68e5586fd468475ae833ee3ce8fab5a95b;p=mesa.git freedreno/a6xx: small query cleanup Don't open-code `fd6_event_write()` Signed-off-by: Rob Clark Part-of: --- 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