summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/intel_guc.h
diff options
context:
space:
mode:
authorDave Gordon <david.s.gordon@intel.com>2016-08-09 15:19:22 +0100
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>2016-08-10 10:40:05 +0100
commitc18468c4b2dbf08854dba4f041c8c1845bf0cc9c (patch)
tree5702381f0e41cb4af0e8c88bae29ea2c5a8ff5d3 /drivers/gpu/drm/i915/intel_guc.h
parente02757d91f7481093742bb32385567499a59354c (diff)
drm/i915/guc: use for_each_engine_id() where appropriate
Now that host structures are indexed by host engine-id rather than guc_id, we can usefully convert some for_each_engine() loops to use for_each_engine_id() and avoid multiple dereferences of engine->id. Also a few related tweaks to cache structure members locally wherever they're used more than once or twice, hopefully eliminating memory references. 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>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_guc.h')
0 files changed, 0 insertions, 0 deletions