diff options
author | Robert Foss <robert.foss@collabora.com> | 2017-01-30 10:09:42 -0500 |
---|---|---|
committer | Robert Foss <robert.foss@collabora.com> | 2017-01-30 10:27:50 -0500 |
commit | 7b9499f7e28be49a3db031b4431c9baefe12c951 (patch) | |
tree | b64a5eb3ec19dcff5ec307f477f1709a403f17f5 /lib | |
parent | 956affe2c6fcf05ec9189712e23d64f57540ccba (diff) |
lib/drmtest: Add comment explaining DRIVER_ANY excluding DRIVER_VGEM
Signed-off-by: Robert Foss <robert.foss@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/drmtest.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/drmtest.h b/lib/drmtest.h index 19d4bd19..c9c019c0 100644 --- a/lib/drmtest.h +++ b/lib/drmtest.h @@ -42,8 +42,15 @@ #define DRIVER_VC4 (1 << 1) #define DRIVER_VGEM (1 << 2) #define DRIVER_VIRTIO (1 << 3) +/* + * Exclude DRVER_VGEM from DRIVER_ANY since if you run on a system + * with vgem as well as a supported driver, you can end up with a + * near-100% skip rate if you don't explicitly specify the device, + * depending on device-load ordering. + */ #define DRIVER_ANY ~(DRIVER_VGEM) + #ifdef ANDROID #if (!(defined HAVE_MMAP64)) && (!(defined __x86_64__)) extern void* __mmap2(void *, size_t, int, int, int, off_t); |