summaryrefslogtreecommitdiff
path: root/src/mesa/swrast/s_triangle.c
AgeCommit message (Collapse)Author
2002-04-12Klaus Niederkrueger's latest changes: use INIT_SPAN() to init span primitiveBrian Paul
type, width, interp mask and array mask.
2002-03-25removed a bad assertionBrian Paul
2002-03-16New mipmap lambda calculation. Previously, trilinear filtering couldBrian Paul
result in _very_ blurry textures. Still need to do some optimization of the new code in s_span.c
2002-02-02sw_span can now hold x/y arrays of fragment positions - getting ready toBrian Paul
ditch the pb (pixel buffer) code. Converted point drawing, bitmaps and aa lines to use new span functions.
2002-01-30don't use affine/persp_textured_triangle funcs when CHAN_BITS > 8Brian Paul
2002-01-28Still more texture/span simplification and clean-up.Brian Paul
Updated comments, fixed indentation, etc.
2002-01-28More span improvements. Removed _mesa_write_monocolor_span().Brian Paul
Removed last of span.filled* flags and Klaus's macros. More simplification of triangle functions.
2002-01-28More span clean-up, mostly texture-related.Brian Paul
_mesa_rasterize_span() is gone, replaced by new _mesa_write_textured_span(). Removed some unneeded triangle functions - more simplification possible.
2002-01-27LOTS of changes, building upon Klaus's work.Brian Paul
struct sw_span is used throughout span/fragment processing. This is leading to less code and more chances for optimization.
2002-01-21Klaus's latest patches and some clean-upBrian Paul
2002-01-16latest changes from KlausBrian Paul
2002-01-09fixed GL_REPLACE / GL_RGB bugBrian Paul
2002-01-09texture env color wasn't used correctly in GL_BLEND modeBrian Paul
2001-12-19fix a comment typoBrian Paul
2001-12-19have to clamp color+specular in _swrast_add_spec_terms_triangle()! (fixes ↵Brian Paul
Chimera bug)
2001-12-17first checkpoint commit of Klaus's new span code (struct sw_span)Brian Paul
2001-11-28use v2 color, not v0 in flat_ci_triangle()Brian Paul
2001-11-19More span rendering optimizations from Klaus NiederkruegerBrian Paul
2001-09-19GL_ADD texture mode was incorrect, renamed some varsBrian Paul
2001-09-19silence compiler warnings (last batch for src)Karl Schultz
2001-09-13minor optimizations for flat shading (Klaus Niederkrueger)Brian Paul
2001-07-26Applied Klaus Niederkrueger's latest flat-shading clean-ups and some of my own.Brian Paul
2001-07-23GLchan and GL_ADD clamping changes (Klaus Niederkrueger)Brian Paul
2001-07-14more work on float colors (still not finished)Brian Paul
2001-07-13assorted changes for supporting GLfloat color channels (not done)Brian Paul
2001-07-09fixed flat shading bug in affine_ and persp_textured_triangle() functionsBrian Paul
2001-07-09added missing \'sBrian Paul
2001-06-26optimized texture triangle updates (Klaus Niederkrueger)Brian Paul
2001-05-17Fix order of decomposition of quad.Keith Whitwell
Remove 'swrast->_MultiTexEnabled' derived value.
2001-05-16use DEFARRAY, etc macros to work around 32k data limit on Macs (Tom Goon)Brian Paul
2001-05-15Apply antialiasing coverage factor to alpha after texture application,Brian Paul
not before.
2001-05-14New triangle rasterization code. Store per-span initial/step values in theBrian Paul
new triangle_span struct. Much cleaner code and possibilities for future optimizations.
2001-05-03interpolate fog valus as floats, not fixed - fixed the swrast fog problemBrian Paul
2001-03-29Removed DD_Z_NEVER.Brian Paul
Replaced SEPERATE with SEPARATE. Renumbered _NEW_ flags. Removed _NEW_COLORTABLE.
2001-03-28simplify test for specific texture formatsBrian Paul
2001-03-28More texture format updates. Drivers now need only plug an appropriateGareth Hughes
format into texImage->TexFormat, the rest is handled by core Mesa.
2001-03-22clean-up in _swrast_choose_triangle()Brian Paul
2001-03-19Split driver struct into swrast/tnl/core components.Keith Whitwell
2001-03-17Remove dead #define.Keith Whitwell
Add case for triangles culled front and back -- not handled by the culling code inside swrast triangle routines.
2001-03-12Consistent copyright info (version number, date) across all files.Gareth Hughes
2001-03-08do fog interpolation if INTERP_FOG is defined, not when INTERP_Z is definedBrian Paul
2001-03-08More g++ warning fixes. Fixes for CHAN_BITS==16, it seems to work.Brian Paul
2001-03-03lots of gl_*() to _mesa_*() namespace clean-upBrian Paul
2001-03-03optimized lambda calculation (Klaus Niederkrueger)Brian Paul
2001-02-16Allow swrast to cope (fairly) cleanly with GL_SEPERATE_SPECULAR whenKeith Whitwell
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.
2001-02-07added divide by zero checksBrian Paul
2001-02-06Overhaul of texture image handling.Brian Paul
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.
2001-01-29optimized lambda computation (Klaus Niederkrueger)Brian Paul
2001-01-23Replaced struct gl_visual with struct __GLcontextModesRec from glcore.h.Brian Paul
Replace "RGBAMode" with "rgbMode", etc. Other minor clean-ups.
2001-01-05Remove 'pv' parameter from Line/Tri/Point funcs. The provoking vertexKeith Whitwell
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.