tests: Convert the ctx test to use render nodes when possible

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
Damien Lespiau
2013-10-24 15:27:12 +01:00
parent d71ecdbf5d
commit 020600b77d
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ int main(int argc, char *argv[])
create.ctx_id = rand();
create.pad = rand();
fd = drm_open_any();
fd = drm_open_any_render();
ret = drmIoctl(fd, CONTEXT_CREATE_IOCTL, &create);
if (ret != 0 && (errno == ENODEV || errno == EINVAL)) {