Commit 0c5179c2 authored by Ville Syrjälä's avatar Ville Syrjälä
Browse files

modesetting: Update props for dynamically added outputs



Dynamically added outputs should have their properties
properly updated as well. Otherwise we're left with an output
with many of its propeties not exposed.
Signed-off-by: Ville Syrjälä's avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Michel Dänzer's avatarMichel Dänzer <michel@daenzer.net>
parent 194ba387
......@@ -3003,8 +3003,14 @@ drmmode_output_init(ScrnInfoPtr pScrn, drmmode_ptr drmmode, drmModeResPtr mode_r
"DPMS");
}
if (dynamic)
if (dynamic) {
output->randr_output = RROutputCreate(xf86ScrnToScreen(pScrn), output->name, strlen(output->name), output);
if (output->randr_output) {
drmmode_output_create_resources(output);
RRPostPendingProperties(output->randr_output);
}
}
return 1;
out_free_encoders:
......
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