mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 03:40:10 +01:00
radeonsi/compute: Let the state tracker do all the flushing
It shouldn't be necessary to call radeon_winsys::cs_flush() from radeonsi_launch_grid(), because the state tracker is responsible for flushing the pipeline at the appropriate time. The current behavior is also wrong, because radeonsi_launch_grid() submits packets to the compute ring, but when the state tracker calls pipe->flush() everything is submitted to the graphics ring. This has the potential to create a race condition. The downside of removing this flush is that the compute dispatch packets will be sent to the graphics ring rather than the compute ring. In the future we will need to come up with a way to detect 'compute' command streams and submit them to the appropriate ring. Signed-off-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
e29931aa74
commit
764502b481
1 changed files with 0 additions and 3 deletions
|
|
@ -230,9 +230,6 @@ static void radeonsi_launch_grid(
|
|||
}
|
||||
#endif
|
||||
|
||||
rctx->ws->cs_flush(rctx->cs, RADEON_FLUSH_COMPUTE, 0);
|
||||
rctx->ws->buffer_wait(shader->bo->buf, 0);
|
||||
|
||||
FREE(pm4);
|
||||
FREE(kernel_args);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue