]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: consolidate swizzling control bit frobbing
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 31 Jan 2012 15:47:55 +0000 (16:47 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 8 Feb 2012 22:18:27 +0000 (23:18 +0100)
commit541e2ba37e72eae0f9f95833fd00c4ea8b7700cb
tree3e5111c96497fa994503146d98ae2e8514497a03
parent8a55dbd372dd250ef42c0d632e1ea31419f22c93
drm/i915: consolidate swizzling control bit frobbing

On gen5 we also need to correctly set up swizzling in the display
scanout engine, but only there. Consolidate this into the same
function.

This has a small effect on ums setups - the kernel now also sets this
bit in addition to userspace setting it. Given that this code only
runs when userspace either can't (resume, gpu reset) or explicitly
won't(gem_init) touch the hw this shouldn't have an adverse effect.

Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/intel_display.c