[PATCH xf86-video-ati 3/3] present: Wait for screen pixmap BO idle before setting modes for unflip

Alex Deucher alexdeucher at gmail.com
Tue Feb 21 21:08:54 UTC 2017


On Tue, Feb 21, 2017 at 4:03 AM, Michel Dänzer <michel at daenzer.net> wrote:
> From: Michel Dänzer <michel.daenzer at amd.com>
>
> To make sure the screen pixmap contents are up to date when it starts
> being scanned out.
>
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>

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

> ---
>  src/radeon_present.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/src/radeon_present.c b/src/radeon_present.c
> index b36e29b19..1b0ddcb82 100644
> --- a/src/radeon_present.c
> +++ b/src/radeon_present.c
> @@ -404,6 +404,8 @@ modeset:
>      old_fb_id = info->drmmode.fb_id;
>      info->drmmode.fb_id = 0;
>
> +    radeon_cs_flush_indirect(scrn);
> +    radeon_bo_wait(info->front_bo);
>      for (i = 0; i < config->num_crtc; i++) {
>         xf86CrtcPtr crtc = config->crtc[i];
>         drmmode_crtc_private_ptr drmmode_crtc = crtc->driver_private;
> --
> 2.11.0
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


More information about the amd-gfx mailing list