SHA1 is now used in all builds when HAVE_SHA1 is defined. Adjust src to
do the same thing, rather than predicating on shader cache.
Fixes: 04e201d0c02 ("mesa: change 'SHADER_SUBST' facility to work with env variables")
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Dave Airlie <airlied@gmail.com>
$(MESA_UTIL_FILES) \
$(MESA_UTIL_GENERATED_FILES)
-if ENABLE_SHADER_CACHE
-libmesautil_la_SOURCES += $(MESA_UTIL_SHADER_CACHE_FILES)
-
libmesautil_la_LIBADD = $(SHA1_LIBS)
-endif
roundeven_test_LDADD = -lm
-MESA_UTIL_SHADER_CACHE_FILES := \
- mesa-sha1.c \
- mesa-sha1.h
-
MESA_UTIL_FILES := \
bitset.h \
format_srgb.h \
hash_table.h \
list.h \
macros.h \
+ mesa-sha1.c \
+ mesa-sha1.h \
ralloc.c \
ralloc.h \
register_allocate.c \
#endif
+#ifdef HAVE_SHA1
+
void
_mesa_sha1_compute(const void *data, size_t size, unsigned char result[20])
{
return buf;
}
+
+#endif