radv: check driver name before calling amdgpu.
authorDave Airlie <airlied@redhat.com>
Tue, 11 Oct 2016 05:21:25 +0000 (15:21 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 11 Oct 2016 22:56:41 +0000 (08:56 +1000)
commitfc28f89157254ddf638e52ea20cdfe675ab4c382
tree5cc39f7e6ca5184be5d686bec946ca3b11aa9a3a
parent6215b476482fa3a76d3245d88ab127a7c060e115
radv: check driver name before calling amdgpu.

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

when run on a machine with i915 graphics as well as amdgpu.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_device.c