aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie2008-01-08 23:44:31 -0600
committerDave Airlie2008-01-08 23:44:31 -0600
commit73bf5e867089b58b2c4baaa833d15a2b1fb268a4 (patch)
treed76cc72f9319403f914de40ea42c4ec2fb7ab261 /tests/dristat.c
parent8d6e3c208f8090ccc32ef3a38c58f2aca7f4be2a (diff)
downloadexternal-libdrm-73bf5e867089b58b2c4baaa833d15a2b1fb268a4.tar.gz
external-libdrm-73bf5e867089b58b2c4baaa833d15a2b1fb268a4.tar.xz
external-libdrm-73bf5e867089b58b2c4baaa833d15a2b1fb268a4.zip
add internals for opening a control node
Diffstat (limited to 'tests/dristat.c')
-rw-r--r--tests/dristat.c2
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);