We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab82f89 commit ffc0b0dCopy full SHA for ffc0b0d
common/va_display_drm.c
@@ -34,6 +34,7 @@
34
#endif
35
#include <xf86drm.h>
36
#include "va_display.h"
37
+#include <sys/utsname.h>
38
39
static int drm_fd = -1;
40
extern const char *g_device_name;
@@ -81,7 +82,14 @@ va_open_display_drm(void)
81
82
close(drm_fd);
83
continue;
84
}
- if (!strncmp(version->name, "vgem", 4)) {
85
+ /* On normal Linux platforms we do not want vgem.
86
+ * Yet Windows subsystem for linux uses vgem,
87
+ * while also providing a fallback VA driver.
88
+ * See https://github.com/intel/libva/pull/688
89
+ */
90
+ struct utsname sysinfo = {};
91
+ if (!strncmp(version->name, "vgem", 4) && (uname(&sysinfo) >= 0) &&
92
+ !strstr(sysinfo.release, "WSL")) {
93
drmFreeVersion(version);
94
95
0 commit comments