From 6db1dfe347be2c71195aed06493fe4a392a0d2e5 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Sat, 3 Aug 2019 01:38:26 +0100 Subject: [PATCH] swr: use LLVM version string instead of re-computing it Signed-off-by: Eric Engestrom Reviewed-by: Bas Nieuwenhuizen --- src/gallium/drivers/swr/swr_screen.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } -- 2.30.2