anv: Allow enumerating multiple physical devices
authorJason Ekstrand <jason@jlekstrand.net>
Sat, 18 Jan 2020 05:52:50 +0000 (23:52 -0600)
committerMarge Bot <eric+marge@anholt.net>
Mon, 20 Jan 2020 22:08:52 +0000 (22:08 +0000)
commit34c8621c3b372f8cd2ae2a684ac21460129d5bfb
tree30a4573cab5d04f52e061715f9cb0cee6efcef12
parente963e151d83072e97ddb1cf7b729bc404f7737e8
anv: Allow enumerating multiple physical devices

Instead of having a single physical device in anv_instance, have a
linked list of them.  What we have now works today because we our GPUs
are build into the CPU and so you're guaranteed to only ever have one of
them.  One day, that will change and we want ANV to be ready.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3461>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3461>
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_private.h