diff options
author | Adam Jackson <[email protected]> | 2013-04-04 17:16:22 -0400 |
---|---|---|
committer | Adam Jackson <[email protected]> | 2013-04-05 11:32:53 -0400 |
commit | ca70de9bd20bc4a11b2d2d368e0cc1f49527a947 (patch) | |
tree | 81ca68de84bb3ca04a78b687478f75f5b957e4ba /src/gallium/drivers/llvmpipe/lp_screen.c | |
parent | b8998f976ee11e5bdffa78cd78278deeed2789c1 (diff) |
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.
Reviewed-by: Jose Fonseca <[email protected]>
Signed-off-by: Adam Jackson <[email protected]>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_screen.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_screen.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c index 6700887fb8f..ebcf6803596 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 |