summaryrefslogtreecommitdiff
path: root/libdrm/xf86drmMode.c
diff options
context:
space:
mode:
authorOwain G. Ainsworth <oga@openbsd.org>2009-01-11 19:02:07 +0000
committerJakob Bornecrantz <jakob@vmware.com>2009-01-12 13:14:25 +0100
commit13ff0e58c36458a058e5c0676af04000c64a94f6 (patch)
treec441d0da9df2c250800b383e4f75c6624ab3dc2e /libdrm/xf86drmMode.c
parentac8b3308b9432edef5cabe30559004314d42d98c (diff)
Remove drmModeReplaceFb after it was removed from the kernel.
It is impossible to replace the original semantics of this call purely in userland, since the fb_id would change. after discussion with Dr_Jakob Signed-Off-By: Owain Ainsworth <oga@openbsd.org> Acked-By: Jakob Bornecrantz <jakob@vmware.com>
Diffstat (limited to 'libdrm/xf86drmMode.c')
-rw-r--r--libdrm/xf86drmMode.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/libdrm/xf86drmMode.c b/libdrm/xf86drmMode.c
index f481428e..6ec7d59e 100644
--- a/libdrm/xf86drmMode.c
+++ b/libdrm/xf86drmMode.c
@@ -628,27 +628,6 @@ int drmCheckModesettingSupported(const char *busid)
}
-int drmModeReplaceFB(int fd, uint32_t buffer_id,
- uint32_t width, uint32_t height, uint8_t depth,
- uint8_t bpp, uint32_t pitch, uint32_t bo_handle)
-{
- struct drm_mode_fb_cmd f;
- int ret;
-
- f.width = width;
- f.height = height;
- f.pitch = pitch;
- f.bpp = bpp;
- f.depth = depth;
- f.handle = bo_handle;
- f.fb_id = buffer_id;
-
- if ((ret = drmIoctl(fd, DRM_IOCTL_MODE_REPLACEFB, &f)))
- return ret;
-
- return 0;
-}
-
int drmModeCrtcGetGamma(int fd, uint32_t crtc_id, uint32_t size,
uint16_t *red, uint16_t *green, uint16_t *blue)
{