mirror of
https://github.com/X11Libre/xf86-video-amdgpu.git
synced 2026-03-24 01:24:31 +00:00
drop checking HAS_DIRTYTRACKING_DRAWABLE_SRC
This symbol is always set since about a decade ago - no need to support ancient Xserver versions anymore. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
f54c40bade
commit
2ae9d9addc
@@ -186,11 +186,7 @@ amdgpu_dirty_primary(PixmapDirtyUpdatePtr dirty)
|
||||
static inline DrawablePtr
|
||||
amdgpu_dirty_src_drawable(PixmapDirtyUpdatePtr dirty)
|
||||
{
|
||||
#ifdef HAS_DIRTYTRACKING_DRAWABLE_SRC
|
||||
return dirty->src;
|
||||
#else
|
||||
return &dirty->src->drawable;
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline Bool
|
||||
|
||||
@@ -1819,14 +1819,9 @@ static Bool drmmode_set_scanout_pixmap(xf86CrtcPtr crtc, PixmapPtr ppix)
|
||||
|
||||
drmmode_crtc->prime_scanout_pixmap = ppix;
|
||||
|
||||
#ifdef HAS_DIRTYTRACKING_DRAWABLE_SRC
|
||||
PixmapStartDirtyTracking(&ppix->drawable,
|
||||
drmmode_crtc->scanout[scanout_id],
|
||||
0, 0, 0, 0, RR_Rotate_0);
|
||||
#else
|
||||
PixmapStartDirtyTracking(ppix, drmmode_crtc->scanout[scanout_id],
|
||||
0, 0, 0, 0, RR_Rotate_0);
|
||||
#endif
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user