summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2013-10-24 15:27:12 +0100
committerDamien Lespiau <damien.lespiau@intel.com>2013-10-28 11:00:07 +0000
commit020600b77dfc179d99bb3d088927dcdf6d432cfe (patch)
tree8b194ab641952afbbeea31e8d35d79baa5d6f0c2
parentd71ecdbf5de0bb95551c6a5def4d42e85b4d6616 (diff)
tests: Convert the ctx test to use render nodes when possible
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
-rw-r--r--tests/gem_ctx_bad_destroy.c2
-rw-r--r--tests/gem_ctx_bad_exec.c2
-rw-r--r--tests/gem_ctx_basic.c4
-rw-r--r--tests/gem_ctx_create.c2
-rw-r--r--tests/gem_ctx_exec.c2
5 files changed, 6 insertions, 6 deletions
diff --git a/tests/gem_ctx_bad_destroy.c b/tests/gem_ctx_bad_destroy.c
index 78526187..e93642f6 100644
--- a/tests/gem_ctx_bad_destroy.c
+++ b/tests/gem_ctx_bad_destroy.c
@@ -62,7 +62,7 @@ int main(int argc, char *argv[])
igt_skip_on_simulation();
- fd = drm_open_any();
+ fd = drm_open_any_render();
ctx_id = gem_context_create(fd);
diff --git a/tests/gem_ctx_bad_exec.c b/tests/gem_ctx_bad_exec.c
index dadd6631..c60e6938 100644
--- a/tests/gem_ctx_bad_exec.c
+++ b/tests/gem_ctx_bad_exec.c
@@ -91,7 +91,7 @@ int main(int argc, char *argv[])
igt_subtest_init(argc, argv);
igt_fixture {
- fd = drm_open_any();
+ fd = drm_open_any_render();
ctx_id = gem_context_create(fd);
diff --git a/tests/gem_ctx_basic.c b/tests/gem_ctx_basic.c
index 47f4b4b8..bc21a8a3 100644
--- a/tests/gem_ctx_basic.c
+++ b/tests/gem_ctx_basic.c
@@ -64,7 +64,7 @@ static void *work(void *arg)
int i;
if (multiple_fds)
- td_fd = fd = drm_open_any();
+ td_fd = fd = drm_open_any_render();
else
td_fd = fd;
@@ -133,7 +133,7 @@ int main(int argc, char *argv[])
{
int i;
- fd = drm_open_any();
+ fd = drm_open_any_render();
devid = intel_get_drm_devid(fd);
if (igt_run_in_simulation()) {
diff --git a/tests/gem_ctx_create.c b/tests/gem_ctx_create.c
index f22522b8..1d9ff86c 100644
--- a/tests/gem_ctx_create.c
+++ b/tests/gem_ctx_create.c
@@ -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)) {
diff --git a/tests/gem_ctx_exec.c b/tests/gem_ctx_exec.c
index 5f2c59f4..620a9447 100644
--- a/tests/gem_ctx_exec.c
+++ b/tests/gem_ctx_exec.c
@@ -102,7 +102,7 @@ int main(int argc, char *argv[])
igt_skip_on_simulation();
- fd = drm_open_any();
+ fd = drm_open_any_render();
ctx_id = gem_context_create(fd);
handle = gem_create(fd, 4096);