anv: Use library mtime for cache UUID.
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 24 Nov 2016 20:30:39 +0000 (20:30 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 28 Nov 2016 19:46:45 +0000 (19:46 +0000)
commit83548e12921b5724aa6c78c2b1efc9ff774fd7a2
treeb99c1a5ee2f941766e0742c6a2de00e14c3b1406
parentde138e9cede4b1996fac9256d894c80e7b48a6d7
anv: Use library mtime for cache UUID.

Inspired by a similar commit for radv.

Rather than recomputing the timestamp on each make invocation, just
fetch it at runtime.

Thus we no longer get the constant rebuild of anv_device.c and the
follow-up libvulkan_intel.so link, when nothing has changed.

I.e. using make && make install is a little bit faster.

v2: Use bool return type (Ken).

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/vulkan/anv_device.c