drm/i915: Check whether the ring is initialised prior to dispatch
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 11 May 2012 13:29:31 +0000 (14:29 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 19 May 2012 20:39:53 +0000 (22:39 +0200)
commita15817cf16081b140e105736c9a6a50af38540b3
tree578bf0f761086b4d25b90e76b618edf1501b8d0d
parentb4519513e8ca3bd82eabff9874d69166b58b6db9
drm/i915: Check whether the ring is initialised prior to dispatch

Rather than use the magic feature tests HAS_BLT/HAS_BSD just check
whether the ring we are about to dispatch the execbuffer on is
initialised.

v2: Use intel_ring_initialized()

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_execbuffer.c