mirror of
https://github.com/X11Libre/xf86-video-ati.git
synced 2026-03-24 01:24:43 +00:00
dont check for HAS_DIRTYTRACKING_ROTATION anymore
It's always defined since our minimal xserver version 1.18. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
6da5a33d54
commit
bcf05aee66
@@ -1357,14 +1357,9 @@ drmmode_set_scanout_pixmap(xf86CrtcPtr crtc, PixmapPtr ppix)
|
|||||||
PixmapStartDirtyTracking(&ppix->drawable,
|
PixmapStartDirtyTracking(&ppix->drawable,
|
||||||
drmmode_crtc->scanout[scanout_id].pixmap,
|
drmmode_crtc->scanout[scanout_id].pixmap,
|
||||||
0, 0, 0, 0, RR_Rotate_0);
|
0, 0, 0, 0, RR_Rotate_0);
|
||||||
#elif defined(HAS_DIRTYTRACKING_ROTATION)
|
#else
|
||||||
PixmapStartDirtyTracking(ppix, drmmode_crtc->scanout[scanout_id].pixmap,
|
PixmapStartDirtyTracking(ppix, drmmode_crtc->scanout[scanout_id].pixmap,
|
||||||
0, 0, 0, 0, RR_Rotate_0);
|
0, 0, 0, 0, RR_Rotate_0);
|
||||||
#elif defined(HAS_DIRTYTRACKING2)
|
|
||||||
PixmapStartDirtyTracking2(ppix, drmmode_crtc->scanout[scanout_id].pixmap,
|
|
||||||
0, 0, 0, 0);
|
|
||||||
#else
|
|
||||||
PixmapStartDirtyTracking(ppix, drmmode_crtc->scanout[scanout_id].pixmap, 0, 0);
|
|
||||||
#endif
|
#endif
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -557,14 +557,12 @@ dirty_region(PixmapDirtyUpdatePtr dirty)
|
|||||||
RegionPtr damageregion = DamageRegion(dirty->damage);
|
RegionPtr damageregion = DamageRegion(dirty->damage);
|
||||||
RegionPtr dstregion;
|
RegionPtr dstregion;
|
||||||
|
|
||||||
#ifdef HAS_DIRTYTRACKING_ROTATION
|
|
||||||
if (dirty->rotation != RR_Rotate_0) {
|
if (dirty->rotation != RR_Rotate_0) {
|
||||||
dstregion = transform_region(damageregion,
|
dstregion = transform_region(damageregion,
|
||||||
&dirty->f_inverse,
|
&dirty->f_inverse,
|
||||||
dirty->secondary_dst->drawable.width,
|
dirty->secondary_dst->drawable.width,
|
||||||
dirty->secondary_dst->drawable.height);
|
dirty->secondary_dst->drawable.height);
|
||||||
} else
|
} else
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
RegionRec pixregion;
|
RegionRec pixregion;
|
||||||
|
|
||||||
@@ -590,11 +588,7 @@ redisplay_dirty(PixmapDirtyUpdatePtr dirty, RegionPtr region)
|
|||||||
if (dirty->secondary_dst->primary_pixmap)
|
if (dirty->secondary_dst->primary_pixmap)
|
||||||
DamageRegionAppend(&dirty->secondary_dst->drawable, region);
|
DamageRegionAppend(&dirty->secondary_dst->drawable, region);
|
||||||
|
|
||||||
#ifdef HAS_DIRTYTRACKING_ROTATION
|
|
||||||
PixmapSyncDirtyHelper(dirty);
|
PixmapSyncDirtyHelper(dirty);
|
||||||
#else
|
|
||||||
PixmapSyncDirtyHelper(dirty, region);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
radeon_cs_flush_indirect(src_scrn);
|
radeon_cs_flush_indirect(src_scrn);
|
||||||
if (dirty->secondary_dst->primary_pixmap)
|
if (dirty->secondary_dst->primary_pixmap)
|
||||||
|
|||||||
Reference in New Issue
Block a user