summaryrefslogtreecommitdiff
path: root/libdrm
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@tungstengraphics.com>2008-11-12 19:17:18 +0100
committerJakob Bornecrantz <jakob@tungstengraphics.com>2008-11-12 19:17:18 +0100
commit9a4cb7eab4f74747cc777a3fef31dbb46e1191e5 (patch)
treed3294a18c6956f77194db5cc12d65c2c6abb91ed /libdrm
parent17789a409d3e83cad9f5cf06c2bb7123b78746b2 (diff)
mode: Minor reodering and renaming
Diffstat (limited to 'libdrm')
-rw-r--r--libdrm/xf86drmMode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libdrm/xf86drmMode.c b/libdrm/xf86drmMode.c
index 38fdbc11..a0a164de 100644
--- a/libdrm/xf86drmMode.c
+++ b/libdrm/xf86drmMode.c
@@ -200,7 +200,7 @@ int drmModeAddFB(int fd, uint32_t width, uint32_t height, uint8_t depth,
if ((ret = ioctl(fd, DRM_IOCTL_MODE_ADDFB, &f)))
return ret;
- *buf_id = f.buffer_id;
+ *buf_id = f.fb_id;
return 0;
}
@@ -216,7 +216,7 @@ drmModeFBPtr drmModeGetFB(int fd, uint32_t buf)
struct drm_mode_fb_cmd info;
drmModeFBPtr r;
- info.buffer_id = buf;
+ info.fb_id = buf;
if (ioctl(fd, DRM_IOCTL_MODE_GETFB, &info))
return NULL;
@@ -224,7 +224,7 @@ drmModeFBPtr drmModeGetFB(int fd, uint32_t buf)
if (!(r = drmMalloc(sizeof(*r))))
return NULL;
- r->buffer_id = info.buffer_id;
+ r->fb_id = info.fb_id;
r->width = info.width;
r->height = info.height;
r->pitch = info.pitch;
@@ -639,7 +639,7 @@ int drmModeReplaceFB(int fd, uint32_t buffer_id,
f.bpp = bpp;
f.depth = depth;
f.handle = bo_handle;
- f.buffer_id = buffer_id;
+ f.fb_id = buffer_id;
if ((ret = ioctl(fd, DRM_IOCTL_MODE_REPLACEFB, &f)))
return ret;