[Mesa-dev] [PATCH 4/8] softpipe: let .get_name() append LLVM if built with LLVM

Emil Velikov emil.l.velikov at gmail.com
Thu Jan 26 18:27:04 UTC 2017


From: Emil Velikov <emil.velikov at collabora.com>

Provides quick and direct feedback to the user/developer.

Cc: Roland Scheidegger <sroland at vmware.com>
Cc: Jose Fonseca <jfonseca at vmware.com>
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
We can move all the ifdef to a helper, if people prefer.
---
 src/gallium/drivers/softpipe/sp_screen.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gallium/drivers/softpipe/sp_screen.c b/src/gallium/drivers/softpipe/sp_screen.c
index 1a58eb9d99..305f7bff14 100644
--- a/src/gallium/drivers/softpipe/sp_screen.c
+++ b/src/gallium/drivers/softpipe/sp_screen.c
@@ -57,7 +57,11 @@ softpipe_get_vendor(struct pipe_screen *screen)
 static const char *
 softpipe_get_name(struct pipe_screen *screen)
 {
+#ifdef HAVE_LLVM
+   return "softpipe LLVM";
+#else
    return "softpipe";
+#endif
 }
 
 
-- 
2.11.0



More information about the mesa-dev mailing list