diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2015-02-05 17:22:18 +0000 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-02-13 23:28:05 +0100 |
commit | 2d14030b1a9d0e89cfdca6f16851e2eac8cb4de0 (patch) | |
tree | 084affc32bee1f5116250bac3599c9187224b04d /drivers/gpu/drm/i915/intel_drv.h | |
parent | f55548b5af87ebfc586ca75748947f1c1b1a4a52 (diff) | |
download | linux-2d14030b1a9d0e89cfdca6f16851e2eac8cb4de0.tar.gz linux-2d14030b1a9d0e89cfdca6f16851e2eac8cb4de0.tar.bz2 linux-2d14030b1a9d0e89cfdca6f16851e2eac8cb4de0.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/intel_drv.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h index f048f8bb8beb..76b3c2043954 100644 --- a/drivers/gpu/drm/i915/intel_drv.h +++ b/drivers/gpu/drm/i915/intel_drv.h @@ -258,6 +258,7 @@ struct intel_plane_state { }; struct intel_initial_plane_config { + struct intel_framebuffer *fb; unsigned int tiling; int size; u32 base; |