aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_triangle.c
Commit message (Collapse)AuthorAgeFilesLines
* Still more texture/span simplification and clean-up.Brian Paul2002-01-281-37/+6
| | | | Updated comments, fixed indentation, etc.
* More span improvements. Removed _mesa_write_monocolor_span().Brian Paul2002-01-281-37/+9
| | | | | 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-105/+16
| | | | | _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-14/+31
| | | | | 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-27/+27
|
* latest changes from KlausBrian Paul2002-01-161-10/+3
|
* fixed GL_REPLACE / GL_RGB bugBrian Paul2002-01-091-2/+7
|
* texture env color wasn't used correctly in GL_BLEND modeBrian Paul2002-01-091-15/+15
|
* fix a comment typoBrian Paul2001-12-191-2/+2
|
* have to clamp color+specular in _swrast_add_spec_terms_triangle()! (fixes ↵Brian Paul2001-12-191-5/+38
| | | | Chimera bug)
* first checkpoint commit of Klaus's new span code (struct sw_span)Brian Paul2001-12-171-141/+63
|
* use v2 color, not v0 in flat_ci_triangle()Brian Paul2001-11-281-2/+2
|
* More span rendering optimizations from Klaus NiederkruegerBrian Paul2001-11-191-336/+7
|
* GL_ADD texture mode was incorrect, renamed some varsBrian Paul2001-09-191-48/+49
|
* silence compiler warnings (last batch for src)Karl Schultz2001-09-191-14/+16
|
* minor optimizations for flat shading (Klaus Niederkrueger)Brian Paul2001-09-131-38/+79
|
* Applied Klaus Niederkrueger's latest flat-shading clean-ups and some of my own.Brian Paul2001-07-261-123/+7
|
* GLchan and GL_ADD clamping changes (Klaus Niederkrueger)Brian Paul2001-07-231-67/+68
|
* more work on float colors (still not finished)Brian Paul2001-07-141-31/+40
|
* assorted changes for supporting GLfloat color channels (not done)Brian Paul2001-07-131-40/+44
|
* fixed flat shading bug in affine_ and persp_textured_triangle() functionsBrian Paul2001-07-091-12/+27
|
* added missing \'sBrian Paul2001-07-091-5/+5
|
* optimized texture triangle updates (Klaus Niederkrueger)Brian Paul2001-06-261-920/+289
|
* Fix order of decomposition of quad.Keith Whitwell2001-05-171-2/+2
| | | | Remove 'swrast->_MultiTexEnabled' derived value.
* use DEFARRAY, etc macros to work around 32k data limit on Macs (Tom Goon)Brian Paul2001-05-161-13/+53
|
* Apply antialiasing coverage factor to alpha after texture application,Brian Paul2001-05-151-17/+17
| | | | not before.
* New triangle rasterization code. Store per-span initial/step values in theBrian Paul2001-05-141-986/+944
| | | | | new triangle_span struct. Much cleaner code and possibilities for future optimizations.
* interpolate fog valus as floats, not fixed - fixed the swrast fog problemBrian Paul2001-05-031-62/+57
|
* Removed DD_Z_NEVER.Brian Paul2001-03-291-2/+2
| | | | | | Replaced SEPERATE with SEPARATE. Renumbered _NEW_ flags. Removed _NEW_COLORTABLE.
* simplify test for specific texture formatsBrian Paul2001-03-281-5/+6
|
* More texture format updates. Drivers now need only plug an appropriateGareth Hughes2001-03-281-4/+4
| | | | format into texImage->TexFormat, the rest is handled by core Mesa.
* clean-up in _swrast_choose_triangle()Brian Paul2001-03-221-68/+64
|
* Split driver struct into swrast/tnl/core components.Keith Whitwell2001-03-191-7/+8
|
* Remove dead #define.Keith Whitwell2001-03-171-2/+17
| | | | | Add case for triangles culled front and back -- not handled by the culling code inside swrast triangle routines.
* Consistent copyright info (version number, date) across all files.Gareth Hughes2001-03-121-31/+31
|
* do fog interpolation if INTERP_FOG is defined, not when INTERP_Z is definedBrian Paul2001-03-081-1/+16
|
* More g++ warning fixes. Fixes for CHAN_BITS==16, it seems to work.Brian Paul2001-03-081-2/+2
|
* lots of gl_*() to _mesa_*() namespace clean-upBrian Paul2001-03-031-53/+48
|
* optimized lambda calculation (Klaus Niederkrueger)Brian Paul2001-03-031-187/+164
|
* Allow swrast to cope (fairly) cleanly with GL_SEPERATE_SPECULAR whenKeith Whitwell2001-02-161-8/+28
| | | | | | | | | | | | | 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.
* added divide by zero checksBrian Paul2001-02-071-9/+9
|
* Overhaul of texture image handling.Brian Paul2001-02-061-30/+20
| | | | | | | | | | 1. gl_texture_image struct's Data pointer points to images in driver's format. 2. Added FetchTexel() function pointer to struct gl_texture_image. 3. Changed Driver Tex[Sub]Image functions, return void now. 4. Texture storage/fetch code in new texstore.c file. 5. Removed texture.[ch] - functions moved to state.c Note: FX driver updates not finished yet.
* optimized lambda computation (Klaus Niederkrueger)Brian Paul2001-01-291-10/+9
|
* 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.
* Remove 'pv' parameter from Line/Tri/Point funcs. The provoking vertexKeith Whitwell2001-01-051-28/+28
| | | | | | | | | | | | | | is always the last vertex parameter. Modify clipping to preserve pv colors. Modify swrast and X11 driver to expect the pv in the last vertex (was looking in the first vertex previously). Remove all handling of flatshading from swrast_setup. Allow drivers to override the unclipped render tabs in tnl_render_stage directly. (Like in 3.4). Removed fxsimplerender stage. Modified t_vb_rendertmp.h to remove the need for 'parity' arguments in RENDER_TRI macros.
* disabled two optimized textured triangle functions because of texcoord ↵Brian Paul2000-12-121-4/+8
| | | | interpolation errors
* minor clean-upsBrian Paul2000-11-211-30/+27
|
* Replaced Texture.CurrentD[] with separate Texture.Current1/2/3D vars.Brian Paul2000-11-191-67/+67
| | | | | | | Completely removed the dirty texture object list. Set texObj->Complete to GL_FALSE to indicate dirty. Made point/line/triangle/quad SWvertex parameters const. Minor code clean-ups.
* Removed Driver.Color() and Driver.Index() functions.Brian Paul2000-11-141-19/+5
| | | | | | Pass color or color index directly to WriteMono*() span functions. Updated current s/w drivers accordingly. Clean-up of X gc handling in XMesa driver.
* Cleanup of derived state calculation prior to seperating software T&LKeith Whitwell2000-11-131-3/+3
| | | | | | | | | | | | into a new directory. Specifically the handling of changes to lighting lighting space (light in model vs. light in eye) have been revamped. Moved several derived values used only by swrast into that directory. Removed direct calls to swrast_flush() from vbrender.c -- pushed into ctx->Driver.RenderFinish. Optimized flat-shading case in swrast_setup.