llvmpipe: Pixel packing/unpacking and loop code generators.
Just a small proof of concept plus a standalone test app. Not integrated
with the rest of the driver yet.
diff --git a/src/gallium/drivers/llvmpipe/SConscript b/src/gallium/drivers/llvmpipe/SConscript
index f021549..fa3047f 100644
--- a/src/gallium/drivers/llvmpipe/SConscript
+++ b/src/gallium/drivers/llvmpipe/SConscript
@@ -2,12 +2,17 @@
env = env.Clone()
+env.ParseConfig('llvm-config --cflags --libs jit interpreter nativecodegen')
+
llvmpipe = env.ConvenienceLibrary(
target = 'llvmpipe',
source = [
'lp_fs_exec.c',
'lp_fs_sse.c',
'lp_fs_llvm.c',
+ 'lp_bld_pack.c',
+ 'lp_bld_unpack.c',
+ 'lp_bld_loop.c',
'lp_clear.c',
'lp_context.c',
'lp_draw_arrays.c',
@@ -43,4 +48,12 @@
'lp_tile_cache.c',
])
-Export('softpipe')
\ No newline at end of file
+env['LINK'] = env['CXX']
+
+env.Program(
+ target = 'lp_bld_test',
+ source = ['lp_bld_test.c'],
+ LIBS = [llvmpipe] + auxiliaries + env['LIBS'],
+)
+
+Export('llvmpipe')