mirror of
https://github.com/flatpak/flatpak.git
synced 2026-03-27 03:14:04 -04:00
Enable VA-API extension for Intel GPUs if either i915 or xe is loaded
Xe module supports the discrete and new integrated GPUs (the Arc series) and the i915 supports the older Intel integrated GPUs (Intel HD). Closes: https://github.com/flatpak/flatpak/issues/5248
This commit is contained in:
@@ -517,7 +517,7 @@ flatpak_get_have_intel_gpu (void)
|
||||
static int have_intel = -1;
|
||||
|
||||
if (have_intel == -1)
|
||||
have_intel = g_file_test ("/sys/module/i915", G_FILE_TEST_EXISTS);
|
||||
have_intel = g_file_test ("/sys/module/i915", G_FILE_TEST_EXISTS) || g_file_test ("/sys/module/xe", G_FILE_TEST_EXISTS);
|
||||
|
||||
return have_intel;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user