summaryrefslogtreecommitdiff
path: root/src/drmmode_display.h
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2016-11-24 18:45:22 +0900
committerMichel Dänzer <michel@daenzer.net>2016-11-24 18:45:22 +0900
commit5fea5ef2f07eee4a0f94baab427010b936f1d4b4 (patch)
tree12ac017a96ca961b42ca1a997c4193e84356622c /src/drmmode_display.h
parent13c6bc5e382765fe567091e1c616c0a26eec04ca (diff)
Pass fb_id into drmmode_page_flip_target_absolute/relative
drmmode->fb_id isn't what we need in the TearFree case. Fixes TearFree freezing with (WW) RADEON(0): flip queue failed in radeon_scanout_flip: No such file or directory in the log file. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98834 Fixes: 1106b2f773ad ("Use DRM_MODE_PAGE_FLIP_TARGET_ABSOLUTE/RELATIVE flags when available")
Diffstat (limited to 'src/drmmode_display.h')
-rw-r--r--src/drmmode_display.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/drmmode_display.h b/src/drmmode_display.h
index b8f553a4..6bbf71c1 100644
--- a/src/drmmode_display.h
+++ b/src/drmmode_display.h
@@ -135,11 +135,13 @@ enum drmmode_flip_sync {
extern int drmmode_page_flip_target_absolute(RADEONEntPtr pRADEONEnt,
drmmode_crtc_private_ptr drmmode_crtc,
- uint32_t flags, uintptr_t drm_queue_seq,
+ int fb_id, uint32_t flags,
+ uintptr_t drm_queue_seq,
uint32_t target_msc);
extern int drmmode_page_flip_target_relative(RADEONEntPtr pRADEONEnt,
drmmode_crtc_private_ptr drmmode_crtc,
- uint32_t flags, uintptr_t drm_queue_seq,
+ int fb_id, uint32_t flags,
+ uintptr_t drm_queue_seq,
uint32_t target_msc);
extern Bool drmmode_pre_init(ScrnInfoPtr pScrn, drmmode_ptr drmmode, int cpp);
extern void drmmode_init(ScrnInfoPtr pScrn, drmmode_ptr drmmode);