drm: drop DRM_IOCTL_MODE_REPLACEFB, add+remove works just as well.
authorKristian H�gsberg <krh@redhat.com>
Thu, 18 Dec 2008 03:14:37 +0000 (13:14 +1000)
committerDave Airlie <airlied@linux.ie>
Mon, 29 Dec 2008 07:47:25 +0000 (17:47 +1000)
commit0c7c26647579e9e647e8b969bb0e7b3f5f1a1492
tree741cd9680ce6a98def2e64f923efb713dae8908b
parente0c8463a8b00b467611607df0ff369d062528875
drm: drop DRM_IOCTL_MODE_REPLACEFB, add+remove works just as well.

The replace fb ioctl replaces the backing buffer object for a modesetting
framebuffer object.  This can be acheived by just creating a new
framebuffer backed by the new buffer object, setting that for the crtcs
in question and then removing the old framebuffer object.

Signed-off-by: Kristian Hogsberg <krh@redhat.com>
Acked-by: Jakob Bornecrantz <jakob@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_crtc.c
drivers/gpu/drm/drm_drv.c
drivers/gpu/drm/i915/intel_display.c
include/drm/drm.h
include/drm/drm_crtc.h