summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_stencil.c
Commit message (Collapse)AuthorAgeFilesLines
* mesa: Always use the original mask to update stencil bufferXiang, Haihao2007-09-181-2/+5
| | | | in stencil_and_ztest_pixels. fix #12263
* clean-up of stencil codeBrian2007-07-111-50/+35
|
* Remove the !rb->Data check that was added a few months ago.Brian2007-04-211-1/+1
| | | | | Was changed while debugging #7205. Broke the shadowtext demo. Revisit this if the problem w/ bug 7205 returns...
* remove invalid assertion (span->facing may be set because of polygonmode)Brian2007-04-191-2/+0
|
* add some rb->Data null ptr checks (bug 7205)Brian2007-03-151-1/+1
|
* silence C++ warningsBrian2007-01-231-5/+7
|
* New SWspan and SWspanarrays typedefs.Brian Paul2006-10-011-3/+3
|
* C++ fixes, mostly casts (Stephane Conversy)Brian Paul2005-12-061-5/+5
|
* Use new gl_framebuffer _Depth/_StencilBuffer fields instead ofBrian Paul2005-11-161-5/+5
| | | | | Attachment[BUFFER_DEPTH/STENCIL].Renderbuffer. The former may be wrappers around combined depth/stencil renderbuffers attached at the later points.
* Fix problem in stencil_and_ztest_span() when using h/w stencil buffer.Brian Paul2005-11-151-4/+6
| | | | | Fix a comment typo. Remove some unneeded #includes.
* glDraw/CopyPixels of stencil data didn't obey the stencil write mask. Fixed.Brian Paul2005-09-261-2/+18
|
* Replace gl_renderbuffer.ComponentSizes[] with separate RedBits, GreenBits,Brian Paul2005-09-221-1/+1
| | | | BlueBits, etc fields.
* changed a renderbuffer checkBrian Paul2005-09-221-2/+1
|
* remove STENCIL_MAXBrian Paul2005-09-201-4/+6
|
* Fix potential segfault when trying to read pixels outside renderbuffer bounds.Brian Paul2005-09-161-4/+6
| | | | Use _swrast_get_values() which does clipping.
* OpenGL 2.0's two-sided stencil feature wasn't implemented correctly.Brian Paul2005-09-131-1/+1
| | | | | See comment near top of stencil.c for info about OpenGL 2.0 vs. GL_EXT_stencil_two_side.
* Clear either 8 or 16-bit stencil buffers.Brian Paul2005-09-131-27/+66
|
* Major check-in of changes for GL_EXT_framebuffer_object extension.Brian Paul2005-05-041-272/+145
| | | | | | | Main driver impacts: - new code for creating the Mesa GLframebuffer - new span/pixel read/write code Some drivers not yet updated/tested.
* new comments and assertionsBrian Paul2004-11-271-0/+2
|
* fix stencil index bug (#964704)Brian Paul2004-06-021-4/+3
|
* Removed all RCS / CVS tags (Id, Header, Date, etc.) from everything.Ian Romanick2003-06-051-1/+0
|
* replace _mesa_ prefix with _swrast_, remove s_histogram.[ch]Brian Paul2003-03-251-10/+10
|
* Header file clean-up:Brian Paul2002-10-241-2/+2
| | | | | | | | 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.
* finished up GL_EXT_stencil_two_sideBrian Paul2002-10-021-4/+6
|
* GL_EXT_stencil_two_side extension, not 100% complete yet.Brian Paul2002-09-061-73/+83
|
* struct sw_span is again allocated on the stack, but the arrays of spanBrian Paul2002-08-071-5/+5
| | | | | | | 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.
* fixed Width/Height cut&paste typoBrian Paul2002-04-201-3/+3
|
* casts to fix GLint/GLuint mismatchesBrian Paul2002-04-191-9/+12
|
* Use MESA_PBUFFER_ALLOC/FREE macros to allocate all framebuffer and textureBrian Paul2002-03-191-4/+4
| | | | | | | 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.
* Lots of changes related to framebuffer/window buffer resizing. Basically,Brian Paul2002-03-161-11/+9
| | | | | | | 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().
* Clean-up and remove dead code related to depth/stecil testing.Brian Paul2002-02-041-106/+92
|
* Converted line drawing over to new span code, pb no longer used.Brian Paul2002-02-021-19/+18
| | | | | Big clean-up of line drawing code. Removed many obsolete span processing functions.
* sw_span can now hold x/y arrays of fragment positions - getting ready toBrian Paul2002-02-021-55/+17
| | | | | ditch the pb (pixel buffer) code. Converted point drawing, bitmaps and aa lines to use new span functions.
* More span clean-up, mostly texture-related.Brian Paul2002-01-281-2/+2
| | | | | _mesa_rasterize_span() is gone, replaced by new _mesa_write_textured_span(). Removed some unneeded triangle functions - more simplification possible.
* LOTS of changes, building upon Klaus's work.Brian Paul2002-01-271-6/+7
| | | | | struct sw_span is used throughout span/fragment processing. This is leading to less code and more chances for optimization.
* Klaus's latest patches and some clean-upBrian Paul2002-01-211-2/+2
|
* work-around for QNX compiler problemBrian Paul2002-01-081-7/+9
|
* first checkpoint commit of Klaus's new span code (struct sw_span)Brian Paul2001-12-171-3/+58
|
* fixed Width/Height typo (Jeff Hartmann)Brian Paul2001-05-171-2/+2
|
* Split driver struct into swrast/tnl/core components.Keith Whitwell2001-03-191-26/+32
|
* Consistent copyright info (version number, date) across all files.Gareth Hughes2001-03-121-12/+11
|
* fixed a bunch of g++ warnings/errors. Compiling with g++ can help find lots ↵Brian Paul2001-03-071-2/+2
| | | | of potential problems
* lots of gl_*() to _mesa_*() namespace clean-upBrian Paul2001-03-031-6/+6
|
* another fix in _mesa_stencil_and_ztest_pixels() for hardware fallbacksBrian Paul2001-02-231-6/+3
|
* fixed bug in _mesa_stencil_and_ztest_pixels() found w/ DRI mga driverBrian Paul2001-02-231-26/+29
|
* Replaced struct gl_visual with struct __GLcontextModesRec from glcore.h.Brian Paul2001-01-231-2/+2
| | | | | Replace "RGBAMode" with "rgbMode", etc. Other minor clean-ups.
* fixed parameter mis-ordering bug in Driver.StencilSpan callsBrian Paul2000-11-281-7/+7
|
* Cleanup of derived state calculation prior to seperating software T&LKeith Whitwell2000-11-131-12/+12
| | | | | | | | | | | | into a new directory. Specifically the handling of changes to lighting lighting space (light in model vs. light in eye) have been revamped. Moved several derived values used only by swrast into that directory. Removed direct calls to swrast_flush() from vbrender.c -- pushed into ctx->Driver.RenderFinish. Optimized flat-shading case in swrast_setup.
* Reorganized software rasterizer as a module which manages its own state,Keith Whitwell2000-11-051-1/+2
| | | | | | with tighter interfaces with the rest of the world. Proper documentation to come.
* Moved software rasterizer functionality to new directory.Keith Whitwell2000-10-311-0/+1303