summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker/st_atom_depth.c
AgeCommit message (Collapse)Author
2010-02-10st/mesa: more fixes for stencil ref change.Roland Scheidegger
compiles. Might need to do something to make it possible to save/restore stencil ref.
2010-02-09gallium: don't put stencil ref value in pipe_depth_stencil_alpha_stateRoland Scheidegger
This will make driver's life a bit harder, however it makes sense that stencil reference value is not part of the pipe_depth_stencil_alpha_state, because it often (there are some algorithms which require this) changes more frequently than the rest of the dsa state. This is also encouraged by some graphic APIs. Treat it similar to pipe_blend_color.
2009-10-01gallium: remove depth.occlusion_count flagKeith Whitwell
This was redundant as drivers can just keep track of whether they are inside a begin/end query pair. We want to add more query types later and also support nested queries, none of which map well onto a flag like this. No driver appeared to be using the flag.
2009-03-02gallium: only enable depth test if a depth bufffer is availableBrian Paul
2009-02-27gallium: fix state tracker's stencil buffer testBrian Paul
Need to check ctx->DrawBuffer->Visual.stencilBits not ctx->Visual.stencilBits because the later only applies to the window system buffers, not user-created FBOs. This, plus the previous commit, fixes progs/tests/fbotexture.c
2009-02-19mesa: support GL_EXT_stencil_two_side in gallium/mesa state trackerBrian Paul
Since Ian's patch of a few weeks ago, we can enable all three variations of two-sided stencil. Update the state tracker to handle the extra back- face state and turn on the EXT. Note: there's a new Glean test for two-sided stencil now...
2009-01-27gallium: it's a reference value, not a reference numberZack Rusin
2009-01-27gallium: standardize naming of masksZack Rusin
2008-05-02Some changed for non-C99 compilersAlan Hourihane
2008-04-04gallium: fix two-side stencil handlingRoland Scheidegger
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).
2008-03-24gallium: don't enable stencil test if no stencil buffer.Brian Paul
Also, if not doing two-sided stencil, set back-face state = front-face state.
2008-03-11gallium: rework CSO-related code in state trackerBrian
Use the code in cso_context.c rather than st_cache.c. Basically, binding of state objects now goes through the CSO module. But Vertex/fragment shaders go through pipe->bind_fs/vs_state() since they're not cached by the CSO module at this time. Also, update softpipe driver to handle NULL state objects in various places. This happens during context destruction. May need to update other drivers...
2007-12-17gallium: incorporate alpha state into depth_stencil state object.Keith Whitwell
2007-12-11gallium: remove clear values from depth, stencil stateKeith Whitwell
2007-11-08Replace gl_stencil_func_to_sp() and gl_depth_func_to_sp() with ↵Brian
st_compare_func_to_pipe()
2007-09-20Convert depth_stencil state to the new semantics.Zack Rusin
2007-09-18Combing depth and stencil objects and making them immutable.Zack Rusin
Converting depth and stencil objects into a single state object (d3d10 like) and making it immutable.
2007-08-25add names to tracked state atoms to improve debugkeithw
2007-07-13Added basic occlusion countingBrian
2007-06-18Define just one set of PIPE_FUNC_LESS, GREATER, EQUAL, etc tokens.Brian
Used for depth test, alpha test, stencil test, shadow test, etc.
2007-06-14Rename directories again?!Keith Whitwell
Some git wierdness going on.
2007-06-14Renamed softpipe directories and files to something less confusing.Keith Whitwell
softpipe/state_tracker --> state_tracker/ softpipe/ --> pipe/ softpipe/generic --> pipe/softpipe/ I don't think pipe is a great name, but I disliked all the others too. Luckily it's fairly easy to rename with git, so this can be revisited later.