]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Store the initial framebuffer in initial_plane_config
authorDamien Lespiau <damien.lespiau@intel.com>
Thu, 5 Feb 2015 17:22:18 +0000 (17:22 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 13 Feb 2015 22:28:05 +0000 (23:28 +0100)
commit86e9d156a8f1dcc6934a3ba39128ead5b4650c0e
tree084affc32bee1f5116250bac3599c9187224b04d
parent3db9da0b12ec8e54174d498643eeea1635d8ce2e
drm/i915: Store the initial framebuffer in initial_plane_config

At the moment we use crtc->base.primary->fb to hold the initial
framebuffer allocation, disregarding if it's valid or not.

This lead to believe we were actually updating the fb at this point, but
it's not true and we haven't even called drm_framebuffer_init() on this
fb.

Instead, let's store the state in struct intel_initial_plane_config
until we know we can reuse that framebuffer.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h