diff options
author | Marek Olšák <[email protected]> | 2018-03-29 10:40:30 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-04-13 12:31:04 -0400 |
commit | 307bccc6df20e02adb0276d142bb71fdc9928500 (patch) | |
tree | fb6471b5bda10fd7685c44982d26d79203bee92d /src/gallium/drivers/radeonsi/si_get.c | |
parent | a3b785be4d095ca4d37b7d6cfe6f680352ba3089 (diff) |
radeonsi: simplify generating the renderer string
HAVE_LLVM > 0 is a tautology.
Reviewed-by: Samuel Pitoiset <[email protected]>
Tested-by: Dieter Nützel <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_get.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_get.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/src/gallium/drivers/radeonsi/si_get.c b/src/gallium/drivers/radeonsi/si_get.c index c8aacfe1824..fb1c6eca135 100644 --- a/src/gallium/drivers/radeonsi/si_get.c +++ b/src/gallium/drivers/radeonsi/si_get.c @@ -953,32 +953,29 @@ static struct disk_cache *si_get_disk_shader_cache(struct pipe_screen *pscreen) static void si_init_renderer_string(struct si_screen *sscreen) { struct radeon_winsys *ws = sscreen->ws; - char family_name[32] = {}, llvm_string[32] = {}, kernel_version[128] = {}; + char family_name[32] = {}, kernel_version[128] = {}; struct utsname uname_data; const char *chip_name = si_get_marketing_name(ws); if (chip_name) - snprintf(family_name, sizeof(family_name), "%s / ", + snprintf(family_name, sizeof(family_name), "%s, ", si_get_family_name(sscreen) + 4); else chip_name = si_get_family_name(sscreen); if (uname(&uname_data) == 0) snprintf(kernel_version, sizeof(kernel_version), - " / %s", uname_data.release); - - if (HAVE_LLVM > 0) { - snprintf(llvm_string, sizeof(llvm_string), - ", LLVM %i.%i.%i", (HAVE_LLVM >> 8) & 0xff, - HAVE_LLVM & 0xff, MESA_LLVM_VERSION_PATCH); - } + ", %s", uname_data.release); snprintf(sscreen->renderer_string, sizeof(sscreen->renderer_string), - "%s (%sDRM %i.%i.%i%s%s)", + "%s (%sDRM %i.%i.%i%s, LLVM %i.%i.%i)", chip_name, family_name, sscreen->info.drm_major, sscreen->info.drm_minor, sscreen->info.drm_patchlevel, - kernel_version, llvm_string); + kernel_version, + (HAVE_LLVM >> 8) & 0xff, + HAVE_LLVM & 0xff, + MESA_LLVM_VERSION_PATCH); } void si_init_screen_get_functions(struct si_screen *sscreen) |