mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 09:26:10 +00:00
lib/drmtest: Properly skip if no intel gfx supported
drm/* kernel test nirvana! Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
47a32a3aec
commit
4ba1f2e104
@ -267,11 +267,7 @@ int drm_open_any(void)
|
||||
static int open_count;
|
||||
int fd = __drm_open_any();
|
||||
|
||||
if (fd < -1) {
|
||||
fprintf(stderr, "Failed to open any drm device.%s\n",
|
||||
geteuid() ? "Retry as root?" : "");
|
||||
return fd;
|
||||
}
|
||||
igt_require(fd >= 0);
|
||||
|
||||
if (__sync_fetch_and_add(&open_count, 1))
|
||||
return fd;
|
||||
|
Loading…
x
Reference in New Issue
Block a user