aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2017-05-09 10:03:27 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2017-05-10 04:21:22 -0400
commit2a39b88bc121645e95a2b3b25a97ef4ceb4208b8 (patch)
treeef38f0c63a7d80efe32a324ef199b416860c8b8f
parent3fcdcb270936ae69a069bab4c52ebd9fde594669 (diff)
drm/vblank: Add FIXME comments about moving the vblank ts hooks
This is going to be a bit too much, but good to have at least a small note about where this should all head towards. Acked-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Neil Armstrong <narmstrong@baylibre.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/20170509140329.24114-3-daniel.vetter@ffwll.ch
-rw-r--r--include/drm/drm_drv.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/drm/drm_drv.h b/include/drm/drm_drv.h
index a97dbc1eeccd..619da98533cd 100644
--- a/include/drm/drm_drv.h
+++ b/include/drm/drm_drv.h
@@ -276,6 +276,11 @@ struct drm_driver {
276 * constant but unknown small number of scanlines wrt. real scanout 276 * constant but unknown small number of scanlines wrt. real scanout
277 * position. 277 * position.
278 * 278 *
279 * FIXME:
280 *
281 * Since this is a helper to implement @get_vblank_timestamp, we should
282 * move it to &struct drm_crtc_helper_funcs, like all the other
283 * helper-internal hooks.
279 */ 284 */
280 int (*get_scanout_position) (struct drm_device *dev, unsigned int pipe, 285 int (*get_scanout_position) (struct drm_device *dev, unsigned int pipe,
281 unsigned int flags, int *vpos, int *hpos, 286 unsigned int flags, int *vpos, int *hpos,
@@ -319,6 +324,11 @@ struct drm_driver {
319 * 324 *
320 * True on success, false on failure, which means the core should 325 * True on success, false on failure, which means the core should
321 * fallback to a simple timestamp taken in drm_crtc_handle_vblank(). 326 * fallback to a simple timestamp taken in drm_crtc_handle_vblank().
327 *
328 * FIXME:
329 *
330 * We should move this hook to &struct drm_crtc_funcs like all the other
331 * vblank hooks.
322 */ 332 */
323 bool (*get_vblank_timestamp) (struct drm_device *dev, unsigned int pipe, 333 bool (*get_vblank_timestamp) (struct drm_device *dev, unsigned int pipe,
324 int *max_error, 334 int *max_error,