loader: Check if the kernel driver is i915 before loading iris
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 28 Jan 2020 01:21:03 +0000 (17:21 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 28 Jan 2020 23:35:09 +0000 (15:35 -0800)
commitbaf9327fa1b6cd1a75c5080a86f8fd12555e3d75
tree93cee00b568ead0f9f19cc32958ff1303a4f0382
parent2969012d03be1b0690eed6a855ffc57535c721eb
loader: Check if the kernel driver is i915 before loading iris

To prevent it from trying to load on say gma500 hardware.

Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3595>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3595>
src/loader/loader.c
src/loader/pci_id_driver_map.h