Mesa (floating): llvmpipe: don't try to use SSE3 swizzles, fixes x86-64 build

Luca Barbieri lb at kemper.freedesktop.org
Tue Aug 31 01:49:27 UTC 2010


Module: Mesa
Branch: floating
Commit: 5d5415b6fa2385179086847da682105fa6261d4f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5d5415b6fa2385179086847da682105fa6261d4f

Author: Luca Barbieri <luca at luca-barbieri.com>
Date:   Tue Aug 31 03:48:15 2010 +0200

llvmpipe: don't try to use SSE3 swizzles, fixes x86-64 build

There is no floating point version of the swizzles, so it wouldn't
build on x86-64, or x86 builds with -msse3.

---

 src/gallium/drivers/llvmpipe/lp_tile_soa.py |   18 ++----------------
 1 files changed, 2 insertions(+), 16 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_tile_soa.py b/src/gallium/drivers/llvmpipe/lp_tile_soa.py
index 63567c6..eb189b0 100644
--- a/src/gallium/drivers/llvmpipe/lp_tile_soa.py
+++ b/src/gallium/drivers/llvmpipe/lp_tile_soa.py
@@ -477,14 +477,7 @@ def generate_swizzle(formats, dst_channel, dst_native_type, dst_suffix):
         if is_format_supported(format):
             print '   case %s:' % format.name
             func_name = 'lp_tile_%s_swizzle_%s' % (format.short_name(), dst_suffix)
-            if format.name == 'PIPE_FORMAT_B8G8R8A8_UNORM':
-                print '#ifdef PIPE_ARCH_SSE'
-                print '      func = util_cpu_caps.has_ssse3 ? %s_ssse3 : %s;' % (func_name, func_name)
-                print '#else'
-                print '      func = %s;' % (func_name,)
-                print '#endif'
-            else:
-                print '      func = %s;' % (func_name,)
+            print '      func = %s;' % (func_name,)
             print '      break;'
     print '   default:'
     print '      debug_printf("%s: unsupported format %s\\n", __FUNCTION__, util_format_name(format));'
@@ -515,14 +508,7 @@ def generate_unswizzle(formats, src_channel, src_native_type, src_suffix):
         if is_format_supported(format):
             print '   case %s:' % format.name
             func_name = 'lp_tile_%s_unswizzle_%s' % (format.short_name(), src_suffix)
-            if format.name == 'PIPE_FORMAT_B8G8R8A8_UNORM':
-                print '#ifdef PIPE_ARCH_SSE'
-                print '      func = util_cpu_caps.has_ssse3 ? %s_ssse3 : %s;' % (func_name, func_name)
-                print '#else'
-                print '      func = %s;' % (func_name,)
-                print '#endif'
-            else:
-                print '      func = %s;' % (func_name,)
+            print '      func = %s;' % (func_name,)
             print '      break;'
     print '   default:'
     print '      debug_printf("%s: unsupported format %s\\n", __FUNCTION__, util_format_name(format));'




More information about the mesa-commit mailing list