anv: Use a pNext loop in AllocateMemory
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 26 Jun 2019 23:02:19 +0000 (18:02 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Thu, 5 Dec 2019 16:59:10 +0000 (10:59 -0600)
commit4428cd9127d9681e5e8250b847ef524841a46046
tree5f853fced1f9a30b3c36eddf1736552745e4eb58
parenta8e59b37081f169a83918de149dab7c31812577c
anv: Use a pNext loop in AllocateMemory

This function has a lot of possible extensions and some of them we can
easily handle on-the-fly so it's easier to just have a loop than to find
each structure manually.

Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_device.c