diff options
-rw-r--r-- | lib/drmtest.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/drmtest.c b/lib/drmtest.c index 5d3aaa83..786ffa1b 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -269,6 +269,10 @@ int __drm_open_driver(int chipset) is_virtio_device(fd)) return fd; + /* Only VGEM-specific tests should be run on VGEM */ + if (chipset & DRIVER_ANY && !is_vgem_device(fd)) + return fd; + close(fd); } |