aboutsummaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_device.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-10-12 18:25:19 -0700
committerJason Ekstrand <[email protected]>2015-10-12 18:25:19 -0700
commite21ecb841c7a2c5653ec86922b4e08006645ae8d (patch)
tree50b57a8b163715922643e933b197430216247b73 /src/vulkan/anv_device.c
parent0689a0f0f36dc69fec91a0248f1f219b2e600c98 (diff)
anv: Declare/validate the correct API version
Diffstat (limited to 'src/vulkan/anv_device.c')
-rw-r--r--src/vulkan/anv_device.c5
1 files changed, 4 insertions, 1 deletions
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,