u_format: fix inv_swizzles generation
authorDave Airlie <airlied@gmail.com>
Fri, 30 Dec 2011 10:52:16 +0000 (10:52 +0000)
committerDave Airlie <airlied@gmail.com>
Fri, 30 Dec 2011 13:43:52 +0000 (13:43 +0000)
commit4ca624f8e09bff1a4f681c54486e327605b8274d
tree345c877a0f0a6e985833fad44829e067f5b8f9e1
parent7dd2d29a560a53d42d15f9ac06ba2ee7cd312ed9
u_format: fix inv_swizzles generation

inv_swizzles is used in lp_tile_soa.py to create lp_tile_soa.c, we overwrite swizzles if they are already set.

This results in the i8 format getting alpha instead of red, and the l8 format
getting blue instead of red.

Fixes fbo-alphatest-formats, fbo-alphatest-formats ARB_texture_float,
and fbo-alphatest-formats EXT_texture_snorm on llvmpipe.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/auxiliary/util/u_format_parse.py