OSDN Git Service

intel: Fallback to old exec if no mrb_exec is available
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 12 Jan 2011 10:57:46 +0000 (10:57 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 12 Jan 2011 11:00:13 +0000 (11:00 +0000)
Reported-by: Torsten Hilbrich <torsten.hilbrich@secunet.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=33016
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
intel/intel_bufmgr.c

index b7c5c09..2546222 100644 (file)
@@ -143,6 +143,10 @@ drm_intel_bo_mrb_exec(drm_intel_bo *bo, int used,
                                        cliprects, num_cliprects, DR4,
                                        rings);
 
+       if (ring_flag == 0)
+               return bo->bufmgr->bo_exec(bo, used,
+                                          cliprects, num_cliprects, DR4);
+
        return -ENODEV;
 }