llvmpipe: use LLVM version string instead of re-computing it
authorEric Engestrom <eric.engestrom@intel.com>
Sat, 3 Aug 2019 00:38:20 +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/llvmpipe/lp_screen.c

index d03c04504332e81b75940cfa0023816e4e5cac52..52372da2f7d35d47f81fe13b9b3c11d56d2534b7 100644 (file)
@@ -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;
 }