[Intel-gfx] [PATCH] uxa: actually create the randr outputs for hotplug connectors

Dave Airlie airlied at gmail.com
Mon Sep 8 09:46:18 CEST 2014


From: Dave Airlie <airlied at redhat.com>

I somehow lost this chunk in my mst patch I sent.

Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 src/uxa/intel_display.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/uxa/intel_display.c b/src/uxa/intel_display.c
index c5f0620..97af76d 100644
--- a/src/uxa/intel_display.c
+++ b/src/uxa/intel_display.c
@@ -1524,6 +1524,12 @@ intel_output_init(ScrnInfoPtr scrn, struct intel_mode *mode, drmModeResPtr mode_
 	output->interlaceAllowed = TRUE;
 
 	intel_output->output = output;
+
+	if (dynamic) {
+		output->randr_output = RROutputCreate(xf86ScrnToScreen(scrn), output->name, strlen(output->name), output);
+		intel_output_create_resources(output);
+	}
+
 	list_add(&intel_output->link, &mode->outputs);
 	return;
 
-- 
1.9.3




More information about the Intel-gfx mailing list