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

View File

@ -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);

View File

@ -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);

View File

@ -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()) {

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)) {

View File

@ -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);