r300g: fix the border color for every format other than PIPE_FORMAT_B8G8R8A8
authorMarek Olšák <maraeo@gmail.com>
Thu, 23 Sep 2010 20:56:50 +0000 (22:56 +0200)
committerMarek Olšák <maraeo@gmail.com>
Fri, 24 Sep 2010 00:57:36 +0000 (02:57 +0200)
commit9f35dcd24cb520af5e39501672a3324000cdbfce
tree936e3b8d8c79e868e6363b05dd452923acf04805
parent7d28ec8500fc08fafbdb3ae5443b32dd756eddd7
r300g: fix the border color for every format other than PIPE_FORMAT_B8G8R8A8

TX_BORDER_COLOR should be formatted according to the texture format.
Also the interaction with ARB_texture_swizzle should be fixed too.

NOTE: This is a candidate for the 7.9 branch.
src/gallium/drivers/r300/r300_context.h
src/gallium/drivers/r300/r300_state.c
src/gallium/drivers/r300/r300_state_derived.c