gallium/radeon: fix r600g build if LLVM is disabled
authorMarek Olšák <marek.olsak@amd.com>
Sat, 8 Aug 2015 12:03:54 +0000 (14:03 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 11 Aug 2015 12:46:54 +0000 (14:46 +0200)
MESA_LLVM_VERSION_PATCH is undefined.

Reviewed-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
Tested-by: Benjamin Bellec <b.bellec@gmail.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeon/r600_pipe_common.c

index c9b89295e83b9a90bad572567ba0a3c56e6e30eb..9e68e5f80ac3ec0812438e3a3459e73645f5a2c6 100644 (file)
@@ -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)",