On 11 October 2016 at 06:22, Dave Airlie <[email protected]> wrote:
> From: Dave Airlie <[email protected]>
>
> This checks the kernel driver name is amdgpu before calling
> libdrm_amdgpu.
>
> This avoids the following error:
> amdgpu_device_initialize: DRM version is 1.6.0 but this driver is only 
> compatible with 3.x.x
>
Yet the functionality is the same, isn't it ?

Regardless, at a follow-up you can use the drm*Device API rather than
manually probing each node.
You can filter the list of devices by vendor/other.

> +       version = drmGetVersion(fd);
> +       if (!version)

Missing close(fd); ?

-Emil
_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to