diff mbox

uxa: actually create the randr outputs for hotplug connectors

Message ID 1410162378-15705-1-git-send-email-airlied@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Dave Airlie Sept. 8, 2014, 7:46 a.m. UTC
From: Dave Airlie <airlied@redhat.com>

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

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

Comments

Chris Wilson Sept. 8, 2014, 7:49 a.m. UTC | #1
On Mon, Sep 08, 2014 at 05:46:18PM +1000, Dave Airlie wrote:
> From: Dave Airlie <airlied@redhat.com>
> 
> I somehow lost this chunk in my mst patch I sent.
> 
> Signed-off-by: Dave Airlie <airlied@redhat.com>

And I didn't notice, since this is one of the major things you have to
do with delayed addition of outputs.

Thanks for the quick fix.
-Chris
diff mbox

Patch

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;