mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-07 03:20:28 +01:00
radeonsi: Synchronize a streamout write after read hazard.
Signed-off-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
dccdb655a1
commit
fc67375379
1 changed files with 6 additions and 0 deletions
|
|
@ -883,6 +883,12 @@ static void si_set_streamout_targets(struct pipe_context *ctx,
|
|||
SI_CONTEXT_VS_PARTIAL_FLUSH;
|
||||
}
|
||||
|
||||
/* All readers of the streamout targets need to be finished before we can
|
||||
* start writing to the targets.
|
||||
*/
|
||||
if (num_targets)
|
||||
sctx->b.flags |= SI_CONTEXT_PS_PARTIAL_FLUSH;
|
||||
|
||||
/* Streamout buffers must be bound in 2 places:
|
||||
* 1) in VGT by setting the VGT_STRMOUT registers
|
||||
* 2) as shader resources
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue