swr: use LLVM version string instead of re-computing it
authorEric Engestrom <eric.engestrom@intel.com>
Sat, 3 Aug 2019 00:38:26 +0000 (01:38 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Thu, 22 Aug 2019 15:08:09 +0000 (16:08 +0100)
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/gallium/drivers/swr/swr_screen.cpp

index 072563e4f08e57f1ba7b74a370363f04ea55d3d0..030b62a15ae8c88c8d0968336f683e0e150fbe40 100644 (file)
@@ -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;
 }