<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Series is:</p>
<p style="margin-top:0;margin-bottom:0">Reviewed-by: Alex Deucher <alexander.deucher@amd.com><br>
</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> amd-gfx <amd-gfx-bounces@lists.freedesktop.org> on behalf of Michel Dänzer <michel@daenzer.net><br>
<b>Sent:</b> Wednesday, January 9, 2019 5:43:22 AM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org<br>
<b>Subject:</b> [PATCH xf86-video-ati 1/2] Only call drmmode_uevent_init if RandR is enabled</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">From: Michel Dänzer <michel.daenzer@amd.com><br>
<br>
There's no point in listening for hotplug events if RandR is disabled,<br>
as there's no other mechanism for them to be propagated. We were already<br>
mostly ignoring them in that case.<br>
<br>
Inspired by<br>
<a href="https://gitlab.freedesktop.org/xorg/driver/xf86-video-intel/commit/1a489142c8e6a4828348cc9afbd0f430d3b1e2d8">https://gitlab.freedesktop.org/xorg/driver/xf86-video-intel/commit/1a489142c8e6a4828348cc9afbd0f430d3b1e2d8</a><br>
(via <a href="https://bugs.freedesktop.org/109230#c11">https://bugs.freedesktop.org/109230#c11</a>).<br>
<br>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com><br>
---<br>
src/drmmode_display.c | 2 +-<br>
src/radeon_kms.c | 4 ++--<br>
2 files changed, 3 insertions(+), 3 deletions(-)<br>
<br>
diff --git a/src/drmmode_display.c b/src/drmmode_display.c<br>
index d433e0611..e04a17d5e 100644<br>
--- a/src/drmmode_display.c<br>
+++ b/src/drmmode_display.c<br>
@@ -3273,7 +3273,7 @@ restart_destroy:<br>
/* Check to see if a lessee has disappeared */<br>
drmmode_validate_leases(scrn);<br>
<br>
- if (changed && dixPrivateKeyRegistered(rrPrivKey)) {<br>
+ if (changed) {<br>
#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,14,99,2,0)<br>
RRSetChanged(xf86ScrnToScreen(scrn));<br>
#else<br>
diff --git a/src/radeon_kms.c b/src/radeon_kms.c<br>
index bb6885fb9..67f42e0fe 100644<br>
--- a/src/radeon_kms.c<br>
+++ b/src/radeon_kms.c<br>
@@ -349,13 +349,13 @@ static Bool RADEONCreateScreenResources_KMS(ScreenPtr pScreen)<br>
RROutputChanged(rrScrPriv->primaryOutput, FALSE);<br>
rrScrPriv->layoutChanged = TRUE;<br>
}<br>
+<br>
+ drmmode_uevent_init(pScrn, &info->drmmode);<br>
}<br>
<br>
if (!drmmode_set_desired_modes(pScrn, &info->drmmode, pScreen->isGPU))<br>
return FALSE;<br>
<br>
- drmmode_uevent_init(pScrn, &info->drmmode);<br>
-<br>
if (info->r600_shadow_fb) {<br>
pixmap = pScreen->GetScreenPixmap(pScreen);<br>
<br>
-- <br>
2.20.1<br>
<br>
_______________________________________________<br>
amd-gfx mailing list<br>
amd-gfx@lists.freedesktop.org<br>
<a href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a><br>
</div>
</span></font></div>
</body>
</html>