[Intel-gfx] [PATCH i-g-t 2/2] lib/drmtest: Report proper err message when opening the driver.
Marius Vlad
marius.c.vlad at intel.com
Thu Jun 23 16:46:03 UTC 2016
Signed-off-by: Marius Vlad <marius.c.vlad at intel.com>
CC: Chris Wilson <chris at chris-wilson.co.uk>
---
lib/drmtest.c | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/lib/drmtest.c b/lib/drmtest.c
index 1e28f60..d2ee2d1 100644
--- a/lib/drmtest.c
+++ b/lib/drmtest.c
@@ -261,7 +261,17 @@ int __drm_open_driver(int chipset)
close(fd);
}
- igt_skip("No intel gpu found\n");
+ switch (chipset & (DRIVER_INTEL | DRIVER_VC4 | DRIVER_VGEM)) {
+ case DRIVER_INTEL:
+ igt_skip("No intel gpu found\n");
+ break;
+ case DRIVER_VC4:
+ igt_skip("No vc4 gpu found\n");
+ break;
+ case DRIVER_VGEM:
+ igt_skip("No vgem support found\n");
+ break;
+ }
return -1;
}
--
2.5.0
More information about the Intel-gfx
mailing list