diff options
author | Keith Packard <keithp@keithp.com> | 2009-05-14 16:58:14 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-05-14 16:58:14 -0700 |
commit | f57d7f4b0b14972f92a83f155ae8033478aa7729 (patch) | |
tree | 4235d7067d5438c4fbdefdfb4757ffeeee26862f /libdrm/intel/intel_bufmgr_priv.h | |
parent | afd245dd7fd85cf3ffd3e6d5fe9711252aa2ed7f (diff) |
libdrm/intel: Make get_pipe_from_crtc_id per-bufmgr. Return -1 on failure.
The convention is that all APIs are per-bufmgr, so make this one the same.
Then, have it return -1 on failure so that the application can know what's
going on and do something sensible.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'libdrm/intel/intel_bufmgr_priv.h')
-rw-r--r-- | libdrm/intel/intel_bufmgr_priv.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libdrm/intel/intel_bufmgr_priv.h b/libdrm/intel/intel_bufmgr_priv.h index 3484dee8..0098076e 100644 --- a/libdrm/intel/intel_bufmgr_priv.h +++ b/libdrm/intel/intel_bufmgr_priv.h @@ -188,6 +188,19 @@ struct _drm_intel_bufmgr { */ int (*bo_disable_reuse)(drm_intel_bo *bo); + /** + * + * Return the pipe associated with a crtc_id so that vblank + * synchronization can use the correct data in the request. + * This is only supported for KMS and gem at this point, when + * unsupported, this function returns -1 and leaves the decision + * of what to do in that case to the caller + * + * \param bufmgr the associated buffer manager + * \param crtc_id the crtc identifier + */ + int (*get_pipe_from_crtc_id)(drm_intel_bufmgr *bufmgr, int crtc_id); + int debug; /**< Enables verbose debugging printouts */ }; |