From: Jason Ekstrand Date: Tue, 13 Oct 2015 01:25:19 +0000 (-0700) Subject: anv: Declare/validate the correct API version X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e21ecb841c7a2c5653ec86922b4e08006645ae8d;p=mesa.git anv: Declare/validate the correct API version --- diff --git a/src/vulkan/anv_device.c b/src/vulkan/anv_device.c index 89cd184a98e..9625cc61252 100644 --- a/src/vulkan/anv_device.c +++ b/src/vulkan/anv_device.c @@ -145,6 +145,9 @@ VkResult anv_CreateInstance( assert(pCreateInfo->sType == VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO); + if (pCreateInfo->pAppInfo->apiVersion != VK_MAKE_VERSION(0, 170, 2)) + return vk_error(VK_ERROR_INCOMPATIBLE_DRIVER); + for (uint32_t i = 0; i < pCreateInfo->extensionCount; i++) { bool found = false; for (uint32_t j = 0; j < ARRAY_SIZE(global_extensions); j++) { @@ -441,7 +444,7 @@ VkResult anv_GetPhysicalDeviceProperties( }; *pProperties = (VkPhysicalDeviceProperties) { - .apiVersion = VK_MAKE_VERSION(0, 138, 1), + .apiVersion = VK_MAKE_VERSION(0, 170, 2), .driverVersion = 1, .vendorId = 0x8086, .deviceId = pdevice->chipset_id,