mirror of
https://github.com/X11Libre/xf86-video-amdgpu.git
synced 2026-03-24 01:24:31 +00:00
dont check for HAS_DIRTYTRACKING_ROTATION: it's always enabled.
We're relying on at least 1.18 now, so no need to check anymore. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
@@ -601,14 +601,12 @@ dirty_region(PixmapDirtyUpdatePtr dirty)
|
||||
RegionPtr damageregion = DamageRegion(dirty->damage);
|
||||
RegionPtr dstregion;
|
||||
|
||||
#ifdef HAS_DIRTYTRACKING_ROTATION
|
||||
if (dirty->rotation != RR_Rotate_0) {
|
||||
dstregion = transform_region(damageregion,
|
||||
&dirty->f_inverse,
|
||||
dirty->secondary_dst->drawable.width,
|
||||
dirty->secondary_dst->drawable.height);
|
||||
} else
|
||||
#endif
|
||||
{
|
||||
RegionRec pixregion;
|
||||
|
||||
@@ -634,11 +632,7 @@ redisplay_dirty(PixmapDirtyUpdatePtr dirty, RegionPtr region)
|
||||
if (dirty->secondary_dst->primary_pixmap)
|
||||
DamageRegionAppend(&dirty->secondary_dst->drawable, region);
|
||||
|
||||
#ifdef HAS_DIRTYTRACKING_ROTATION
|
||||
PixmapSyncDirtyHelper(dirty);
|
||||
#else
|
||||
PixmapSyncDirtyHelper(dirty, region);
|
||||
#endif
|
||||
|
||||
amdgpu_glamor_flush(src_scrn);
|
||||
if (dirty->secondary_dst->primary_pixmap)
|
||||
|
||||
@@ -1821,14 +1821,9 @@ static Bool drmmode_set_scanout_pixmap(xf86CrtcPtr crtc, PixmapPtr ppix)
|
||||
PixmapStartDirtyTracking(&ppix->drawable,
|
||||
drmmode_crtc->scanout[scanout_id],
|
||||
0, 0, 0, 0, RR_Rotate_0);
|
||||
#elif defined(HAS_DIRTYTRACKING_ROTATION)
|
||||
#else
|
||||
PixmapStartDirtyTracking(ppix, drmmode_crtc->scanout[scanout_id],
|
||||
0, 0, 0, 0, RR_Rotate_0);
|
||||
#elif defined(HAS_DIRTYTRACKING2)
|
||||
PixmapStartDirtyTracking2(ppix, drmmode_crtc->scanout[scanout_id],
|
||||
0, 0, 0, 0);
|
||||
#else
|
||||
PixmapStartDirtyTracking(ppix, drmmode_crtc->scanout[scanout_id], 0, 0);
|
||||
#endif
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user