summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_masking.c
Commit message (Collapse)AuthorAgeFilesLines
* swrast: Avoid aliasing violation.Matt Turner2016-07-261-2/+2
| | | | | Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
* mesa: Use assert() instead of ASSERT wrapper.Matt Turner2015-02-231-2/+2
| | | | Acked-by: Eric Anholt <[email protected]>
* mesa: remove outdated version lines in commentsRico Schüller2013-06-051-1/+0
| | | | Signed-off-by: Brian Paul <[email protected]>
* mesa: Restore 78-column wrapping of license text in C-style comments.Kenneth Graunke2013-04-231-3/+4
| | | | | | | | | | | | | | The previous commit introduced extra words, breaking the formatting. This text transformation was done automatically via the following shell command: $ git grep 'THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY' | sed 's/:.*$//' | xargs -I {} sh -c 'vim -e -s {} < vimscript where 'vimscript' is a file containing: /THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY/;/\*\// !fmt -w 78 -p ' * ' :wq Reviewed-by: Brian Paul <[email protected]>
* mesa: Add "OR COPYRIGHT HOLDERS" to license text disclaiming liability.Kenneth Graunke2013-04-231-1/+1
| | | | | | | | | | | | | | | This brings the license text in line with the MIT License as published on the Open Source Initiative website: http://opensource.org/licenses/mit-license.php Generated automatically be the following shell command: $ git grep 'THE AUTHORS BE LIABLE' | sed 's/:.*$//g' | xargs -I '{}' \ sed -i 's/THE AUTHORS/THE AUTHORS OR COPYRIGHT HOLDERS/' {} This introduces some wrapping issues, to be fixed in the next commit. Reviewed-by: Brian Paul <[email protected]>
* mesa: Change "BRIAN PAUL" to "THE AUTHORS" in license text.Kenneth Graunke2013-04-231-1/+1
| | | | | | | | | | | | | | | | Generated automatically be the following shell command: $ git grep 'BRIAN PAUL BE LIABLE' | sed 's/:.*$//g' | xargs -I '{}' \ sed -i 's/BRIAN PAUL/THE AUTHORS/' {} The intention here is to protect all authors, not just Brian Paul. I believe that was already the sensible interpretation, but spelling it out is probably better. More practically, it also prevents people from accidentally copy & pasting the license into a new file which says Brian is not liable when he isn't even one of the authors. Reviewed-by: Brian Paul <[email protected]>
* Replace gl_frag_attrib enum with gl_varying_slot.Paul Berry2013-03-151-1/+1
| | | | | | | | | | | | This patch makes the following search-and-replace changes: gl_frag_attrib -> gl_varying_slot FRAG_ATTRIB_* -> VARYING_SLOT_* FRAG_BIT_* -> VARYING_BIT_* Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Tested-by: Brian Paul <[email protected]>
* swrast: define, use SWRAST_MAX_WIDTH/HEIGHTBrian Paul2012-02-241-1/+1
| | | | We'll get rid of MAX_WIDTH, MAX_HEIGHT soon.
* swrast: remove gl_renderbuffer::DataType assertionsBrian Paul2012-01-241-1/+0
| | | | This field will go away, so remove some uses of it.
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-131-1/+1
|
* swrast: Remove _swrast_mask_ci_spanIan Romanick2010-03-031-31/+0
| | | | | | | After all the recent color-index rendering removal, _swrast_mask_ci_span is no longer used anywhere. Signed-off-by: Ian Romanick <[email protected]>
* mesa: implement per-buffer color maskingBrian Paul2009-12-291-10/+10
| | | | | | | | | | | This is part of the GL_EXT_draw_buffers2 extension and part of GL 3.0. The ctx->Color.ColorMask field is now a 2-D array. Until drivers are modified to support per-buffer color masking, they can just look at the 0th color mask. The new _mesa_ColorMaskIndexed() function will be called by glColorMaskIndexedEXT() or glColorMaski().
* mesa: prefix a bunch of #include lines with "main/".Brian Paul2008-09-181-2/+2
| | | | | This is another step toward removing a whole bunch of -I flags from the cc commands. Still need to address driver code...
* Overhaul/simplify SWvertex and SWspan attribute handling.Brian2007-05-201-2/+2
| | | | | Instead of separate fog/specular/texcoord/varying code, just treat all of them as generic attributes. Simplifies the point/line/triangle functions.
* New SWspanarrays attribs[] array.Brian2007-02-011-1/+1
| | | | | | | Replace texcoord[], varying[], etc. arrays with single attribs[] array, indexed by FRAG_ATTRIB_* values. Eliminates need to copy data into fragment program machine input registers. Will lead to future clean-ups.
* New SWspan and SWspanarrays typedefs.Brian Paul2006-10-011-2/+2
|
* Initial work for supporting different renderbuffer color depths at runtime.Brian Paul2006-09-251-30/+49
|
* Change logicop, blend, masking functions to use the colors/indexes in theBrian Paul2006-09-241-9/+8
| | | | sw_span object, rather than an explicit parameter.
* Get rid of _swrast_mask_rgba_array() and _swrast_mask_index_array().Brian Paul2006-09-221-65/+9
|
* Fix potential segfault when trying to read pixels outside renderbuffer bounds.Brian Paul2005-09-161-3/+5
| | | | Use _swrast_get_values() which does clipping.
* pass in the renderbufferAlan Hourihane2005-07-181-1/+1
|
* Remove last of the old span code.Brian Paul2005-06-021-8/+1
|
* Major check-in of changes for GL_EXT_framebuffer_object extension.Brian Paul2005-05-041-47/+33
| | | | | | | Main driver impacts: - new code for creating the Mesa GLframebuffer - new span/pixel read/write code Some drivers not yet updated/tested.
* 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-11/+11
|
* struct sw_span is again allocated on the stack, but the arrays of spanBrian Paul2002-08-071-7/+8
| | | | | | | 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.
* Converted line drawing over to new span code, pb no longer used.Brian Paul2002-02-021-80/+1
| | | | | 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-7/+95
| | | | | ditch the pb (pixel buffer) code. Converted point drawing, bitmaps and aa lines to use new span functions.
* Split driver struct into swrast/tnl/core components.Keith Whitwell2001-03-191-4/+6
|
* Consistent copyright info (version number, date) across all files.Gareth Hughes2001-03-121-7/+6
|
* lots of gl_*() to _mesa_*() namespace clean-upBrian Paul2001-03-031-4/+4
|
* Reorganized software rasterizer as a module which manages its own state,Keith Whitwell2000-11-051-3/+4
| | | | | | 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/+180