diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2019-08-20 17:46:09 +0300 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2019-08-22 12:41:39 +0000 |
commit | 0c5179c280a193a1dbbe29160906087f06eae6f2 (patch) | |
tree | 1499f6a1c259e717d9d1509b4d120cc2dcfe4f9e /hw/xfree86 | |
parent | 194ba38728b34a76885275dae153057c8afaf72e (diff) |
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>
Diffstat (limited to 'hw/xfree86')
-rw-r--r-- | hw/xfree86/drivers/modesetting/drmmode_display.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/hw/xfree86/drivers/modesetting/drmmode_display.c b/hw/xfree86/drivers/modesetting/drmmode_display.c index e0d7cfb5c..f621df52f 100644 --- a/hw/xfree86/drivers/modesetting/drmmode_display.c +++ b/hw/xfree86/drivers/modesetting/drmmode_display.c @@ -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: |