fix(linux/kms): Use connector type index from KMS instead of self calculation - #5489
fix(linux/kms): Use connector type index from KMS instead of self calculation#5489Kishi85 wants to merge 1 commit into
Conversation
7ade044 to
489d6ea
Compare
|
@ReenigneArcher I don't think this'll impact #5481 much but might reduce the need for it as KMS monitors should always line-up properly with this change. |
Bundle ReportBundle size has no change ✅ |
Thanks for letting me know. I don't really know if that will fix the issue mentioned. I just asked GPT 5.6 to address the stale issues instead of continuing to ignore them. Not sure the affected users will respond or test it though. Could you try a force push for this PR to get the sonar build to work? |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5489 +/- ##
==========================================
- Coverage 28.10% 28.10% -0.01%
==========================================
Files 109 109
Lines 24710 24711 +1
Branches 10911 10911
==========================================
Hits 6944 6944
+ Misses 15869 14757 -1112
- Partials 1897 3010 +1113
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Screenshot ComparisonPR #5489 screenshots vs Matrix:
|
…culation Instead of calculating the index for each connector_type manually use the connector_type_id index provided by KMS to ensure correct values.
489d6ea to
fa3654e
Compare
|
|
I'll do a few more tests to make sure this does what it should (at least on my setup). I'll mark this ready for review again once I'm done. |
|
I'll have to flag this as a breaking change as it might reorder monitor indices but those are not guaranteed to be stable for KMS anyway and no longer recommended for the Also should be extensively tested in multi-monitor setups before merging. |









































































Description
Instead of calculating the index for each connector_type manually use the connector_type_id index provided by KMS to ensure correct values.
For details see https://www.kernel.org/doc/html/latest/gpu/drm-kms.html#c.drm_connector and related docs for
connector_typeandconnector_type_idScreenshot
Issues Fixed or Closed
This might fix some issues related to #5444 but needs to be tested first before adding to this list.
Roadmap Issues
Type of Change
Checklist
AI Usage
See our AI usage policy.