mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 17:36:11 +00:00
tests: Open any driver
For those tests that now pass on drivers other than i915, call drm_open_driver_master with DRIVER_ANY. Also do so from igt_enable_connectors. Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Reviewed-by: Daniel Stone <daniels@collabora.com> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
17a5d7168d
commit
f4718c2b6c
@ -2490,7 +2490,7 @@ void igt_enable_connectors(void)
|
||||
drmModeConnector *c;
|
||||
int drm_fd;
|
||||
|
||||
drm_fd = drm_open_driver(DRIVER_INTEL);
|
||||
drm_fd = drm_open_driver(DRIVER_ANY);
|
||||
|
||||
res = drmModeGetResources(drm_fd);
|
||||
|
||||
|
@ -225,7 +225,7 @@ igt_main
|
||||
siginterrupt(SIGALRM, 1);
|
||||
|
||||
igt_fixture {
|
||||
fd = drm_open_driver_master(DRIVER_INTEL);
|
||||
fd = drm_open_driver_master(DRIVER_ANY);
|
||||
igt_require(pipe0_enabled(fd));
|
||||
}
|
||||
|
||||
|
@ -481,7 +481,7 @@ int fd;
|
||||
igt_main
|
||||
{
|
||||
igt_fixture
|
||||
fd = drm_open_driver_master(DRIVER_INTEL);
|
||||
fd = drm_open_driver_master(DRIVER_ANY);
|
||||
|
||||
invalid_tests(fd);
|
||||
|
||||
|
@ -720,7 +720,7 @@ static void atomic_setup(struct kms_atomic_state *state)
|
||||
drmModePlaneResPtr res_plane;
|
||||
int i;
|
||||
|
||||
desc->fd = drm_open_driver_master(DRIVER_INTEL);
|
||||
desc->fd = drm_open_driver_master(DRIVER_ANY);
|
||||
igt_assert_fd(desc->fd);
|
||||
|
||||
igt_skip_on(drmSetClientCap(desc->fd, DRM_CLIENT_CAP_ATOMIC, 1));
|
||||
|
@ -756,7 +756,7 @@ int main(int argc, char **argv)
|
||||
"only one of -d and -t is accepted\n");
|
||||
|
||||
igt_fixture {
|
||||
drm_fd = drm_open_driver_master(DRIVER_INTEL);
|
||||
drm_fd = drm_open_driver_master(DRIVER_ANY);
|
||||
if (!dry_run)
|
||||
kmstest_set_vt_graphics_mode();
|
||||
|
||||
|
@ -177,7 +177,7 @@ igt_main
|
||||
igt_skip_on_simulation();
|
||||
|
||||
igt_fixture {
|
||||
fd = drm_open_driver(DRIVER_INTEL);
|
||||
fd = drm_open_driver(DRIVER_ANY);
|
||||
igt_require(crtc0_active(fd));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user