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/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/gallium/auxiliary/util/Makefile') diff --git a/src/gallium/auxiliary/util/Makefile b/src/gallium/auxiliary/util/Makefile index 77f1133096..ae8d330a78 100644 --- a/src/gallium/auxiliary/util/Makefile +++ b/src/gallium/auxiliary/util/Makefile @@ -12,6 +12,7 @@ C_SOURCES = \ u_cache.c \ u_draw_quad.c \ u_format.c \ + u_format_access.c \ u_format_table.c \ u_gen_mipmap.c \ u_handle_table.c \ @@ -36,5 +37,8 @@ C_SOURCES = \ include ../../Makefile.template -u_format_table.c: u_format_table.py u_format.csv +u_format_table.c: u_format_table.py u_format_parse.py u_format.csv python u_format_table.py u_format.csv > $@ + +u_format_access.c: u_format_access.py u_format_parse.py u_format.csv + python u_format_access.py u_format.csv > $@ -- cgit v1.2.3