anv: Set driver version to Mesa version
authorAlex Smith <asmith@feralinteractive.com>
Tue, 6 Jun 2017 09:42:41 +0000 (10:42 +0100)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 6 Jun 2017 15:20:00 +0000 (08:20 -0700)
As already done by RADV.

v2: Move version calculation function to src/vulkan/util to share with
    RADV.

Signed-off-by: Alex Smith <asmith@feralinteractive.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_device.c

index 52e5d7b0252ae69fdce10249ede6bcadc7ef71b0..f5d97921d3d0507c36f94c084af1c37e06663b10 100644 (file)
@@ -883,7 +883,7 @@ void anv_GetPhysicalDeviceProperties(
 
    *pProperties = (VkPhysicalDeviceProperties) {
       .apiVersion = VK_MAKE_VERSION(1, 0, 42),
-      .driverVersion = 1,
+      .driverVersion = vk_get_driver_version(),
       .vendorID = 0x8086,
       .deviceID = pdevice->chipset_id,
       .deviceType = VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU,