]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Drop unused position fields (v2)
authorMatt Roper <matthew.d.roper@intel.com>
Tue, 23 Dec 2014 18:41:53 +0000 (10:41 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 12 Jan 2015 22:59:41 +0000 (23:59 +0100)
commit774d127b112e287fec4dd1ea37b8e571ebc87829
tree2134968a59702c0225091758c1ec9c38ea380994
parent8987ff3f43b9b590cef859ba11e7a1a3920351bd
drm/i915: Drop unused position fields (v2)

The userspace-requested plane coordinates are now always available via
plane->state.base (and the i915-adjusted values are stored in
plane->state), so we no longer use the coordinate fields in intel_plane
and can drop them.

Also, note that the error case for pageflip calls update_plane() to
program the values from plane->state; it's simpler to just call
intel_plane_restore() which does the same thing.

v2: Replace manual update_plane() with intel_plane_restore() in pageflip
    error handler.

Reviewed-by(v1): Bob Paauwe <bob.j.paauwe@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@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
drivers/gpu/drm/i915/intel_sprite.c