]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: change dev_priv->fbc.plane to dev_priv->fbc.crtc
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Mon, 9 Feb 2015 16:46:29 +0000 (14:46 -0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 13 Feb 2015 22:28:15 +0000 (23:28 +0100)
commit632a3ea9d433139b6160b0c9a35a84788458316d
tree1e609b2514add70cbc91073f6b7e0159a1194ada
parent724f5aee90f24b59bc068a29601ccee4139e7e05
drm/i915: change dev_priv->fbc.plane to dev_priv->fbc.crtc

Since the mapping from CRTCs to planes is fixed, looking at the CRTC
is essentially the same as looking at the plane. Also, the next
patches wil start using the frontbuffer_bits macros, and they take the
pipe as the parameter instead of the plane, and this could differ on
gens 2 and 3.

Another nice thing is that we don't risk accidentally initializing
things to PLANE_A if we don't set the value before it is used for the
first time. But this shouldn't be a problem with the current code.

V2: Rebase.

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> (v1)
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_fbc.c
drivers/gpu/drm/i915/intel_sprite.c