[PATCH 2/2] Build RandR 1.4 provider name from chipset name and bus ID
Mike Lothian
mike at fireburn.co.uk
Thu Dec 24 16:50:33 PST 2015
Out if interest how would you set the provider? Would it still be radeon or
would it be this new name?
On Thu, 24 Dec 2015, 1:40 a.m. Michel Dänzer <michel at daenzer.net> wrote:
> From: Michel Dänzer <michel.daenzer at amd.com>
>
> Instead of just "radeon", it's now e.g. "KAVERI @ pci:0000:00:01.0".
>
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
> ---
> src/drmmode_display.c | 13 ++++++++++++-
> 1 file changed, 12 insertions(+), 1 deletion(-)
>
> diff --git a/src/drmmode_display.c b/src/drmmode_display.c
> index fa46d56..9880ee3 100644
> --- a/src/drmmode_display.c
> +++ b/src/drmmode_display.c
> @@ -40,6 +40,10 @@
> #include "radeon_glamor.h"
> #include "radeon_reg.h"
>
> +#ifdef RADEON_PIXMAP_SHARING
> +#include <dri.h>
> +#endif
> +
> #include "drmmode_display.h"
>
> /* DPMS */
> @@ -2070,6 +2074,9 @@ Bool drmmode_pre_init(ScrnInfoPtr pScrn, drmmode_ptr
> drmmode, int cpp)
> int i, num_dvi = 0, num_hdmi = 0;
> drmModeResPtr mode_res;
> unsigned int crtcs_needed = 0;
> +#ifdef RADEON_PIXMAP_SHARING
> + char *bus_id_string, *provider_name;
> +#endif
>
> xf86CrtcConfigInit(pScrn, &drmmode_xf86crtc_config_funcs);
>
> @@ -2112,7 +2119,11 @@ Bool drmmode_pre_init(ScrnInfoPtr pScrn,
> drmmode_ptr drmmode, int cpp)
> drmmode_clones_init(pScrn, drmmode, mode_res);
>
> #ifdef RADEON_PIXMAP_SHARING
> - xf86ProviderSetup(pScrn, NULL, "radeon");
> + bus_id_string = DRICreatePCIBusID(info->PciInfo);
> + XNFasprintf(&provider_name, "%s @ %s", pScrn->chipset,
> bus_id_string);
> + free(bus_id_string);
> + xf86ProviderSetup(pScrn, NULL, provider_name);
> + free(provider_name);
> #endif
>
> xf86InitialConfiguration(pScrn, TRUE);
> --
> 2.6.2
>
> _______________________________________________
> xorg-driver-ati mailing list
> xorg-driver-ati at lists.x.org
> http://lists.x.org/mailman/listinfo/xorg-driver-ati
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg-driver-ati/attachments/20151225/31a2120e/attachment.html>
More information about the xorg-driver-ati
mailing list