drm/i915: Use the engine class to get the context size
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Tue, 11 Apr 2017 10:11:12 +0000 (03:11 -0700)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 11 Apr 2017 18:44:04 +0000 (19:44 +0100)
commitddfb570c205446fc6dcfaff1efb5c0e5ca1b30d7
treed7ee0535b7be4bd120d44b414cc790f612fe8d56
parent5f9be05432cb4c323967f6d71ce0ecc024a775c7
drm/i915: Use the engine class to get the context size

Technically speaking, the context size is per engine class, not per
instance.

v2: Add MISSING_CASE (Tvrtko)

v3: Rebased

v4: Restore the interface back to hiding the class lookup (Chris)

Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Oscar Mateo <oscar.mateo@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1491905472-16189-1-git-send-email-oscar.mateo@intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_lrc.c