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ä <ville.syrjala@linux.intel.com>
Reviewed-by: Michel Dänzer <michel@daenzer.net>
Closes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1143
(cherry picked from commit 0c5179c280)
This commit is contained in:
Ville Syrjälä 2019-08-20 17:46:09 +03:00 committed by Matt Turner
parent 7bf4777116
commit f1e76731a0

View File

@ -3021,8 +3021,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: