[Mesa-dev] [PATCH 13/18] GROSS HACK: anv: add dummy MESA_GIT_SHA1 define

Emil Velikov emil.l.velikov at gmail.com
Fri May 27 14:35:40 UTC 2016


From: Emil Velikov <emil.velikov at collabora.com>

Otherwise we'll error out if build from a release tarball.

Cc: Jason Ekstrand <jason.ekstrand at intel.com>
Cc: Kristian Høgsberg Kristensen <krh at bitplanet.net>
---
This patch isn't going to fly obviously but is just enough to get things
building ;-)

Any input on proper fix is highly appreciated.
---
 src/intel/vulkan/anv_device.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index eb40e2d..98eda2b 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -416,6 +416,9 @@ void
 anv_device_get_cache_uuid(void *uuid)
 {
    memset(uuid, 0, VK_UUID_SIZE);
+#ifndef MESA_GIT_SHA1
+#define MESA_GIT_SHA1 "git-unknown"
+#endif
    snprintf(uuid, VK_UUID_SIZE, "anv-%s", MESA_GIT_SHA1 + 4);
 }
 
-- 
2.8.2



More information about the mesa-dev mailing list