diff options
Diffstat (limited to 'video/out/drm_common.h')
-rw-r--r-- | video/out/drm_common.h | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/video/out/drm_common.h b/video/out/drm_common.h index cadef2019f..581151f94a 100644 --- a/video/out/drm_common.h +++ b/video/out/drm_common.h @@ -39,12 +39,6 @@ struct framebuffer { uint32_t id; }; -struct drm_vsync_tuple { - uint64_t ust; - unsigned int msc; - unsigned int sbc; -}; - struct drm_mode { drmModeModeInfo mode; uint32_t blob_id; @@ -77,12 +71,11 @@ struct vo_drm_state { struct drm_atomic_context *atomic_context; struct drm_mode mode; struct drm_opts *opts; - struct drm_vsync_tuple vsync; struct framebuffer *fb; struct mp_log *log; + struct mp_present *present; struct vo *vo; struct vt_switcher vt_switcher; - struct vo_vsync_info vsync_info; bool active; bool paused; @@ -99,19 +92,10 @@ struct vo_drm_state { uint32_t width; }; -struct drm_pflip_cb_closure { - struct drm_vsync_tuple *frame_vsync; // vsync tuple when the frame that just flipped was queued - struct drm_vsync_tuple *vsync; // vsync tuple of the latest page flip. drm_pflip_cb updates this - struct vo_vsync_info *vsync_info; // where the drm_pflip_cb routine writes its output - bool *waiting_for_flip; // drm_pflip_cb writes false here before returning - struct mp_log *log; // Needed to print error messages that shame bad drivers -}; - bool vo_drm_init(struct vo *vo); int vo_drm_control(struct vo *vo, int *events, int request, void *arg); double vo_drm_get_display_fps(struct vo_drm_state *drm); -void vo_drm_get_vsync(struct vo *vo, struct vo_vsync_info *info); void vo_drm_set_monitor_par(struct vo *vo); void vo_drm_uninit(struct vo *vo); void vo_drm_wait_events(struct vo *vo, int64_t until_time_ns); |