[Mesa-dev] [PATCH 3/6] winsys/amdgpu: use drmGetDevice[s]2 API

Michel Dänzer michel at daenzer.net
Mon Dec 5 09:19:33 UTC 2016


On 03/12/16 01:31 AM, Emil Velikov wrote:
> From: Emil Velikov <emil.velikov at collabora.com>
> 
> Analogous to previous commit
> 
> Cc: Michel Dänzer <michel.daenzer at amd.com>
> Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
> ---
>  src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c b/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c
> index 98d72bd..d3df66f 100644
> --- a/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c
> +++ b/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c
> @@ -108,9 +108,9 @@ static bool do_winsys_init(struct amdgpu_winsys *ws, int fd)
>     drmDevicePtr devinfo;
>  
>     /* Get PCI info. */
> -   r = drmGetDevice(fd, &devinfo);
> +   r = drmGetDevice2(fd, 0, &devinfo);
>     if (r) {
> -      fprintf(stderr, "amdgpu: drmGetDevice failed.\n");
> +      fprintf(stderr, "amdgpu: drmGetDevice2 failed.\n");
>        goto fail;
>     }
>     ws->info.pci_domain = devinfo->businfo.pci->domain;
> 

This patch and patch 4 are related to drmGetDevice2 only, not
drmGetDevices2. Please change the shortlog accordingly. With that fixed,
patches 1-4 are

Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer


More information about the mesa-dev mailing list