]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: get_plane_config for i9xx v13
authorJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 7 Mar 2014 16:57:49 +0000 (08:57 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 8 Mar 2014 10:31:41 +0000 (11:31 +0100)
commitad337a32c6b511ed52ece1f35a3487831aef06e7
treeacbc6b1c2e535c012851429216e394a9471a7de1
parentedba4801e608c73cfaeaa2874ea5107b7b9715ab
drm/i915: get_plane_config for i9xx v13

Read out the current plane configuration at init time into a new
plane_config structure.  This allows us to track any existing
framebuffers attached to the plane and potentially re-use them in our
fbdev code for a smooth handoff.

v2: update for new pitch_for_width function (Jesse)
    comment how get_plane_config works with shared fbs (Jesse)
v3: s/ARGB/XRGB (Ville)
    use pipesrc width/height (Ville)
    fix fourcc comment (Bob)
    use drm_format_plane_cpp (Ville)
v4: use fb for tracking fb data object (Ville)
v5: fix up gen2 pitch limits (Ville)
v6: read out stride as well (Daniel)
v7: split out init ordering changes (Daniel)
    don't fetch config if !CONFIG_FB
v8: use proper height in get_plane_config (Chris)
v9: fix CONFIG_FB check for modular configs (Jani)
v10: add comment about stolen allocation stomping
v11: drop hw state readout hunk (Daniel)
v12: handle tiled BIOS fbs (Kristian)
     pull out common bits (Jesse)
v13: move fb obj alloc out to _init

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c