diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2015-03-10 16:52:18 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2015-03-17 11:00:01 +0900 |
commit | 6c3a721cde9317233072b573f9502348dcd21b16 (patch) | |
tree | 8325b0266bde98442ec280823b4bdc5c0aa342b9 /src/radeon_dri2.h | |
parent | c3fa22a479e61d1899fa9d327d9c4e2a7f64b0c1 (diff) |
DRI2: Use helper functions for DRM event queue management v3
This is mostly in preparation for Present support, but it also simplifies
the DRI2 specific code a little.
v2: Fix up for struct radeon_drm_queue -> radeon_drm_queue_entry.
v3: Removed excess 0s from conversion from microseconds to seconds,
thanks to Richard Wilbur <richard.wilbur@gmail.com> for the catch!
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/radeon_dri2.h')
-rw-r--r-- | src/radeon_dri2.h | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/src/radeon_dri2.h b/src/radeon_dri2.h index 37d46f3d..9ba47c78 100644 --- a/src/radeon_dri2.h +++ b/src/radeon_dri2.h @@ -43,48 +43,11 @@ struct radeon_dri2 { Bool radeon_dri2_screen_init(ScreenPtr pScreen); void radeon_dri2_close_screen(ScreenPtr pScreen); -int drmmode_get_crtc_id(xf86CrtcPtr crtc); -void radeon_dri2_frame_event_handler(unsigned int frame, unsigned int tv_sec, - unsigned int tv_usec, void *event_data); -void radeon_dri2_flip_event_handler(unsigned int frame, unsigned int tv_sec, - unsigned int tv_usec, void *event_data); - #else static inline Bool radeon_dri2_screen_init(ScreenPtr pScreen) { return FALSE; } static inline void radeon_dri2_close_screen(ScreenPtr pScreen) {} -static inline void -radeon_dri2_dummy_event_handler(unsigned int frame, unsigned int tv_sec, - unsigned int tv_usec, void *event_data, - const char *name) -{ - static Bool warned; - - if (!warned) { - ErrorF("%s called but DRI2 disabled at build time\n", name); - warned = TRUE; - } - - free(event_data); -} - -static inline void -radeon_dri2_frame_event_handler(unsigned int frame, unsigned int tv_sec, - unsigned int tv_usec, void *event_data) -{ - radeon_dri2_dummy_event_handler(frame, tv_sec, tv_usec, event_data, - __func__); -} - -static inline void -radeon_dri2_flip_event_handler(unsigned int frame, unsigned int tv_sec, - unsigned int tv_usec, void *event_data) -{ - radeon_dri2_dummy_event_handler(frame, tv_sec, tv_usec, event_data, - __func__); -} - #endif #endif /* RADEON_DRI2_H */ |