Mesa (master): draw: allow LLVM use on non-SSE2 X86 cpus
Emil Velikov
evelikov at kemper.freedesktop.org
Sat Nov 22 04:31:11 UTC 2014
Module: Mesa
Branch: master
Commit: 25b00f4617973243707f14ea72bb7f501a3190c9
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=25b00f4617973243707f14ea72bb7f501a3190c9
Author: David Heidelberg <david at ixit.cz>
Date: Sat Nov 22 04:29:00 2014 +0000
draw: allow LLVM use on non-SSE2 X86 cpus
This patch remove workaround related to LLVM < 3.2 bug.
Original bug has been closed as fixed in 2011.
At this moment gallium requires LLVM 3.3 (2013).
LLVM has been tested without SSE2 support in commit
ca70de9bd20bc4a11b2d2d368e0cc1f49527a947 and removed after requiring
LLVM 3.3 in commit 013ff2fae13da41c2f5619c4698b0a7b5aa6a06d
Original LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=6960
Signed-off-by: David Heidelberg <david at ixit.cz>
Reviewed-by: Roland Scheidegger <sroland at vmware.com>
---
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 f46f8b4..90531d3 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
More information about the mesa-commit
mailing list