[PATCH xf86-video-amdgpu] Adopt for new X server dirty tracking APIs.

Alex Deucher alexdeucher at gmail.com
Tue Jul 14 07:09:26 PDT 2015


On Tue, Jul 14, 2015 at 4:08 AM, Michel Dänzer <michel at daenzer.net> wrote:
> From: Dave Airlie <airlied at gmail.com>
>
> Signed-off-by: Dave Airlie <airlied at redhat.com>
>
> (Ported from radeon commit b6d871bf299c7d0f106c07ee4d8bd3b2337f53cc)
>
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>

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

> ---
>  src/amdgpu_kms.c      | 4 ++++
>  src/drmmode_display.c | 4 +++-
>  2 files changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/src/amdgpu_kms.c b/src/amdgpu_kms.c
> index f6ccbd4..2019155 100644
> --- a/src/amdgpu_kms.c
> +++ b/src/amdgpu_kms.c
> @@ -188,7 +188,11 @@ static void redisplay_dirty(ScreenPtr screen, PixmapDirtyUpdatePtr dirty)
>
>         PixmapRegionInit(&pixregion, dirty->slave_dst);
>         DamageRegionAppend(&dirty->slave_dst->drawable, &pixregion);
> +#ifdef HAS_DIRTYTRACKING_ROTATION
> +       PixmapSyncDirtyHelper(dirty);
> +#else
>         PixmapSyncDirtyHelper(dirty, &pixregion);
> +#endif
>
>         DamageRegionProcessPending(&dirty->slave_dst->drawable);
>         RegionUninit(&pixregion);
> diff --git a/src/drmmode_display.c b/src/drmmode_display.c
> index 7e0af1a..bce6774 100644
> --- a/src/drmmode_display.c
> +++ b/src/drmmode_display.c
> @@ -796,7 +796,9 @@ static Bool drmmode_set_scanout_pixmap(xf86CrtcPtr crtc, PixmapPtr ppix)
>                 screen->height = screenpix->drawable.height = max_height;
>         }
>         drmmode_crtc->prime_pixmap_x = this_x;
> -#ifdef HAS_DIRTYTRACKING2
> +#ifdef HAS_DIRTYTRACKING_ROTATION
> +       PixmapStartDirtyTracking(ppix, screenpix, 0, 0, this_x, 0, RR_Rotate_0);
> +#elif defined(HAS_DIRTYTRACKING2)
>         PixmapStartDirtyTracking2(ppix, screenpix, 0, 0, this_x, 0);
>  #else
>         PixmapStartDirtyTracking(ppix, screenpix, 0, 0);
> --
> 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