aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_fog.c
Commit message (Collapse)AuthorAgeFilesLines
* 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-10/+10
| | | | | | | | | | | | 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]>
* mesa: Remove SWcontext::_FogMode, use gl_context::gl_fog_attrib::Mode everywhereIan Romanick2011-04-251-1/+1
| | | | Reviewed-by: Brian Paul <[email protected]>
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-131-2/+2
|
* swrast: Remove unnecessary headers.Vinson Lee2010-07-311-1/+0
|
* swrast: Remove _swrast_fog_ci_span and associated codeIan Romanick2010-03-031-85/+0
| | | | | | | After all the recent color-index rendering removal, _swrast_fog_ci_span is no longer used anywhere. Signed-off-by: Ian Romanick <[email protected]>
* swrast: silence double->float assignment warningsBrian Paul2010-01-271-6/+6
| | | | Reported by Karl Schultz.
* swrast: replace macro with inline functionBrian Paul2009-01-301-2/+2
|
* mesa: prefix a bunch of #include lines with "main/".Brian Paul2008-09-181-4/+4
| | | | | This is another step toward removing a whole bunch of -I flags from the cc commands. Still need to address driver code...
* Implement gl_PointCoord attribute for GLSL fragment shaders.Brian2007-10-241-1/+0
| | | | Contains the normalized fragment position within a point sprite.
* Overhaul/simplify SWvertex and SWspan attribute handling.Brian2007-05-201-194/+141
| | | | | Instead of separate fog/specular/texcoord/varying code, just treat all of them as generic attributes. Simplifies the point/line/triangle functions.
* Replace color, z, w, texture interpolants with new generic attrib interpolants.Brian2007-02-021-10/+10
|
* New span attrStart/attrStepX/attrStepY fields to replace fog, specular, etc. ↵Brian2007-02-021-10/+10
| | | | fields. More to come.
* New SWspanarrays attribs[] array.Brian2007-02-011-9/+9
| | | | | | | 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.
* remove temp codeBrian Paul2006-10-191-22/+15
|
* fix fog color bugBrian Paul2006-10-171-3/+18
|
* 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-90/+139
|
* additional wrapper updates, bug 4468Brian Paul2005-09-191-6/+6
|
* use FABSF(fogCoord) to fix fog calculation problem (Soju Matsumoto)Brian Paul2005-01-171-3/+3
|
* Fix minor fog / fragment program state bug.Brian Paul2004-10-131-6/+3
| | | | Don't add diffuse and specular colors when using fragment program.
* A few more tweaks to fog code.Brian Paul2004-02-171-4/+8
| | | | | Remove unneeded FABSF() macros. Added blend factor clamping in a few spots.
* A bit of an overhaul of the fog code.Brian Paul2004-02-171-189/+202
| | | | | | glFogCoord didn't always work reliably. ARB fragment program fog options work now. Per-fragment fog computations are now perspective corrected.
* 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-7/+7
|
* 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
* struct sw_span is again allocated on the stack, but the arrays of spanBrian Paul2002-08-071-10/+16
| | | | | | | 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.
* Simplified fog code.Brian Paul2002-02-171-146/+80
|
* Converted line drawing over to new span code, pb no longer used.Brian Paul2002-02-021-92/+7
| | | | | Big clean-up of line drawing code. Removed many obsolete span processing functions.
* More span improvements. Removed _mesa_write_monocolor_span().Brian Paul2002-01-281-4/+4
| | | | | Removed last of span.filled* flags and Klaus's macros. More simplification of triangle functions.
* More span clean-up, mostly texture-related.Brian Paul2002-01-281-9/+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-17/+20
| | | | | 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-13/+73
|
* Replace old matrix stacks with new code based on struct matrix_stack.Brian Paul2001-12-181-4/+5
| | | | | | Moved vertex program hash table into shared context state. Implemented reference counting for vertex programs. Replaced tnl "ProjectedClip" with "Ndc" (normalized device coordinates).
* first checkpoint commit of Klaus's new span code (struct sw_span)Brian Paul2001-12-171-7/+111
|
* silence compiler warnings (last batch for src)Karl Schultz2001-09-191-12/+12
|
* fix glDraw/CopyPixels w/ fog bug. minor fog code clean-ups.Brian Paul2001-06-181-22/+56
|
* interpolate fog valus as floats, not fixed - fixed the swrast fog problemBrian Paul2001-05-031-28/+17
|
* Consistent copyright info (version number, date) across all files.Gareth Hughes2001-03-121-13/+12
|
* 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-2/+2
|
* added divide by zero checksBrian Paul2001-01-031-3/+12
|
* More color macro clean-ups.Brian Paul2001-01-031-4/+6
| | | | FLOAT_TO_CHAN() macro removed.
* minor GLchan-related changesBrian Paul2001-01-021-9/+22
|
* minor fog clean-ups (Klaus Niederkrueger)Brian Paul2000-12-151-16/+19
|
* replaced GLfixed with GLfloat in _mesa_fog_ci_pixels() (Klaus Niederkrueger)Brian Paul2000-12-131-2/+2
|
* rewrite of _mesa_win_fog_coords_from_z() so that both perspective and ↵Brian Paul2000-11-151-24/+85
| | | | orthographic projection are handled correctly
* 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.