[PATCH] glamor: Only wait for GPU writes in radeon_glamor_prepare_access_cpu_ro

Alex Deucher alexdeucher at gmail.com
Wed May 27 20:54:22 PDT 2015


On Wed, May 27, 2015 at 10:29 PM, Michel Dänzer <michel at daenzer.net> wrote:
> From: Michel Dänzer <michel.daenzer at amd.com>
>
> We don't need to wait for GPU reads to finish before reading with the
> CPU.
>
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  src/radeon_glamor_wrappers.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/radeon_glamor_wrappers.c b/src/radeon_glamor_wrappers.c
> index 7a57bc1..ec81560 100644
> --- a/src/radeon_glamor_wrappers.c
> +++ b/src/radeon_glamor_wrappers.c
> @@ -113,7 +113,7 @@ radeon_glamor_prepare_access_cpu_ro(ScrnInfoPtr scrn, PixmapPtr pixmap,
>                 return TRUE;
>
>         info = RADEONPTR(scrn);
> -       need_sync = radeon_glamor_gpu_pending(info->gpu_synced, priv->gpu_read);
> +       need_sync = radeon_glamor_gpu_pending(info->gpu_synced, priv->gpu_write);
>         return radeon_glamor_prepare_access_cpu(scrn, RADEONPTR(scrn), pixmap,
>                                                 priv, need_sync);
>  }
> --
> 2.1.4
>
> _______________________________________________
> xorg-driver-ati mailing list
> xorg-driver-ati at lists.x.org
> http://lists.x.org/mailman/listinfo/xorg-driver-ati


More information about the xorg-driver-ati mailing list