OSDN Git Service

drm/i915: Move load time gem_load_init earlier
authorImre Deak <imre.deak@intel.com>
Wed, 16 Mar 2016 12:54:03 +0000 (14:54 +0200)
committerImre Deak <imre.deak@intel.com>
Thu, 17 Mar 2016 13:22:05 +0000 (15:22 +0200)
commit40ae4e1661cd2ef67ca888b36ea636999bd0be73
tree56fd67cc9658c77af201efdcae9b5556450b4232
parent13c8f4c8cd481ec80bfe3b71f1f21e18bad98efb
drm/i915: Move load time gem_load_init earlier

The only steps requiring device access is the fence and swizzling
initialization, so split these out keeping them in their current place
and move the rest of init steps earlier.

v2-v3:
- unchanged
v4:
- move call to i915_gem_detect_bit_6_swizzle() to
  i915_gem_load_init_fences() and preserve the original order of
  the detection of HW fence capailities wrt. swizzling (Chris)

CC: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1458132843-21860-1-git-send-email-imre.deak@intel.com
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c