From: Timothy Arceri Date: Thu, 23 Feb 2017 02:35:03 +0000 (+1100) Subject: radeon: fix r600 builds when old version of llvm is present X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4711e5433662ceb80ba62ae949934c6019dc1b17;p=platform%2Fupstream%2Fmesa.git radeon: fix r600 builds when old version of llvm is present Reviewed-by: Edward O'Callaghan --- diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c b/src/gallium/drivers/radeon/r600_pipe_common.c index bae6d6f..9a514e3 100644 --- a/src/gallium/drivers/radeon/r600_pipe_common.c +++ b/src/gallium/drivers/radeon/r600_pipe_common.c @@ -43,7 +43,7 @@ #define HAVE_LLVM 0 #endif -#if HAVE_LLVM +#if HAVE_LLVM >= 0x0306 #include #endif @@ -793,7 +793,7 @@ static void r600_disk_cache_create(struct r600_common_screen *rscreen) if (rscreen->chip_class < SI) { res = asprintf(×tamp_str, "%u",mesa_timestamp); } -#if HAVE_LLVM +#if HAVE_LLVM >= 0x0306 else { uint32_t llvm_timestamp; if (disk_cache_get_function_timestamp(LLVMInitializeAMDGPUTargetInfo,