From 66375fd6e8d3e95df5d124883a1426460c1b8ed8 Mon Sep 17 00:00:00 2001 From: Zou Nan hai Date: Wed, 2 Jun 2010 10:07:37 +0800 Subject: intel: Add support for kernel multi-ringbuffer API. This introduces a new API to exec on BSD ring buffer, for H.264 VLD decoding. Signed-off-by: Xiang Hai hao Signed-off-by: Zou Nan hai --- intel/intel_bufmgr.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'intel/intel_bufmgr.c') diff --git a/intel/intel_bufmgr.c b/intel/intel_bufmgr.c index 9144fdd4..2b4e8883 100644 --- a/intel/intel_bufmgr.c +++ b/intel/intel_bufmgr.c @@ -145,6 +145,19 @@ drm_intel_bo_exec(drm_intel_bo *bo, int used, return bo->bufmgr->bo_exec(bo, used, cliprects, num_cliprects, DR4); } +int +drm_intel_bo_mrb_exec(drm_intel_bo *bo, int used, + drm_clip_rect_t *cliprects, int num_cliprects, int DR4, + int ring_flag) +{ + if (bo->bufmgr->bo_mrb_exec) + return bo->bufmgr->bo_mrb_exec(bo, used, + cliprects, num_cliprects, DR4, + ring_flag); + + return -ENODEV; +} + void drm_intel_bufmgr_set_debug(drm_intel_bufmgr *bufmgr, int enable_debug) { bufmgr->debug = enable_debug; -- cgit v1.2.3