From 7f5ef97a07d4054efb96f0d644344644023af82c Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Sat, 3 Aug 2019 01:38:20 +0100 Subject: [PATCH] llvmpipe: use LLVM version string instead of re-computing it Signed-off-by: Eric Engestrom Reviewed-by: Bas Nieuwenhuizen --- src/gallium/drivers/llvmpipe/lp_screen.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c index d03c0450433..52372da2f7d 100644 --- a/src/gallium/drivers/llvmpipe/lp_screen.c +++ b/src/gallium/drivers/llvmpipe/lp_screen.c @@ -97,8 +97,7 @@ static const char * llvmpipe_get_name(struct pipe_screen *screen) { static char buf[100]; - snprintf(buf, sizeof(buf), "llvmpipe (LLVM %u.%u, %u bits)", - HAVE_LLVM >> 8, HAVE_LLVM & 0xff, + snprintf(buf, sizeof(buf), "llvmpipe (LLVM " MESA_LLVM_VERSION_STRING ", %u bits)", lp_native_vector_width ); return buf; } -- 2.30.2