drm/i915/gen9: Set value of Indirect Context Offset based on gen version
authorMichel Thierry <michel.thierry@intel.com>
Tue, 23 Feb 2016 10:31:49 +0000 (10:31 +0000)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Fri, 26 Feb 2016 11:30:17 +0000 (11:30 +0000)
commit715629190ef384abde18b07da93066f8aa8b9045
treeb8b8684bfa421ecf0b447f122782f5949baed5e5
parent032b612e055ecc52dc67aaf04dace8534d94ac80
drm/i915/gen9: Set value of Indirect Context Offset based on gen version

The cache line offset for the Indirect CS context (0x21C8) varies from gen
to gen.

v2: Move it into a function (Arun), use MISSING_CASE (Chris)
v3: Rebased (catched by ci bat)

Cc: Arun Siluvery <arun.siluvery@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Arun Siluvery <arun.siluvery@linux.intel.com>
Signed-off-by: Michel Thierry <michel.thierry@intel.com>
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1456223509-6454-1-git-send-email-michel.thierry@intel.com
drivers/gpu/drm/i915/intel_lrc.c