drm: pin new and unpin old buffer when setting a mode.
authorKristian Høgsberg <krh@redhat.com>
Thu, 18 Dec 2008 03:14:46 +0000 (22:14 -0500)
committerDave Airlie <airlied@linux.ie>
Mon, 29 Dec 2008 07:47:27 +0000 (17:47 +1000)
commit3c4fdcfb2941dc36b6a16bc509a2adb97c131716
tree36fba683165c72b36037035f5c383cc18e7e8db8
parentd1e22c6ed05f3bfb3a7de0947498e7f3c868b296
drm: pin new and unpin old buffer when setting a mode.

This removes the requirement for user space to pin a buffer before
setting a mode that is backed by the pixels from that buffer.

Signed-off-by: Kristian Høgsberg <krh@redhat.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/gpu/drm/drm_crtc_helper.c
drivers/gpu/drm/i915/intel_display.c
include/drm/drm_crtc_helper.h