summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_stencil.c
Commit message (Collapse)AuthorAgeFilesLines
* mesa: replace GLstencil with GLubyteBrian Paul2011-11-151-93/+91
|
* mesa: s/INLINE/inline/Brian Paul2011-10-011-1/+1
| | | | | | | INLINE is still seen in some files (some generated files, etc) but this is a good start. Acked-by: Kenneth Graunke <[email protected]>
* swrast: don't try to do depth testing if there's no depth bufferBrian Paul2011-08-111-1/+2
| | | | | | | Fixes piglit hiz-depth-stencil-test-fbo-d0-s8 crash. See http://bugs.freedesktop.org/show_bug.cgi?id=37907 NOTE: This is a candidate for the 7.11 branch.
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-131-10/+10
|
* Remove _mesa_memset in favor of plain memset.Kenneth Graunke2010-02-191-2/+2
| | | | This may break the SUNOS4 build, but it's no longer relevant.
* Remove _mesa_memcpy in favor of plain memcpy.Kenneth Graunke2010-02-191-4/+4
| | | | This may break the SUNOS4 build, but it's no longer relevant.
* swrast: minor code consolidationBrian Paul2009-08-301-7/+2
|
* Track two sets of back-face stencil stateIan Romanick2009-01-231-2/+4
| | | | | | | | | | | | 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
* mesa: prefix a bunch of #include lines with "main/".Brian Paul2008-09-181-3/+3
| | | | | This is another step toward removing a whole bunch of -I flags from the cc commands. Still need to address driver code...
* 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
|