Module: Mesa Branch: master Commit: f583dc68e5586fd468475ae833ee3ce8fab5a95b URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f583dc68e5586fd468475ae833ee3ce8fab5a95b
Author: Rob Clark <[email protected]> Date: Tue Apr 21 09:06:28 2020 -0700 freedreno/a6xx: small query cleanup Don't open-code `fd6_event_write()` Signed-off-by: Rob Clark <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4813> --- 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 _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
