radeonsi: wait for idle after end_query in si_test_blit_perf

end_query writes the timestamp only when everything is finished,
so the extra barrier only adds unnecessary overhead.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31291>
This commit is contained in:
Marek Olšák 2024-08-25 18:45:49 -04:00 committed by Marge Bot
parent 3527d9f81d
commit 02e9572335

View file

@ -639,6 +639,9 @@ void si_test_blit_perf(struct si_screen *sscreen)
}
}
ctx->end_query(ctx, q);
pipe_surface_reference(&dst_surf, NULL);
/* Wait for idle after all tests. */
sctx->barrier_flags |= SI_BARRIER_SYNC_AND_INV_CB |
SI_BARRIER_SYNC_CS |
@ -646,9 +649,6 @@ void si_test_blit_perf(struct si_screen *sscreen)
SI_BARRIER_INV_VMEM;
si_emit_barrier_direct(sctx);
ctx->end_query(ctx, q);
pipe_surface_reference(&dst_surf, NULL);
/* Unbind the colorbuffer. */
if ((test_flavor == TEST_FB_CLEAR || test_flavor == TEST_CLEAR) &&
box_flavor == BOX_FULL) {