Skip to content
Commit ca6fcbb2 authored by Xaver Hugl's avatar Xaver Hugl
Browse files

backends/drm: make finding connector<->crtc combinations more efficient

Encoders are not really relevant for the test result, except that one of
the encoders for the connector must be compatible with the crtc.
The kernel usually exposes only a single encoder per connector for this
reason, but if a driver exposes multiple then that means KWin will do a
lot more tests than is necessary.
In order to prevent that from happening, do fewer syscalls and simplify
code, only check supported encoders once per connector.
parent 32bdf288
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment