diff --git a/src/amdgpu_kms.c b/src/amdgpu_kms.c index cb0fb3b57..174bab08b 100644 --- a/src/amdgpu_kms.c +++ b/src/amdgpu_kms.c @@ -479,7 +479,7 @@ dirty_region(PixmapDirtyUpdatePtr dirty) static void redisplay_dirty(PixmapDirtyUpdatePtr dirty, RegionPtr region) { - ScrnInfoPtr scrn = xf86ScreenToScrn(dirty->slave_dst->drawable.pScreen); + ScrnInfoPtr scrn = xf86ScreenToScrn(dirty->slave_dst->master_pixmap->drawable.pScreen); if (RegionNil(region)) goto out;