diff options
author | Enrico Weigelt, metux IT consult <info@metux.net> | 2024-05-15 15:57:02 +0200 |
---|---|---|
committer | Enrico Weigelt, metux IT consult <info@metux.net> | 2024-05-15 15:57:02 +0200 |
commit | c561fe4d5d44bc3c2abf7623c5263fdd44ec9b8f (patch) | |
tree | 6314444178463613421d2036095c19dd93a84a7f | |
parent | ade777e8231583a8f383561a73eac2aed813a1e4 (diff) |
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>
-rw-r--r-- | src/amdgpu_kms.c | 6 | ||||
-rw-r--r-- | src/drmmode_display.c | 7 |
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; } |