summaryrefslogtreecommitdiff
path: root/lib/libdrm/xf86drmMode.c
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2009-05-03 19:43:27 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2009-05-03 19:43:27 +0000
commit42102703a303f715808a6b5428f67b56a697944d (patch)
treed155c702ca90f01b8c342262208f917c8ebae83f /lib/libdrm/xf86drmMode.c
parent8524960d115363e61e7ac540f4e7b9bb16dd390c (diff)
update libdrm to 2.4.9 (actually to -current, but the only real changes
are to some assertions and a small change to modesetting code). bump libdrm_intel minor due to added symbols, libdrm doesn't get bumped, no change to symbol list. ok matthieu@.
Diffstat (limited to 'lib/libdrm/xf86drmMode.c')
-rw-r--r--lib/libdrm/xf86drmMode.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/libdrm/xf86drmMode.c b/lib/libdrm/xf86drmMode.c
index 6ec7d59ee..ea11207ec 100644
--- a/lib/libdrm/xf86drmMode.c
+++ b/lib/libdrm/xf86drmMode.c
@@ -76,7 +76,7 @@ void* drmAllocCpy(void *array, int count, int entry_size)
* A couple of free functions.
*/
-void drmModeFreeModeInfo(struct drm_mode_modeinfo *ptr)
+void drmModeFreeModeInfo(drmModeModeInfoPtr ptr)
{
if (!ptr)
return;
@@ -273,7 +273,7 @@ drmModeCrtcPtr drmModeGetCrtc(int fd, uint32_t crtcId)
int drmModeSetCrtc(int fd, uint32_t crtcId, uint32_t bufferId,
uint32_t x, uint32_t y, uint32_t *connectors, int count,
- struct drm_mode_modeinfo *mode)
+ drmModeModeInfoPtr mode)
{
struct drm_mode_crtc crtc;
@@ -395,7 +395,8 @@ drmModeConnectorPtr drmModeGetConnector(int fd, uint32_t connector_id)
r->connection = conn.connection;
r->mmWidth = conn.mm_width;
r->mmHeight = conn.mm_height;
- r->subpixel = conn.subpixel;
+ /* convert subpixel from kernel to userspace */
+ r->subpixel = conn.subpixel + 1;
r->count_modes = conn.count_modes;
/* TODO we should test if these alloc & cpy fails. */
r->count_props = conn.count_props;
@@ -419,7 +420,7 @@ err_allocs:
return r;
}
-int drmModeAttachMode(int fd, uint32_t connector_id, struct drm_mode_modeinfo *mode_info)
+int drmModeAttachMode(int fd, uint32_t connector_id, drmModeModeInfoPtr mode_info)
{
struct drm_mode_mode_cmd res;
@@ -429,7 +430,7 @@ int drmModeAttachMode(int fd, uint32_t connector_id, struct drm_mode_modeinfo *m
return drmIoctl(fd, DRM_IOCTL_MODE_ATTACHMODE, &res);
}
-int drmModeDetachMode(int fd, uint32_t connector_id, struct drm_mode_modeinfo *mode_info)
+int drmModeDetachMode(int fd, uint32_t connector_id, drmModeModeInfoPtr mode_info)
{
struct drm_mode_mode_cmd res;