ac0fbf9
From a499fd73461257f284bd3194f9198dc484acd373 Mon Sep 17 00:00:00 2001
ac0fbf9
From: Adam Jackson <ajax@redhat.com>
ac0fbf9
Date: Thu, 4 Apr 2013 17:16:22 -0400
ac0fbf9
Subject: [PATCH] llvmpipe: Work without sse2 if llvm is new enough
ac0fbf9
ac0fbf9
At least on llvm 3.2 this appears to work fine.  Tested on an Athlon XP
ac0fbf9
2600+, which has sse and 3dnow but not sse2.
ac0fbf9
ac0fbf9
Signed-off-by: Adam Jackson <ajax@redhat.com>
ac0fbf9
---
ac0fbf9
 src/gallium/drivers/llvmpipe/lp_screen.c | 5 +++--
ac0fbf9
 1 file changed, 3 insertions(+), 2 deletions(-)
ac0fbf9
ac0fbf9
diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c
ac0fbf9
index 6700887..ebcf680 100644
ac0fbf9
--- a/src/gallium/drivers/llvmpipe/lp_screen.c
ac0fbf9
+++ b/src/gallium/drivers/llvmpipe/lp_screen.c
ac0fbf9
@@ -485,9 +485,10 @@ llvmpipe_create_screen(struct sw_winsys *winsys)
ac0fbf9
 {
ac0fbf9
    struct llvmpipe_screen *screen;
ac0fbf9
 
ac0fbf9
-#ifdef PIPE_ARCH_X86
ac0fbf9
-   /* require SSE2 due to LLVM PR6960. */
ac0fbf9
    util_cpu_detect();
ac0fbf9
+
ac0fbf9
+#if defined(PIPE_ARCH_X86) && HAVE_LLVM < 0x0302
ac0fbf9
+   /* require SSE2 due to LLVM PR6960. */
ac0fbf9
    if (!util_cpu_caps.has_sse2)
ac0fbf9
        return NULL;
ac0fbf9
 #endif
ac0fbf9
-- 
ac0fbf9
1.8.2
ac0fbf9