From: Eric Engestrom Date: Sat, 3 Aug 2019 00:38:26 +0000 (+0100) Subject: swr: use LLVM version string instead of re-computing it X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6db1dfe347be2c71195aed06493fe4a392a0d2e5;p=mesa.git swr: use LLVM version string instead of re-computing it Signed-off-by: Eric Engestrom Reviewed-by: Bas Nieuwenhuizen --- diff --git a/src/gallium/drivers/swr/swr_screen.cpp b/src/gallium/drivers/swr/swr_screen.cpp index 072563e4f08..030b62a15ae 100644 --- a/src/gallium/drivers/swr/swr_screen.cpp +++ b/src/gallium/drivers/swr/swr_screen.cpp @@ -69,8 +69,7 @@ static const char * swr_get_name(struct pipe_screen *screen) { static char buf[100]; - snprintf(buf, sizeof(buf), "SWR (LLVM %u.%u, %u bits)", - HAVE_LLVM >> 8, HAVE_LLVM & 0xff, + snprintf(buf, sizeof(buf), "SWR (LLVM " MESA_LLVM_VERSION_STRING ", %u bits)", lp_native_vector_width); return buf; }