From: Eric Engestrom Date: Sat, 3 Aug 2019 00:38:20 +0000 (+0100) Subject: llvmpipe: use LLVM version string instead of re-computing it X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7f5ef97a07d4054efb96f0d644344644023af82c;p=mesa.git llvmpipe: use LLVM version string instead of re-computing it Signed-off-by: Eric Engestrom Reviewed-by: Bas Nieuwenhuizen --- 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; }