summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_fog.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Moved software rasterizer functionality to new directory.Keith Whitwell2000-10-311-0/+188