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)
commit59c1797d560bfd3172427128ef8455d416b1cdb0
treeb0f710440b95f461fcd51fb1d35a91d50e0e903f
parentdc6182fa3fea0de025f29591b9fd053fffe8bf8b
anv: Set driver version to Mesa version

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