gallium/util: add util_format_is_supported to check for pack/unpack
authorLuca Barbieri <luca@luca-barbieri.com>
Fri, 2 Apr 2010 03:23:32 +0000 (05:23 +0200)
committerLuca Barbieri <luca@luca-barbieri.com>
Fri, 2 Apr 2010 04:16:30 +0000 (06:16 +0200)
commit5126683e3b971ccfb51e50e560750ce44e86bae8
treeccdb7104752d266653a1201a97e551bed94ecd23
parent52e9b990a192a9329006d5f7dd2ac222effea5a5
gallium/util: add util_format_is_supported to check for pack/unpack

This improves the code by making it more readable, and removes
special knowledge of S3TC and other formats from softpipe.
progs/gallium/unit/u_format_test.c
src/gallium/auxiliary/util/u_format.h
src/gallium/auxiliary/util/u_format_s3tc.c
src/gallium/auxiliary/util/u_format_table.py
src/gallium/drivers/softpipe/sp_screen.c