drm/i915/guc: add engine mask to GuC client & pass to GuC
authorDave Gordon <david.s.gordon@intel.com>
Tue, 9 Aug 2016 14:19:21 +0000 (15:19 +0100)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Wed, 10 Aug 2016 09:40:05 +0000 (10:40 +0100)
commite02757d91f7481093742bb32385567499a59354c
treec22282a6fe53bbe81efc38fc151435c3aae0ebb3
parent84b7f88235dfe56048c39229481a010e9754eb6f
drm/i915/guc: add engine mask to GuC client & pass to GuC

The Context Descriptor passed by the kernel to the GuC contains a field
specifying which engine(s) the context will use. Historically, this was
always set to "all of them", but if we had a separate client for each
engine, we could be more precise, and set only the bit for the engine
that the client was associated with. So this patch enables this usage,
in preparation for having multiple clients, though at this point there
is still only a single client used for all supported engines.

Signed-off-by: Dave Gordon <david.s.gordon@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
drivers/gpu/drm/i915/i915_guc_submission.c
drivers/gpu/drm/i915/intel_guc.h