[Mesa-stable] [PATCH v2 2/4] anv: use cache uuid based on the build timestamp.

Emil Velikov emil.l.velikov at gmail.com
Wed Jun 22 20:14:40 UTC 2016


On 22 June 2016 at 21:02, Jason Ekstrand <jason at jlekstrand.net> wrote:

>> @@ -131,7 +131,14 @@ anv_entrypoints.c : anv_entrypoints_gen.py
>> $(vulkan_include_HEADERS)
>>         $(AM_V_GEN) cat $(vulkan_include_HEADERS) |\
>>         $(PYTHON2) $(srcdir)/anv_entrypoints_gen.py code > $@
>>
>> -BUILT_SOURCES = $(VULKAN_GENERATED_FILES)
>> +
>> +.PHONY: anv_timestamp.h
>> +
>> +anv_timestamp.h:
>> +       @echo "Updating anv_timestamp.h"
>> +       $(AM_V_GEN) echo "#define ANV_TIMESTAMP `date +%s`" > $@
>> +
>> +BUILT_SOURCES = $(VULKAN_GENERATED_FILES) anv_timestamp.h
>
>
> Should this really go in anv?  Timothy is going to need it for the shader
> cache for GL so it might be good to put it some place more generic.  Or
> Timothy can just move it when he needs it.
>
One could even copy the 4 lines. No need to watch out for which
folder/Makefile get opened first, adding extra includes etc.

> I don't care much either way.
>
> Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
>

Thanks
Emil


More information about the mesa-stable mailing list