From e21ecb841c7a2c5653ec86922b4e08006645ae8d Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 12 Oct 2015 18:25:19 -0700 Subject: [PATCH] anv: Declare/validate the correct API version --- src/vulkan/anv_device.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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, -- 2.30.2