summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Engestrom <eric.engestrom@intel.com>2019-08-03 01:38:26 +0100
committerEric Engestrom <eric.engestrom@intel.com>2019-08-22 16:08:09 +0100
commit6db1dfe347be2c71195aed06493fe4a392a0d2e5 (patch)
tree2121b78984074b76807045e54785fc9b79023c80
parent7f5ef97a07d4054efb96f0d644344644023af82c (diff)
swr: use LLVM version string instead of re-computing it
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
-rw-r--r--src/gallium/drivers/swr/swr_screen.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/swr/swr_screen.cpp b/src/gallium/drivers/swr/swr_screen.cpp
index 072563e4f08e..030b62a15ae8 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;
}