layers: Capture device features from extension
authorJohn Zulauf <jzulauf@lunarg.com>
Thu, 19 Oct 2017 00:21:23 +0000 (18:21 -0600)
committerjzulauf-lunarg <32470354+jzulauf-lunarg@users.noreply.github.com>
Mon, 30 Oct 2017 20:26:07 +0000 (14:26 -0600)
commitd67dca051138146b29d94546cd7ab240c5a8a076
treefec38d11e45d45235e10d308d549ff2e52451253
parent4c73582f2c9313d02611db141eb1c9fd269537ce
layers: Capture device features from extension

When the VK_KHR_get_physical_device_properties2 is present, physical
device properties can be passed to VkCreate either in the
pEnabledFeatures member or VkDeviceCreateInfo or in a
VkPhysicalDeviceFeatures2KHR structure on the pNext chain.

Neither the parameter validation or core validation layers were
capturing device features from the pNext struct, causing false
parameter checking errors, when the default (all false) state was
used for later validations.

Change-Id: I187827443f09aafaa80588a78bc5b67595d0acda
layers/core_validation.cpp
layers/parameter_validation_utils.cpp