diff options
author | José Fonseca <[email protected]> | 2009-08-30 12:02:36 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-08-30 12:37:03 +0100 |
commit | 3d305243938980af520c6d3e0ce02f4ee3a6126c (patch) | |
tree | 87d04c757ca756195e533100f2b6015fd1189794 /src/gallium/auxiliary/util/SConscript | |
parent | 379304a72cf332e2d570b13663bb447ec7a12940 (diff) |
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
Diffstat (limited to 'src/gallium/auxiliary/util/SConscript')
-rw-r--r-- | src/gallium/auxiliary/util/SConscript | 8 |
1 files changed, 8 insertions, 0 deletions
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', |