vk: only set MemoryReportFeatures if it exists in the struct chain

vkGetPhysicalDeviceProperties2() should only sets the
VkPhysicalDeviceDeviceMemoryReportFeaturesEXT struct if
it exists in the pProperties struct chain, otherwise it
violates the Vulkan specs and could cause a memory leak.

Bug: 189960236
Test: com.google.android.graphics.gts.VulkanTest#checkVulkanDeviceMemoryReportSupport
Change-Id: Icde88dfd7eab73b88513a1493c942119a6f064fc
2 files changed