diff options
author | Chris Li <[email protected]> | 2010-07-14 14:19:11 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2010-07-14 14:38:02 +0100 |
commit | bed78862d4db044a87d6c3808548abd6df95dd7d (patch) | |
tree | c59f9ce51c16d2769bb4dca25b38c8668d748cd3 /src/gallium/drivers/llvmpipe/SConscript | |
parent | c6c62164c369eefe1cac06190a87050977c376c1 (diff) |
llvmpipe: Addi ssse3 swizzling for B8G8R8A8_UNORM.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/SConscript')
-rw-r--r-- | src/gallium/drivers/llvmpipe/SConscript | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/SConscript b/src/gallium/drivers/llvmpipe/SConscript index 543d42dadd2..548423cb474 100644 --- a/src/gallium/drivers/llvmpipe/SConscript +++ b/src/gallium/drivers/llvmpipe/SConscript @@ -23,6 +23,14 @@ env.Depends('lp_tile_soa.c', [ '#src/gallium/auxiliary/util/u_format_pack.py', ]) + +# Only enable SSSE3 for lp_tile_soa_sse3.c +ssse3_env = env.Clone() +if env['gcc'] and env['machine'] in ('x86', 'x86_64'): + ssse3_env.Append(CCFLAGS = ['-mssse3']) +lp_tile_soa_os = ssse3_env.SharedObject('lp_tile_soa.c') + + llvmpipe = env.ConvenienceLibrary( target = 'llvmpipe', source = [ @@ -66,7 +74,7 @@ llvmpipe = env.ConvenienceLibrary( 'lp_tex_sample.c', 'lp_texture.c', 'lp_tile_image.c', - 'lp_tile_soa.c', + lp_tile_soa_os, ]) |