llvmpipe: include LLVM version number in name string
authorBrian Paul <brianp@vmware.com>
Tue, 19 Jul 2011 14:42:46 +0000 (08:42 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 19 Jul 2011 14:42:46 +0000 (08:42 -0600)
src/gallium/drivers/llvmpipe/lp_screen.c

index 4b2ae1436ea6f55819b0a9ef708fa090414fbbb4..e3f8c19679fa8828f49e884120e0aa63d2f8a5a6 100644 (file)
@@ -93,7 +93,9 @@ llvmpipe_get_vendor(struct pipe_screen *screen)
 static const char *
 llvmpipe_get_name(struct pipe_screen *screen)
 {
-   return "llvmpipe";
+   static char buf[100];
+   snprintf(buf, sizeof(buf), "llvmpipe (LLVM 0x%x)", HAVE_LLVM);
+   return buf;
 }