OSDN Git Service

drm/i915: Stop passing caller's num_dwords to engine->semaphore.signal()
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 2 Aug 2016 21:50:33 +0000 (22:50 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 2 Aug 2016 21:58:28 +0000 (22:58 +0100)
commit9242f974dc4c4656981aaa4104d0cbc46ddb03d5
tree5677cfc1ea2a067af7a4a628947e16dd7eccf1eb
parentf4ea6bddb9988e7aa6f50732c75739e8cd7c2582
drm/i915: Stop passing caller's num_dwords to engine->semaphore.signal()

Rather than pass in the num_dwords that the caller wishes to use after
the signal command packet, split the breadcrumb emission into two phases
and have both the signal and breadcrumb individiually acquire space on
the ring. This makes the interface simpler for the reader, and will
simplify for patches.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1469432687-22756-25-git-send-email-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1470174640-18242-16-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.h