anv: Parse VkPhysicalDeviceFeatures2 in CreateDevice
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 13 Feb 2020 20:46:25 +0000 (14:46 -0600)
committerMarge Bot <eric+marge@anholt.net>
Sat, 7 Mar 2020 04:51:28 +0000 (04:51 +0000)
commit35ca2ad22e20ad3bc3301ee1e9157b8c351d959e
treeed0c2503851ac7c035137490d4f6694625815a37
parent0e4c001951a3c07d7ea4ddcd7edda69c20aa49ba
anv: Parse VkPhysicalDeviceFeatures2 in CreateDevice

The client may enable robustBufferAccess2 via either
pCreateInfo->pEnabledFeatures or via a chained-in
VkPhysicalDeviceFeatures2 struct.  We need to parse both.

Fixes: 022e5c7e5a5 "anv: Implement VK_KHR_get_physical_device_properties2"
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3777>
src/intel/vulkan/anv_device.c