drm/tegra: Track active planes in CRTC state
authorThierry Reding <treding@nvidia.com>
Wed, 26 Nov 2014 11:28:39 +0000 (12:28 +0100)
committerThierry Reding <treding@nvidia.com>
Tue, 27 Jan 2015 09:14:56 +0000 (10:14 +0100)
commit47802b09a9c2d1f8a562c7fae2f61a8923ac8d06
treee21484f4f85067ce1596dde44552253b6f787d0d
parent3f0fb52ef013e76159b35386f22924f99d8034a4
drm/tegra: Track active planes in CRTC state

Wrap struct drm_crtc_state in a driver-specific structure and add the
planes field which keeps track of which planes are updated or disabled
during a modeset. This allows atomic updates of the the display engine
at ->atomic_flush() time.

v2: open-code getting the state of the CRTC that the plane is being
    attached to (Daniel Vetter)

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/dc.c