Commit 0e4bd71d authored by Ville Syrjälä's avatar Ville Syrjälä Committed by Adam Jackson
Browse files

modesetting: Fix possible_crtcs

Populate outout possible_crtcs as the union of possible_crtcs from
the encoders rather than the intersection. Otherwise we're easily left
with possible_crtcs==0 when all the possible encoders have
non-overlapping possible_crtcs.

No idea what the magic 0x7f is about, but keep it around in case
it matters.
Signed-off-by: Ville Syrjälä's avatarVille Syrjälä <>
parent 334f1107
Pipeline #74403 passed with stages
in 9 minutes and 21 seconds
......@@ -2979,9 +2979,9 @@ drmmode_output_init(ScrnInfoPtr pScrn, drmmode_ptr drmmode, drmModeResPtr mode_r
output->driver_private = drmmode_output;
output->non_desktop = nonDesktop;
output->possible_crtcs = 0x7f;
output->possible_crtcs = 0;
for (i = 0; i < koutput->count_encoders; i++) {
output->possible_crtcs &= kencoders[i]->possible_crtcs >> crtcshift;
output->possible_crtcs |= (kencoders[i]->possible_crtcs >> crtcshift) & 0x7f;
/* work out the possible clones later */
output->possible_clones = 0;
Markdown is supported
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