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:
joj
2025-09-10 18:15:05 -04:00
committed by Sebastian Wick
parent 2409de5105
commit f53cef0041

View File

@@ -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;
}