From 3d305243938980af520c6d3e0ce02f4ee3a6126c Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Sun, 30 Aug 2009 12:02:36 +0100 Subject: util: Auto generate pixel format accessor functions from This has several advantages over the u_ - not hand written - no intermediate memcpy of raw pixels - supports 4 ubytes in addition to floats - no need to pass a pipe_transfer It also has (hopefully temporary) limitations: - no support for YUV - no support for SRGB --- src/gallium/auxiliary/util/SConscript | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/gallium/auxiliary/util/SConscript') diff --git a/src/gallium/auxiliary/util/SConscript b/src/gallium/auxiliary/util/SConscript index 5ceb1970b5c..28a5ab42569 100644 --- a/src/gallium/auxiliary/util/SConscript +++ b/src/gallium/auxiliary/util/SConscript @@ -11,6 +11,13 @@ env.CodeGenerate( command = 'python $SCRIPT $SOURCE > $TARGET' ) +env.CodeGenerate( + target = 'u_format_access.c', + script = 'u_format_access.py', + source = ['u_format.csv'], + command = 'python $SCRIPT $SOURCE > $TARGET' +) + util = env.ConvenienceLibrary( target = 'util', source = [ @@ -25,6 +32,7 @@ util = env.ConvenienceLibrary( 'u_debug_symbol.c', 'u_draw_quad.c', 'u_format.c', + 'u_format_access.c', 'u_format_table.c', 'u_gen_mipmap.c', 'u_handle_table.c', -- cgit v1.2.3