gallivm: simplify and clean-up Z/stencil bit mask/shift code
authorBrian Paul <brianp@vmware.com>
Fri, 19 Mar 2010 16:02:16 +0000 (10:02 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 19 Mar 2010 16:03:41 +0000 (10:03 -0600)
commit05c03c6a1bcfb8ad77d3025f166f02ddaa741aa2
tree7fee13c805d812efe11228e2f0d1b3188289b3ab
parent3b9555094d128052bdaf9957fe9062b35f7f5392
gallivm: simplify and clean-up Z/stencil bit mask/shift code

Refactor the code into two helper functions which compute the bit mask
and shift terms for Z and stencil.  Plus add a bunch of new comments to
explain everything.
src/gallium/auxiliary/gallivm/lp_bld_depth.c