summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_screen.c
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2012-09-06 10:29:04 +0100
committerJosé Fonseca <[email protected]>2012-09-06 16:35:25 +0100
commitedc0a00377c810889a589c6d7c5e13e75618648a (patch)
tree2d324794adf008c81bb2d487cf38e8fa09f0672e /src/gallium/drivers/llvmpipe/lp_screen.c
parent694617a5b4222aa1fb40e5e16addd7a3120de6a5 (diff)
llvmpipe: Make driver name more informative.
Such as "llvmpipe (LLVM 3.1, 128 bits)" or "llvmpipe (LLVM 3.1, 256 bits)" when leveraging AVX 8-wide registers. Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_screen.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_screen.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c
index 5f19a4753ba..a9f973cf74c 100644
--- a/src/gallium/drivers/llvmpipe/lp_screen.c
+++ b/src/gallium/drivers/llvmpipe/lp_screen.c
@@ -35,6 +35,7 @@
#include "pipe/p_defines.h"
#include "pipe/p_screen.h"
#include "draw/draw_context.h"
+#include "gallivm/lp_bld_type.h"
#include "lp_texture.h"
#include "lp_fence.h"
@@ -95,7 +96,9 @@ static const char *
llvmpipe_get_name(struct pipe_screen *screen)
{
static char buf[100];
- util_snprintf(buf, sizeof(buf), "llvmpipe (LLVM 0x%x)", HAVE_LLVM);
+ util_snprintf(buf, sizeof(buf), "llvmpipe (LLVM %u.%u, %u bits)",
+ HAVE_LLVM >> 8, HAVE_LLVM & 0xff,
+ lp_native_vector_width );
return buf;
}