From e22f6b03580c4b3f415b37f74aaf194bc3891562 Mon Sep 17 00:00:00 2001 From: chenyanxzhu Date: Fri, 20 Dec 2024 10:16:17 +0800 Subject: [PATCH] Use dgpu for codec when dual gpu case dGPU kernel driver normally is loaded after iGPU kernel driver, then the second i915 device is for dGPU. (Things will be different with 'drmGetDevices2' func, which may return different order. ) TODO: - Make more robust, need double check if the device is dGPU by check the device id or check if local memory exist. currently it seems not needed and difficult to maintain. Tracked-On: OAM-128384 Signed-off-by: chenyanxzhu --- media_driver/linux/common/ddi/media_libva.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/media_driver/linux/common/ddi/media_libva.cpp b/media_driver/linux/common/ddi/media_libva.cpp index d349965a2..d5cb00a5a 100755 --- a/media_driver/linux/common/ddi/media_libva.cpp +++ b/media_driver/linux/common/ddi/media_libva.cpp @@ -1583,9 +1583,6 @@ static int DdiMedia_SelectIntelDevice() } if (strncmp(version->name, "i915", strlen("i915")) == 0) { intel_gpu_index = i; - drmFreeVersion(version); - close(temp); - break; } drmFreeVersion(version); close(temp);