diff options
author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2016-07-12 12:24:05 +0200 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2016-07-26 14:50:27 +0200 |
commit | fd1d69d022fda520338424f2d43888d116b34135 (patch) | |
tree | 8dfd723e9779982b73776eb4e3c0cd1baf702e0c /tests/kms_cursor_legacy.c | |
parent | 1b8d8bc6870870e7033df830f66edfcaab59056d (diff) |
kms_cursor_legacy: Enable tests for !intel drivers.
Apart from gem_create nothing depends on i915, so use the dumb api
instead.
Suggested-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Diffstat (limited to 'tests/kms_cursor_legacy.c')
-rw-r--r-- | tests/kms_cursor_legacy.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/kms_cursor_legacy.c b/tests/kms_cursor_legacy.c index e8a8b85e..14e0586f 100644 --- a/tests/kms_cursor_legacy.c +++ b/tests/kms_cursor_legacy.c @@ -66,7 +66,7 @@ static void stress(struct data *data, arg.crtc_id = 0; arg.width = 64; arg.height = 64; - arg.handle = gem_create(data->fd, 4*64*64); + arg.handle = kmstest_dumb_create(data->fd, 64, 64, 32, NULL, NULL); for (n = 0; n < num_crtcs; n++) { arg.crtc_id = crtc_id[n]; @@ -207,7 +207,7 @@ static void flip(struct data *data, arg.crtc_id = data->resources->crtcs[cursor_pipe]; arg.width = 64; arg.height = 64; - arg.handle = gem_create(data->fd, 4*64*64); + arg.handle = kmstest_dumb_create(data->fd, 64, 64, 32, NULL, NULL); drmIoctl(data->fd, DRM_IOCTL_MODE_CURSOR, &arg); @@ -287,7 +287,7 @@ static void basic_flip_vs_cursor(struct data *data, int nloops) arg.crtc_id = data->resources->crtcs[0]; arg.width = 64; arg.height = 64; - arg.handle = gem_create(data->fd, 4*64*64); + arg.handle = kmstest_dumb_create(data->fd, 64, 64, 32, NULL, NULL); drmIoctl(data->fd, DRM_IOCTL_MODE_CURSOR, &arg); arg.flags = DRM_MODE_CURSOR_MOVE; @@ -359,7 +359,7 @@ static void basic_cursor_vs_flip(struct data *data, int nloops) arg.crtc_id = data->resources->crtcs[0]; arg.width = 64; arg.height = 64; - arg.handle = gem_create(data->fd, 4*64*64); + arg.handle = kmstest_dumb_create(data->fd, 64, 64, 32, NULL, NULL); drmIoctl(data->fd, DRM_IOCTL_MODE_CURSOR, &arg); arg.flags = DRM_MODE_CURSOR_MOVE; @@ -432,7 +432,7 @@ igt_main igt_skip_on_simulation(); igt_fixture { - data.fd = drm_open_driver_master(DRIVER_INTEL); + data.fd = drm_open_driver_master(DRIVER_ANY); kmstest_set_vt_graphics_mode(); data.resources = drmModeGetResources(data.fd); |