summaryrefslogtreecommitdiffstats
path: root/0001-llvmpipe-Work-without-sse2-if-llvm-is-new-enough.patch
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2013-04-04 17:23:59 -0400
committerAdam Jackson <ajax@redhat.com>2013-04-04 17:23:59 -0400
commitac0fbf9e295ff9b8414633521528b4dbbf3ea757 (patch)
tree87511303f3efabf6295f3d6732a55067f120d6e1 /0001-llvmpipe-Work-without-sse2-if-llvm-is-new-enough.patch
parent5b216c73c93eb57eafddd6c30951a9ee48ca8f0c (diff)
downloadmesa-ac0fbf9e295ff9b8414633521528b4dbbf3ea757.tar.gz
mesa-ac0fbf9e295ff9b8414633521528b4dbbf3ea757.tar.xz
mesa-ac0fbf9e295ff9b8414633521528b4dbbf3ea757.zip
Enable llvmpipe even on non-SSE2 machines (#909473)
Diffstat (limited to '0001-llvmpipe-Work-without-sse2-if-llvm-is-new-enough.patch')
-rw-r--r--0001-llvmpipe-Work-without-sse2-if-llvm-is-new-enough.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/0001-llvmpipe-Work-without-sse2-if-llvm-is-new-enough.patch b/0001-llvmpipe-Work-without-sse2-if-llvm-is-new-enough.patch
new file mode 100644
index 0000000..dd7e11b
--- /dev/null
+++ b/0001-llvmpipe-Work-without-sse2-if-llvm-is-new-enough.patch
@@ -0,0 +1,33 @@
+From a499fd73461257f284bd3194f9198dc484acd373 Mon Sep 17 00:00:00 2001
+From: Adam Jackson <ajax@redhat.com>
+Date: Thu, 4 Apr 2013 17:16:22 -0400
+Subject: [PATCH] llvmpipe: Work without sse2 if llvm is new enough
+
+At least on llvm 3.2 this appears to work fine. Tested on an Athlon XP
+2600+, which has sse and 3dnow but not sse2.
+
+Signed-off-by: Adam Jackson <ajax@redhat.com>
+---
+ src/gallium/drivers/llvmpipe/lp_screen.c | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c
+index 6700887..ebcf680 100644
+--- a/src/gallium/drivers/llvmpipe/lp_screen.c
++++ b/src/gallium/drivers/llvmpipe/lp_screen.c
+@@ -485,9 +485,10 @@ llvmpipe_create_screen(struct sw_winsys *winsys)
+ {
+ struct llvmpipe_screen *screen;
+
+-#ifdef PIPE_ARCH_X86
+- /* require SSE2 due to LLVM PR6960. */
+ util_cpu_detect();
++
++#if defined(PIPE_ARCH_X86) && HAVE_LLVM < 0x0302
++ /* require SSE2 due to LLVM PR6960. */
+ if (!util_cpu_caps.has_sse2)
+ return NULL;
+ #endif
+--
+1.8.2
+