summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-04-04 08:57:42 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2011-04-04 08:59:39 +0100
commitf395b0a25c9f99688e7b2799ac02f1f930f24e09 (patch)
treed1a3c2ada2bc6ea7169a764428807e764efb93f8
parent5cb554a0d6e986f2d7300a91d95983fa09b17f65 (diff)
intel: Also handle mrb_exec fallback with ring == I915_EXEC_RENDER
Reported-by: Oliver McFadden <oliver.mcfadden@nokia.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--intel/intel_bufmgr.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/intel/intel_bufmgr.c b/intel/intel_bufmgr.c
index e949ff2a..2df93a58 100644
--- a/intel/intel_bufmgr.c
+++ b/intel/intel_bufmgr.c
@@ -143,11 +143,14 @@ drm_intel_bo_mrb_exec(drm_intel_bo *bo, int used,
cliprects, num_cliprects, DR4,
rings);
- if (rings == 0)
+ switch (rings) {
+ case I915_EXEC_DEFAULT:
+ case I915_EXEC_RENDER:
return bo->bufmgr->bo_exec(bo, used,
cliprects, num_cliprects, DR4);
-
- return -ENODEV;
+ default:
+ return -ENODEV;
+ }
}
void drm_intel_bufmgr_set_debug(drm_intel_bufmgr *bufmgr, int enable_debug)