summaryrefslogtreecommitdiff
path: root/src/mesa/swrast/s_stencil.c
AgeCommit message (Collapse)Author
2010-10-13Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg
2010-02-19Remove _mesa_memset in favor of plain memset.Kenneth Graunke
This may break the SUNOS4 build, but it's no longer relevant.
2010-02-19Remove _mesa_memcpy in favor of plain memcpy.Kenneth Graunke
This may break the SUNOS4 build, but it's no longer relevant.
2009-08-30swrast: minor code consolidationBrian Paul
2009-01-23Track two sets of back-face stencil stateIan Romanick
Track separate back-face stencil state for OpenGL 2.0 / GL_ATI_separate_stencil and GL_EXT_stencil_two_side. This allows all three to be enabled in a driver. One set of state is set via the 2.0 or ATI functions and is used when STENCIL_TEST_TWO_SIDE_EXT is disabled. The other is set by StencilFunc and StencilOp when the active stencil face is set to BACK. The GL_EXT_stencil_two_side spec has more details. http://opengl.org/registry/specs/EXT/stencil_two_side.txt
2008-09-18mesa: prefix a bunch of #include lines with "main/".Brian Paul
This is another step toward removing a whole bunch of -I flags from the cc commands. Still need to address driver code...
2007-09-18mesa: Always use the original mask to update stencil bufferXiang, Haihao
in stencil_and_ztest_pixels. fix #12263
2007-07-11clean-up of stencil codeBrian
2007-04-21Remove the !rb->Data check that was added a few months ago.Brian
Was changed while debugging #7205. Broke the shadowtext demo. Revisit this if the problem w/ bug 7205 returns...
2007-04-19remove invalid assertion (span->facing may be set because of polygonmode)Brian
2007-03-15add some rb->Data null ptr checks (bug 7205)Brian
2007-01-23silence C++ warningsBrian
2006-10-01New SWspan and SWspanarrays typedefs.Brian Paul
2005-12-06C++ fixes, mostly casts (Stephane Conversy)Brian Paul
2005-11-16Use new gl_framebuffer _Depth/_StencilBuffer fields instead ofBrian Paul
Attachment[BUFFER_DEPTH/STENCIL].Renderbuffer. The former may be wrappers around combined depth/stencil renderbuffers attached at the later points.
2005-11-15Fix problem in stencil_and_ztest_span() when using h/w stencil buffer.Brian Paul
Fix a comment typo. Remove some unneeded #includes.
2005-09-26glDraw/CopyPixels of stencil data didn't obey the stencil write mask. Fixed.Brian Paul
2005-09-22Replace gl_renderbuffer.ComponentSizes[] with separate RedBits, GreenBits,Brian Paul
BlueBits, etc fields.
2005-09-22changed a renderbuffer checkBrian Paul
2005-09-20remove STENCIL_MAXBrian Paul
2005-09-16Fix potential segfault when trying to read pixels outside renderbuffer bounds.Brian Paul
Use _swrast_get_values() which does clipping.
2005-09-13OpenGL 2.0's two-sided stencil feature wasn't implemented correctly.Brian Paul
See comment near top of stencil.c for info about OpenGL 2.0 vs. GL_EXT_stencil_two_side.
2005-09-13Clear either 8 or 16-bit stencil buffers.Brian Paul
2005-05-04Major check-in of changes for GL_EXT_framebuffer_object extension.Brian Paul
Main driver impacts: - new code for creating the Mesa GLframebuffer - new span/pixel read/write code Some drivers not yet updated/tested.
2004-11-27new comments and assertionsBrian Paul
2004-06-02fix stencil index bug (#964704)Brian Paul
2003-06-05Removed all RCS / CVS tags (Id, Header, Date, etc.) from everything.Ian Romanick
2003-03-25replace _mesa_ prefix with _swrast_, remove s_histogram.[ch]Brian Paul
2002-10-24Header file clean-up:Brian Paul
1. Remove all.h and PC_HEADER junk. 2. Rolled mem.c and mem.h into imports.c and imports.h 3. Include imports.h instead of mem.h Restore _mesa_create/initialize_context() to be like they were in 4.0.4 New wrappers for a few std C functions: _mesa_atoi(), _mesa_strstr(), etc.
2002-10-02finished up GL_EXT_stencil_two_sideBrian Paul
2002-09-06GL_EXT_stencil_two_side extension, not 100% complete yet.Brian Paul
2002-08-07struct sw_span is again allocated on the stack, but the arrays of spanBrian Paul
data are broken out into a new struct span_arrays which is allocated per-context (to avoid huge stack allocations - a problem on Windows). This lets us use span.redStep instead of span->redStep (for example) to hopefully get slightly better performance in the triangle functions.
2002-04-20fixed Width/Height cut&paste typoBrian Paul
2002-04-19casts to fix GLint/GLuint mismatchesBrian Paul
2002-03-19Use MESA_PBUFFER_ALLOC/FREE macros to allocate all framebuffer and textureBrian Paul
memory. These can be overridden by applications which need to manage this memory specially. Contributed by Gerk Huisma. Also, new code for 8-bit -> 16-bit/channel texture image storage which fills in the least-significant bits properly.
2002-03-16Lots of changes related to framebuffer/window buffer resizing. Basically,Brian Paul
instead of passing a GLcontext* to ResizeBuffers(), pass a GLframebuffer*. The idea is that a window can be resized without it being bound to a rendering context. This makes for a nice clean-up in the XFree86 server-side GLX code. Renamed ctx->Driver.ResizeBuffersMESA() to ctx->Driver.ResizeBuffers().
2002-02-04Clean-up and remove dead code related to depth/stecil testing.Brian Paul
2002-02-02Converted line drawing over to new span code, pb no longer used.Brian Paul
Big clean-up of line drawing code. Removed many obsolete span processing functions.
2002-02-02sw_span can now hold x/y arrays of fragment positions - getting ready toBrian Paul
ditch the pb (pixel buffer) code. Converted point drawing, bitmaps and aa lines to use new span functions.
2002-01-28More span clean-up, mostly texture-related.Brian Paul
_mesa_rasterize_span() is gone, replaced by new _mesa_write_textured_span(). Removed some unneeded triangle functions - more simplification possible.
2002-01-27LOTS of changes, building upon Klaus's work.Brian Paul
struct sw_span is used throughout span/fragment processing. This is leading to less code and more chances for optimization.
2002-01-21Klaus's latest patches and some clean-upBrian Paul
2002-01-08work-around for QNX compiler problemBrian Paul
2001-12-17first checkpoint commit of Klaus's new span code (struct sw_span)Brian Paul
2001-05-17fixed Width/Height typo (Jeff Hartmann)Brian Paul
2001-03-19Split driver struct into swrast/tnl/core components.Keith Whitwell
2001-03-12Consistent copyright info (version number, date) across all files.Gareth Hughes
2001-03-07fixed a bunch of g++ warnings/errors. Compiling with g++ can help find lots ↵Brian Paul
of potential problems
2001-03-03lots of gl_*() to _mesa_*() namespace clean-upBrian Paul
2001-02-23another fix in _mesa_stencil_and_ztest_pixels() for hardware fallbacksBrian Paul