• Vitaliy Ilichev's avatar
    [samples] fix drm drivers detection · 9b7c81e1
    Vitaliy Ilichev authored
    Current mechanism to detect Intel drm drivers uses the following schema:
    1) Walk through the list of PCI devices, get device properties
       (Vendor ID) and calculate number of PCI devices  that corresponds
       to ‘DISPLAY_CONTROLLER_CLASS’ (adapters_num)
    2) Use adapters_num to get path to /dev/dri/cardN and /dev/dri/renderDN
       with checking for Vendor ID.
    But this approach is not working in some cases. For example, if PCI device
    is present but corresponding driver is not set up. So it can be attempt to
    open wrong /dev/dri/renderN and /dev/dri/cardN  paths.
    
    New approach is based on checking for /dev/dri/renderD<N> (N=0..15) with
    drm request for driver name.
    9b7c81e1
Name
Last commit
Last update
_studio Loading commit data...
android Loading commit data...
api Loading commit data...
builder Loading commit data...
contrib/ipp Loading commit data...
doc Loading commit data...
googletest Loading commit data...
samples Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
Android.mk Loading commit data...
CHANGELOG.md Loading commit data...
CMakeLists.txt Loading commit data...
CODEOWNERS Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
mfxconfig.h.in Loading commit data...