aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_triangle.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Overhaul of glRead/DrawBuffer() code. Now, swrast->Driver.SetBuffer()Brian Paul2002-07-091-6/+6
| | | | | indicates the read AND draw color buffer for all software rasterization. Lots of related clean-ups. See RELNOTES-4.1 for details.
* Implemented GL_NV_texture_rectangle extension.Brian Paul2002-06-151-7/+8
| | | | | | | | | 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.
* Allocate a sw_span struct in the swrast context instead of allocating itBrian Paul2002-04-191-57/+57
| | | | | on the stack frame in the point/line/triangle functions. (Klaus Niederkrueger) This should solve the performance problem Karl found on Windows.
* Klaus Niederkrueger's latest changes: use INIT_SPAN() to init span primitiveBrian Paul2002-04-121-9/+9
| | | | type, width, interp mask and array mask.
* removed a bad assertionBrian Paul2002-03-251-2/+1
|
* New mipmap lambda calculation. Previously, trilinear filtering couldBrian Paul2002-03-161-56/+15
| | | | | result in _very_ blurry textures. Still need to do some optimization of the new code in s_span.c
* sw_span can now hold x/y arrays of fragment positions - getting ready toBrian Paul2002-02-021-7/+11
| | | | | ditch the pb (pixel buffer) code. Converted point drawing, bitmaps and aa lines to use new span functions.
* don't use affine/persp_textured_triangle funcs when CHAN_BITS > 8Brian Paul2002-01-301-3/+3
|
* 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.