summaryrefslogtreecommitdiff
path: root/libdrm
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2007-04-05 18:01:02 +1000
committerDave Airlie <airlied@linux.ie>2007-04-05 18:01:02 +1000
commitb4094864f188a1346cc3b51bcb457beeacefbf82 (patch)
tree9e5aedf5decf684eedc8b6d0c16320ae788aab8e /libdrm
parent7bb112fecadc6fe42e5828b861600691071ccd91 (diff)
checkpoint commit: implement SetCrtc so modes can in theory be set from user
This hooks up the userspace mode set it "seems" to work.
Diffstat (limited to 'libdrm')
-rw-r--r--libdrm/xf86drmMode.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libdrm/xf86drmMode.c b/libdrm/xf86drmMode.c
index b48ca838..c4403b1c 100644
--- a/libdrm/xf86drmMode.c
+++ b/libdrm/xf86drmMode.c
@@ -286,7 +286,7 @@ err_allocs:
return 0;
}
-#if 0
+
int drmModeSetCrtc(
int fd, uint32_t crtcId, uint32_t bufferId,
uint32_t x, uint32_t y, uint32_t modeId,
@@ -302,15 +302,16 @@ int drmModeSetCrtc(
crtc.x = x;
crtc.y = y;
- crtc.crtcId = crtcId;
- crtc.bufferId = bufferId;
+ crtc.crtc_id = crtcId;
+ crtc.fb_id = bufferId;
crtc.set_outputs = outputs;
crtc.count_outputs = count;
crtc.mode = modeId;
- // return ioctl(fd, DRM_IOCTL_MODE_SETCRTC, &crtc);
+ return ioctl(fd, DRM_IOCTL_MODE_SETCRTC, &crtc);
}
+#if 0
drmModeGammaTriplePtr drmModeGetCrtcGamma(int fd, uint32_t crtc, int *count)
{
/* TODO impl */