freedreno/a6xx: small query cleanup
authorRob Clark <robdclark@chromium.org>
Tue, 21 Apr 2020 16:06:28 +0000 (09:06 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 30 Apr 2020 20:03:17 +0000 (20:03 +0000)
Don't open-code `fd6_event_write()`

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4813>

src/gallium/drivers/freedreno/a6xx/fd6_query.c

index d950eea5e8032481d5390b390329c19183606bb6..0e031cff0a624fbe9978ff0bc7131a1504276a6b 100644 (file)
@@ -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