]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Initialize legacy semaphores from engine hw id indexed array
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Tue, 16 Aug 2016 16:04:21 +0000 (17:04 +0100)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Wed, 17 Aug 2016 10:29:56 +0000 (11:29 +0100)
commit705c976f1bdf204ce1294b99cdf4569fe5fec8fc
tree8f54a01df15f3068b0d57cb2242b25634fdf14c4
parent29332ff042e1285e6e40a33e74b4dde3955ca73b
drm/i915: Initialize legacy semaphores from engine hw id indexed array

Build the legacy semaphore initialisation array using the engine
hardware ids instead of driver internal ones. This makes the
static array size dependent only on the number of gen6 semaphore
engines.

Also makes the per-engine semaphore wait and signal tables
hardware id indexed saving some more space.

v2: Refactor I915_GEN6_NUM_ENGINES to GEN6_SEMAPHORE_LAST. (Chris Wilson)
v3: More polish. (Chris Wilson)

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1471363461-9973-1-git-send-email-tvrtko.ursulin@linux.intel.com
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.h