mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-23 03:00:37 +02:00
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:
parent
3527d9f81d
commit
02e9572335
1 changed files with 3 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue