summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/amdgpu_kms.c6
-rw-r--r--src/drmmode_display.c7
2 files changed, 1 insertions, 12 deletions
diff --git a/src/amdgpu_kms.c b/src/amdgpu_kms.c
index 163efec..782e682 100644
--- a/src/amdgpu_kms.c
+++ b/src/amdgpu_kms.c
@@ -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)
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index e8267e9..c4dfbc0 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -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;
}