vulkan: add common implementation of vkGetPhysicalDeviceFeatures2

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22333>
This commit is contained in:
Constantine Shablya 2023-04-06 16:39:23 +03:00 committed by Marge Bot
parent c93b179d76
commit cc02214304
2 changed files with 12 additions and 0 deletions

View file

@ -113,6 +113,15 @@ vk_common_GetPhysicalDeviceFeatures(VkPhysicalDevice physicalDevice,
*pFeatures = features2.features;
}
VKAPI_ATTR void VKAPI_CALL
vk_common_GetPhysicalDeviceFeatures2(VkPhysicalDevice physicalDevice,
VkPhysicalDeviceFeatures2 *pFeatures)
{
VK_FROM_HANDLE(vk_physical_device, pdevice, physicalDevice);
vk_get_physical_device_features(pFeatures, &pdevice->supported_features);
}
VKAPI_ATTR void VKAPI_CALL
vk_common_GetPhysicalDeviceProperties(VkPhysicalDevice physicalDevice,
VkPhysicalDeviceProperties *pProperties)

View file

@ -26,6 +26,7 @@
#include "vk_dispatch_table.h"
#include "vk_extensions.h"
#include "vk_object.h"
#include "vk_physical_device_features.h"
#include "util/list.h"
@ -49,6 +50,8 @@ struct vk_physical_device {
/** Instance which is the parent of this physical device */
struct vk_instance *instance;
struct vk_features supported_features;
/** Table of all supported device extensions
*
* This table is initialized from the `supported_extensions` parameter