]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9001f4b1ded192b150b4858314cabac556ec3214
treed7ee0535b7be4bd120d44b414cc790f612fe8d56
parente30de7151580550a60149aeb38e365b0f99be4da
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