drm: move struct vsync_tuple into drm_common as drm_vsync_tuple

This struct will be useful in vo_drm as well.
This commit is contained in:
Anton Kindestam 2019-04-14 16:03:22 +02:00 committed by Jan Ekström
parent c7d0a8f58e
commit 2cf8dd6451
2 changed files with 8 additions and 9 deletions

View File

@ -55,6 +55,12 @@ struct drm_opts {
struct m_geometry drm_draw_surface_size;
};
struct drm_vsync_tuple {
uint64_t ust;
unsigned int msc;
unsigned int sbc;
};
bool vt_switcher_init(struct vt_switcher *s, struct mp_log *log);
void vt_switcher_destroy(struct vt_switcher *s);
void vt_switcher_poll(struct vt_switcher *s, int timeout_ms);

View File

@ -54,16 +54,9 @@ struct framebuffer
uint32_t id;
};
struct vsync_tuple
{
uint64_t ust;
unsigned int msc;
unsigned int sbc;
};
struct gbm_frame {
struct gbm_bo *bo;
struct vsync_tuple vsync;
struct drm_vsync_tuple vsync;
};
struct gbm
@ -106,7 +99,7 @@ struct priv {
bool still;
bool paused;
struct vsync_tuple vsync;
struct drm_vsync_tuple vsync;
struct vo_vsync_info vsync_info;
struct mpv_opengl_drm_params_v2 drm_params;