Skip to content

Commit

Permalink
Use dgpu for codec when dual gpu case
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
chenyanxzhu committed Dec 20, 2024
1 parent b1d17b2 commit e22f6b0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions media_driver/linux/common/ddi/media_libva.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e22f6b0

Please sign in to comment.