diff options
author | Sven Gothel <[email protected]> | 2019-12-04 04:54:22 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2019-12-04 04:54:22 +0100 |
commit | e57de40bd0e1a318d59ca70f20a6f7d8a8921c74 (patch) | |
tree | b3f061723b57c7b156ea298130084d5b2cc7b6af /CHANGELOG.txt | |
parent | 22ee0cfa7dc3f3a7ac5e30322537196dcab8b310 (diff) |
Bug 1406: DRMUtil: Probe DRM device whether it has resources attached (and is the desired one)
First issue was that the proper DRM file had to be queries,
as Raspberry 4 may have two of them:
<--
/dev/dri/dri0
/dev/dri/dri0
/dev/dri/by-path/platform-fec00000.v3d-card -> ../card0
/dev/dri/by-path/platform-soc:gpu-card -> ../card1
-->
This patch attempts to probe all /dev/dri/card[0..99]
using this arbitrary range.
The test loop ends if:
- drmOpenFile succeeds and drmModeGetResources delivers non-null value
- the iterated probed file doesn't even exist
- 100 files has been tested ;-)
Diffstat (limited to 'CHANGELOG.txt')
0 files changed, 0 insertions, 0 deletions