mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 08:30:10 +01:00
swr: include llvm version and vector width in renderer string
Uses llvmpipe's string formating. Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
This commit is contained in:
parent
b035d9cab5
commit
efc3ca64ba
1 changed files with 11 additions and 1 deletions
|
|
@ -35,6 +35,7 @@
|
|||
#include "util/u_inlines.h"
|
||||
#include "util/u_cpu_detect.h"
|
||||
#include "util/u_format_s3tc.h"
|
||||
#include "util/u_string.h"
|
||||
|
||||
#include "state_tracker/sw_winsys.h"
|
||||
|
||||
|
|
@ -67,7 +68,11 @@ extern "C" {
|
|||
static const char *
|
||||
swr_get_name(struct pipe_screen *screen)
|
||||
{
|
||||
return "SWR";
|
||||
static char buf[100];
|
||||
util_snprintf(buf, sizeof(buf), "SWR (LLVM %u.%u, %u bits)",
|
||||
HAVE_LLVM >> 8, HAVE_LLVM & 0xff,
|
||||
lp_native_vector_width );
|
||||
return buf;
|
||||
}
|
||||
|
||||
static const char *
|
||||
|
|
@ -940,6 +945,11 @@ swr_create_screen_internal(struct sw_winsys *winsys)
|
|||
g_GlobalKnobs.MAX_PRIMS_PER_DRAW.Value(49152);
|
||||
}
|
||||
|
||||
if (!lp_build_init()) {
|
||||
FREE(screen);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
screen->winsys = winsys;
|
||||
screen->base.get_name = swr_get_name;
|
||||
screen->base.get_vendor = swr_get_vendor;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue