Closed rsglobal closed 4 years ago
@matviizorin ,
I've just found same algorithm in libkmsxx: https://github.com/tomba/kmsxx/blob/d9d5e44526a3b8065e4ae913032020d0bfd93103/kms%2B%2B/src/card.cpp#L42
So it should save hours of your efforts.
@rsglobal,
Thanks a lot, I'll try to implement it in the nearest time
I've just created the MR into drm_hwcomposer (MR#108).
WIP branch which will be upstream to gbm_gralloc - kms-device.
PR to gbm_gralloc has been created (PR#16).
The MR#108 was merged.
Feature was added into integration branch and successfully tested. @matviizorin , Thank you for contribution.
We can not always guarantee that KMS card will always have /dev/dri/card0 path, This path can depend on different factors, e.g. DTS node order, driver compiled as a module or built-in, etc. Both drm_hwcomposer and gbm_gralloc have to always use KMS driver, not GPU.