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.c | |
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.c')
-rw-r--r-- | libdrm/intel/intel_bufmgr.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libdrm/intel/intel_bufmgr.c b/libdrm/intel/intel_bufmgr.c index 5057fe69..f170e7fc 100644 --- a/libdrm/intel/intel_bufmgr.c +++ b/libdrm/intel/intel_bufmgr.c @@ -219,3 +219,12 @@ int drm_intel_bo_disable_reuse(drm_intel_bo *bo) return bo->bufmgr->bo_disable_reuse(bo); return 0; } + +int +drm_intel_get_pipe_from_crtc_id (drm_intel_bufmgr *bufmgr, int crtc_id) +{ + if (bufmgr->get_pipe_from_crtc_id) + return bufmgr->get_pipe_from_crtc_id(bufmgr, crtc_id); + return -1; +} + |