gallium: fix two-side stencil handling
authorRoland Scheidegger <sroland@tungstengraphics.com>
Thu, 3 Apr 2008 23:59:38 +0000 (01:59 +0200)
committerRoland Scheidegger <sroland@tungstengraphics.com>
Fri, 4 Apr 2008 10:44:13 +0000 (12:44 +0200)
commitcf9b07ea3474cd33e797eeb10b3fd73ad54ae8d5
tree987a61fa1d56d2e33327fcfa0b1a6909c23aea0d
parent7a7bce7b24ea4f63faa1d5bfe3f71d09b412c838
gallium: fix two-side stencil handling

Previously all drivers were in twosided mode since they checked for
stencil.enable[1] flag which was a copy of stencil.enable[0]. Note that drivers
should not reference stencil[1] state (other than the enable) if twosided
stenciling is disabled (for now the stencil state is still copied but for
instance clear_with_quads won't provide useful values in there).
Also, use _TestTwoSide instead of TestTwoSide since results would be
bogus otherwise if using APIs with implicit two side stencil enable
(i.e. core ogl 2.0).
src/gallium/include/pipe/p_state.h
src/mesa/state_tracker/st_atom_depth.c