intel / libvpl

Intel® Video Processing Library (Intel® VPL) API, dispatcher, and examples
https://intel.github.io/libvpl/
MIT License
262 stars 80 forks source link

[Samples] Fix "dGfx" option for Linux #109

Closed hoesheng closed 8 months ago

hoesheng commented 8 months ago

[Issue] -dGfx option doesn't result in discrete GPU selection for iGPU + dGPU setup. This is because when device path (/dev/dri/renderD12<x>) is not being specified, it always fallback to the first intel adapter found, which is /dev/dri/renderD128 in iGPU + dGPU setup.

[Solution] If device path is not being explicitly specified, set it to m_DRMRenderNodeNumUsed

[Dependency] https://github.com/oneapi-src/oneVPL-intel-gpu/pull/301