From: Marek Olšák Date: Sat, 8 Aug 2015 12:03:54 +0000 (+0200) Subject: gallium/radeon: fix r600g build if LLVM is disabled X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b88f14702d9c02a34d517f95fe840527961631cd;p=mesa.git gallium/radeon: fix r600g build if LLVM is disabled MESA_LLVM_VERSION_PATCH is undefined. Reviewed-by: Edward O'Callaghan Tested-by: Benjamin Bellec Reviewed-by: Michel Dänzer --- diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c b/src/gallium/drivers/radeon/r600_pipe_common.c index c9b89295e83..9e68e5f80ac 100644 --- a/src/gallium/drivers/radeon/r600_pipe_common.c +++ b/src/gallium/drivers/radeon/r600_pipe_common.c @@ -882,10 +882,11 @@ bool r600_common_screen_init(struct r600_common_screen *rscreen, ws->query_info(ws, &rscreen->info); - if (HAVE_LLVM) - snprintf(llvm_string, sizeof(llvm_string), - ", LLVM %i.%i.%i", (HAVE_LLVM >> 8) & 0xff, - HAVE_LLVM & 0xff, MESA_LLVM_VERSION_PATCH); +#if HAVE_LLVM + snprintf(llvm_string, sizeof(llvm_string), + ", LLVM %i.%i.%i", (HAVE_LLVM >> 8) & 0xff, + HAVE_LLVM & 0xff, MESA_LLVM_VERSION_PATCH); +#endif snprintf(rscreen->renderer_string, sizeof(rscreen->renderer_string), "%s (DRM %i.%i.%i%s)",