[Mesa-dev] [PATCH] radeonsi: Synchronize a streamout write after read hazard.
Marek Olšák
maraeo at gmail.com
Mon Apr 11 22:34:47 UTC 2016
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Marek
On Mon, Apr 11, 2016 at 4:04 PM, Bas Nieuwenhuizen
<bas at basnieuwenhuizen.nl> wrote:
> Signed-off-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
> ---
> src/gallium/drivers/radeonsi/si_descriptors.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/src/gallium/drivers/radeonsi/si_descriptors.c b/src/gallium/drivers/radeonsi/si_descriptors.c
> index cf898fd..a2c096f 100644
> --- a/src/gallium/drivers/radeonsi/si_descriptors.c
> +++ b/src/gallium/drivers/radeonsi/si_descriptors.c
> @@ -936,6 +936,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
> --
> 2.8.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list