This patch remove workaround related to LLVM 2.7 bug.
Original bug has been closed as fixed in 2011. At this moment gallium requires LLVM 3.3 (2013). Original LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=6960 Signed-off-by: David Heidelberg <da...@ixit.cz> --- src/gallium/auxiliary/draw/draw_context.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-)
diff --git a/src/gallium/auxiliary/draw/draw_context.c b/src/gallium/auxiliary/draw/draw_context.c index b0f4ca2..37b6c5d 100644 --- a/src/gallium/auxiliary/draw/draw_context.c +++ b/src/gallium/auxiliary/draw/draw_context.c @@ -53,20 +53,7 @@ boolean draw_get_option_use_llvm(void) { - static boolean first = TRUE; - static boolean value; - if (first) { - first = FALSE; - value = debug_get_bool_option("DRAW_USE_LLVM", TRUE); - -#ifdef PIPE_ARCH_X86 - util_cpu_detect(); - /* require SSE2 due to LLVM PR6960. XXX Might be fixed by now? */ - if (!util_cpu_caps.has_sse2) - value = FALSE; -#endif - } - return value; + return debug_get_bool_option("DRAW_USE_LLVM", TRUE); } #else boolean
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev