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>
This commit is contained in:
Ville Syrjälä 2019-08-20 17:46:09 +03:00
parent 194ba38728
commit 0c5179c280
1 changed files with 7 additions and 1 deletions

View File

@ -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: