summaryrefslogtreecommitdiff
path: root/lib/mesa
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2020-06-18 11:45:14 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2020-06-18 11:45:14 +0000
commit3aa23998d9d4cae8f276cd0ab7a0834edc887fd0 (patch)
tree299fa369c35b55fb9168ba464e67d6558e3cf10c /lib/mesa
parent8775756c95f60ded087af7d6ee1af429f19c9eaf (diff)
llvmpipe: use LLVM version string instead of re-computing it
From Eric Engestrom 7f5ef97a07d4054efb96f0d644344644023af82c in Mesa git fixes llvmpipe renderer string showing "LLVM 16.0" with LLVM 10
Diffstat (limited to 'lib/mesa')
-rw-r--r--lib/mesa/src/gallium/drivers/llvmpipe/lp_screen.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/mesa/src/gallium/drivers/llvmpipe/lp_screen.c b/lib/mesa/src/gallium/drivers/llvmpipe/lp_screen.c
index d03c04504..52372da2f 100644
--- a/lib/mesa/src/gallium/drivers/llvmpipe/lp_screen.c
+++ b/lib/mesa/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;
}