drm/i915: Bail out early on gen6_signal if no semaphores
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Thu, 15 May 2014 17:58:07 +0000 (20:58 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 15 May 2014 21:14:13 +0000 (23:14 +0200)
commit6e450ab24dc645d776e65bbb91fc5f6788087c32
treea31a69e84b3323c11d2c2ee9a298245d610666cb
parentdf38e6558db777e1e4403a3fc16bf177fe44b79b
drm/i915: Bail out early on gen6_signal if no semaphores

If we dont have semaphores enabled, we allocate 4
dwords for signalling. But end up emitting more regardless.

Fix this by bailing out early if semaphores are not enabled.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=78274
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=78283
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_ringbuffer.c