diff options
author | Jesse Barnes | 2008-12-17 12:09:49 -0600 |
---|---|---|
committer | Jesse Barnes | 2008-12-17 12:11:37 -0600 |
commit | 731cd5526e5c732d51307b26e784f454a724a699 (patch) | |
tree | 215249e4aa86a3d8418b7f5cad95551d49ecce2d /tests/dristat.c | |
parent | c86d431fe6174b1c2de531929213ea7dbd92326d (diff) | |
download | external-libdrm-731cd5526e5c732d51307b26e784f454a724a699.tar.gz external-libdrm-731cd5526e5c732d51307b26e784f454a724a699.tar.xz external-libdrm-731cd5526e5c732d51307b26e784f454a724a699.zip |
libdrm: add mode setting files
Add mode setting files to libdrm, including xf86drmMode.* and the new
drm_mode.h header. Also add a couple of tests to sanity check the
kernel interfaces and update code to support them.
Diffstat (limited to 'tests/dristat.c')
-rw-r--r-- | tests/dristat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/dristat.c b/tests/dristat.c index 89853164..48c3b51b 100644 --- a/tests/dristat.c +++ b/tests/dristat.c | |||
@@ -263,7 +263,7 @@ int main(int argc, char **argv) | |||
263 | 263 | ||
264 | for (i = 0; i < 16; i++) if (!minor || i == minor) { | 264 | for (i = 0; i < 16; i++) if (!minor || i == minor) { |
265 | sprintf(buf, DRM_DEV_NAME, DRM_DIR_NAME, i); | 265 | sprintf(buf, DRM_DEV_NAME, DRM_DIR_NAME, i); |
266 | fd = drmOpenMinor(i, 1); | 266 | fd = drmOpenMinor(i, 1, DRM_NODE_RENDER); |
267 | if (fd >= 0) { | 267 | if (fd >= 0) { |
268 | printf("%s\n", buf); | 268 | printf("%s\n", buf); |
269 | if (mask & DRM_BUSID) getbusid(fd); | 269 | if (mask & DRM_BUSID) getbusid(fd); |