xserver: Branch 'master'
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Aug 23 09:57:27 UTC 2019
hw/xfree86/drivers/modesetting/drmmode_display.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
New commits:
commit 0c5179c280a193a1dbbe29160906087f06eae6f2
Author: Ville Syrjälä <ville.syrjala at linux.intel.com>
Date: Tue Aug 20 17:46:09 2019 +0300
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 at linux.intel.com>
Reviewed-by: Michel Dänzer <michel at daenzer.net>
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:
More information about the xorg-commit
mailing list