]> 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)
commitd97b87aebe21064dcd424b1d8b439d424f63b7b3
tree3e5111c96497fa994503146d98ae2e8514497a03
parentd65ee6492c5f05c71496f3e278647db506e51b87
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