Out if interest how would you set the provider? Would it still be radeon or would it be this new name?<br><br><div class="gmail_quote"><div dir="ltr">On Thu, 24 Dec 2015, 1:40 a.m. Michel Dänzer <<a href="mailto:michel@daenzer.net">michel@daenzer.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Michel Dänzer <<a href="mailto:michel.daenzer@amd.com" target="_blank">michel.daenzer@amd.com</a>><br>
<br>
Instead of just "radeon", it's now e.g. "KAVERI @ pci:0000:00:01.0".<br>
<br>
Signed-off-by: Michel Dänzer <<a href="mailto:michel.daenzer@amd.com" target="_blank">michel.daenzer@amd.com</a>><br>
---<br>
src/drmmode_display.c | 13 ++++++++++++-<br>
1 file changed, 12 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/src/drmmode_display.c b/src/drmmode_display.c<br>
index fa46d56..9880ee3 100644<br>
--- a/src/drmmode_display.c<br>
+++ b/src/drmmode_display.c<br>
@@ -40,6 +40,10 @@<br>
#include "radeon_glamor.h"<br>
#include "radeon_reg.h"<br>
<br>
+#ifdef RADEON_PIXMAP_SHARING<br>
+#include <dri.h><br>
+#endif<br>
+<br>
#include "drmmode_display.h"<br>
<br>
/* DPMS */<br>
@@ -2070,6 +2074,9 @@ Bool drmmode_pre_init(ScrnInfoPtr pScrn, drmmode_ptr drmmode, int cpp)<br>
int i, num_dvi = 0, num_hdmi = 0;<br>
drmModeResPtr mode_res;<br>
unsigned int crtcs_needed = 0;<br>
+#ifdef RADEON_PIXMAP_SHARING<br>
+ char *bus_id_string, *provider_name;<br>
+#endif<br>
<br>
xf86CrtcConfigInit(pScrn, &drmmode_xf86crtc_config_funcs);<br>
<br>
@@ -2112,7 +2119,11 @@ Bool drmmode_pre_init(ScrnInfoPtr pScrn, drmmode_ptr drmmode, int cpp)<br>
drmmode_clones_init(pScrn, drmmode, mode_res);<br>
<br>
#ifdef RADEON_PIXMAP_SHARING<br>
- xf86ProviderSetup(pScrn, NULL, "radeon");<br>
+ bus_id_string = DRICreatePCIBusID(info->PciInfo);<br>
+ XNFasprintf(&provider_name, "%s @ %s", pScrn->chipset, bus_id_string);<br>
+ free(bus_id_string);<br>
+ xf86ProviderSetup(pScrn, NULL, provider_name);<br>
+ free(provider_name);<br>
#endif<br>
<br>
xf86InitialConfiguration(pScrn, TRUE);<br>
--<br>
2.6.2<br>
<br>
_______________________________________________<br>
xorg-driver-ati mailing list<br>
<a href="mailto:xorg-driver-ati@lists.x.org" target="_blank">xorg-driver-ati@lists.x.org</a><br>
<a href="http://lists.x.org/mailman/listinfo/xorg-driver-ati" rel="noreferrer" target="_blank">http://lists.x.org/mailman/listinfo/xorg-driver-ati</a><br>
</blockquote></div>