summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_aatriangle.c
Commit message (Collapse)AuthorAgeFilesLines
* 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]>
* swrast: Fix fixed-function fragment processingChad Versace2012-01-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On i965, _mesa_ir_link_shader is never called. As a consequence, the current fragment program (ctx->FragmentProgram->_Current) exists but is invalid because it has no instructions. Yet swrast continued to attempt to use the empty program. To avoid using the empty program, this patch 1) defines a new function, _swrast_use_fragment_program, which checks if the current fragment program exists and differs from the fixed function fragment program, and, when appropriate, 2) replaces checks of the form if (ctx->FragmentProgram->_Current == NULL) with if (_swrast_use_fragment_program(ctx)) Fixes the following oglconform regressions on i965/gen6: api-fogcoord(basic.allCases.log) api-mtexcoord(basic.allCases.log) api-seccolor(basic.allCases.log) api-texcoord(basic.allCases.log) blend-separate(basic.allCases) colorsum(basic.allCases.log) The tests were ran with the GLXFBConfig: visual x bf lv rg d st colorbuffer sr ax dp st accumbuffer ms cav id dep cl sp sz l ci b ro r g b a F gb bf th cl r g b a ns b eat ---------------------------------------------------------------------------- 0x021 24 tc 0 32 0 r y . 8 8 8 8 . . 0 24 8 0 0 0 0 0 0 None (Note: I originally believed that the hunk in _swrast_update_fragment_program was unnecessary. But it is required to fix blend-separate.) Note: This is a candidate for the 8.0 branch. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=43327 Reveiwed-by: Eric Anholt <[email protected]> Reviewed-by: Ian Romanick <[email protected]> Signed-off-by: Chad Versace <[email protected]>
* mesa: s/INLINE/inline/Brian Paul2011-10-011-7/+7
| | | | | | | INLINE is still seen in some files (some generated files, etc) but this is a good start. Acked-by: Kenneth Graunke <[email protected]>
* swrast: simplify assertion to silence warningBrian Paul2011-04-051-6/+1
|
* mesa: replace NEED_SECONDARY_COLOR(), RGBA_LOGICOP_ENABLED() with inlinesBrian Paul2011-03-111-1/+2
| | | | and rename them.
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-131-3/+3
|
* swrast: remove duplicated includeNicolas Kaiser2010-09-301-1/+0
| | | | | | Remove duplicated include. Signed-off-by: Brian Paul <[email protected]>
* swrast: remove unused compute_coveragei() functionBrian Paul2010-03-171-82/+0
|
* swrast: Remove support for rendering antialiased triangles into a ↵Ian Romanick2010-03-031-19/+1
| | | | | | color-index buffer Signed-off-by: Ian Romanick <[email protected]>
* mesa: prefix a bunch of #include lines with "main/".Brian Paul2008-09-181-6/+6
| | | | | 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-65/+24
| | | | | Instead of separate fog/specular/texcoord/varying code, just treat all of them as generic attributes. Simplifies the point/line/triangle functions.
* s/DO_TEXVAR/DO_ATTRIBS/Brian2007-04-241-2/+2
|
* Merge SWvertex texcoord and varying fields into attrib[] array field.Brian2007-02-051-44/+8
| | | | | Fragment texcoords and varying code is now unified in the point/line/triangle rasterization code. In the future, merge color, fog, etc. attribs.
* remove unneeded #includeBrian Paul2005-11-051-1/+0
|
* Consolidate _swrast_write_texture_span() into _swrast_write_rgba_span().Brian Paul2004-12-181-2/+2
|
* Update NEED_SECONDARY_COLOR macro to test if either vertex/fragmentBrian Paul2003-12-091-0/+1
| | | | | programs are enabled and if they need secondary color input register. Patch by Karl Rasche, with tweaks by Brian.
* Assorted casts to silence g++ warnings.Brian Paul2003-09-191-0/+1
|
* Add include for context.h to define NEED_SECONDARY_COLOR.Karl Schultz2003-09-191-0/+1
|
* Move away from using the ctx->_TriangleCaps bitfield.Brian Paul2003-09-181-1/+1
| | | | | New macros in context.h for testing state: NEED_SECONDARY_COLOR and NEED_TWO_SIDED_LIGHTING.
* Added ctx->Texture._EnabledCoordUnits bitfield.Brian Paul2003-04-081-5/+3
| | | | | | Fixed some vertex array / vertex program glitches with glDrawElements. Fixed some fragment program runtime bugs. Non-trivial Cg programs are running now.
* replace _mesa_ prefix with _swrast_, remove s_histogram.[ch]Brian Paul2003-03-251-2/+2
|
* Killed mmath.[ch]. Moved low-level functions/assembly code into imports.[ch]Brian Paul2003-03-011-2/+1
| | | | | Moved type conversion and interpolation macros into macros.h Updated all the files that used to include mmath.h
* optimize compute_coveragef (Evgeny Kotsuba)Brian Paul2003-01-251-18/+28
|
* improved solve_plane_chan() (Evgeny Kotsuba)Brian Paul2003-01-221-6/+10
|
* use COPY_CHAN4 macroBrian Paul2003-01-201-3/+4
|
* Header file clean-up:Brian Paul2002-10-241-2/+3
| | | | | | | | 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.
* Add casts to quiet compiler warnings.Karl Schultz2002-10-181-3/+3
|
* Implemented GL_NV_texture_rectangle extension.Brian Paul2002-06-151-4/+4
| | | | | | | | | Replace struct gl_texure_object's Dimension w/ Target field. Added _EnabledUnits to struct gl_texture_attrib - the _ReallyEnabled field is obsolete, but still present for now. This effectively removes the 8-texture units limit, 32 units now possible, but unlikely! New TEXTURE_1D/2D/3D/CUBE/RECT_BIT tokens for unit->_ReallyEnabled field. Updated device drivers to use ctx->Texture._EnabledUnits.
* New mipmap lambda calculation. Previously, trilinear filtering couldBrian Paul2002-03-161-17/+29
| | | | | result in _very_ blurry textures. Still need to do some optimization of the new code in s_span.c
* LOTS of changes, building upon Klaus's work.Brian Paul2002-01-271-1/+2
| | | | | struct sw_span is used throughout span/fragment processing. This is leading to less code and more chances for optimization.
* first checkpoint commit of Klaus's new span code (struct sw_span)Brian Paul2001-12-171-5/+12
|
* improved AA subpixel sample positions (Ray Tice)Brian Paul2001-11-131-38/+51
|
* silence compiler warnings (last batch for src)Karl Schultz2001-09-191-2/+2
|
* removed unused varBrian Paul2001-05-291-2/+1
|
* Fix order of decomposition of quad.Keith Whitwell2001-05-171-3/+3
| | | | Remove 'swrast->_MultiTexEnabled' derived value.
* use DEFARRAY, etc macros to work around 32k data limit on Macs (Tom Goon)Brian Paul2001-05-161-1/+2
|
* minor clean-ups and more commentsBrian Paul2001-05-151-1/+7
|
* fixed some divide by zero problems found w/ conformBrian Paul2001-05-101-2/+5
|
* fixed some divide by zero conformance problemsBrian Paul2001-04-101-4/+7
|
* Removed DD_Z_NEVER.Brian Paul2001-03-291-2/+2
| | | | | | Replaced SEPERATE with SEPARATE. Renumbered _NEW_ flags. Removed _NEW_COLORTABLE.
* adjustment to coverage sample positionsBrian Paul2001-03-281-32/+33
|
* Split driver struct into swrast/tnl/core components.Keith Whitwell2001-03-191-2/+2
|
* Consistent copyright info (version number, date) across all files.Gareth Hughes2001-03-121-5/+5
|
* fixed a bunch of g++ warnings/errors. Compiling with g++ can help find lots ↵Brian Paul2001-03-071-2/+2
| | | | of potential problems
* Allow swrast to cope (fairly) cleanly with GL_SEPERATE_SPECULAR whenKeith Whitwell2001-02-161-10/+7
| | | | | | | | | | | | | texturing is not enabled, and without requiring the two colors be added externally. As a part of this, collapsed the decomposition of quads into triangles inside swrast to be hardwired into _swrast_Quad; removed s_quads.[ch]. Removed checks on texture state from t_vb_light.c, which was previously required by swrast. Moved the t_dd_ templates to a new directory.
* Replaced struct gl_visual with struct __GLcontextModesRec from glcore.h.Brian Paul2001-01-231-3/+3
| | | | | Replace "RGBAMode" with "rgbMode", etc. Other minor clean-ups.
* Removed fixed.h (GLfixed now in mtypes.h, fixed-pt macros in mmath.h)Brian Paul2001-01-021-1/+2
| | | | | Clean-up of color conversion macros. New mmath.h macros (IROUND, IFLOOR, ICEIL, FRAC) used in various places.