gallium: used inverted bitmap texture to simplify the fragment shader.
authorBrian <brian.paul@tungstengraphics.com>
Mon, 31 Mar 2008 21:12:14 +0000 (15:12 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Mon, 31 Mar 2008 21:12:14 +0000 (15:12 -0600)
commit6b0be38a6cfecd2babc7175b0877bed522ca9f72
tree46c125b5d37489ade7d0c3e8cd0fa698e835503e
parent23b03c536daa47b53e585fa98476bad96eb73529
gallium: used inverted bitmap texture to simplify the fragment shader.

"Off" bits get stored as texel=0xff and "on" bits get stored as texel=0x0.
Then use KIL -tmp to kill the off bits and keep the on bits.
This shortens the fragment program by two instructions.
src/mesa/state_tracker/st_cb_bitmap.c