<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, May 27, 2016 at 7:35 AM, Emil Velikov <span dir="ltr"><<a href="mailto:emil.l.velikov@gmail.com" target="_blank">emil.l.velikov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Emil Velikov <<a href="mailto:emil.velikov@collabora.com">emil.velikov@collabora.com</a>><br>
<br>
Otherwise we'll error out if build from a release tarball.<br>
<br>
Cc: Jason Ekstrand <<a href="mailto:jason.ekstrand@intel.com">jason.ekstrand@intel.com</a>><br>
Cc: Kristian Høgsberg Kristensen <<a href="mailto:krh@bitplanet.net">krh@bitplanet.net</a>><br>
---<br>
This patch isn't going to fly obviously but is just enough to get things<br>
building ;-)<br></blockquote><div><br></div><div>You're right. It won't. :-)<br><br></div><div>I think what we need is to ship something that provides MESA_GIT_SHA1 in the tarball. The purpose of this is to ensure that any shader caches get 100% invalidated if the mesa version changes at all. When Timothy lands his shader cache stuff, we'll need this in the GL driver as well so we might as well find a solution now.<br><br></div><div>All of the other (not this one) anv/isl patches in the series are<br><br></div><div>Reviewed-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Any input on proper fix is highly appreciated.<br>
---<br>
src/intel/vulkan/anv_device.c | 3 +++<br>
1 file changed, 3 insertions(+)<br>
<br>
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c<br>
index eb40e2d..98eda2b 100644<br>
--- a/src/intel/vulkan/anv_device.c<br>
+++ b/src/intel/vulkan/anv_device.c<br>
@@ -416,6 +416,9 @@ void<br>
anv_device_get_cache_uuid(void *uuid)<br>
{<br>
memset(uuid, 0, VK_UUID_SIZE);<br>
+#ifndef MESA_GIT_SHA1<br>
+#define MESA_GIT_SHA1 "git-unknown"<br>
+#endif<br>
snprintf(uuid, VK_UUID_SIZE, "anv-%s", MESA_GIT_SHA1 + 4);<br>
}<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
2.8.2<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div></div>