summaryrefslogtreecommitdiff
path: root/src/mesa/swrast/s_triangle.c
AgeCommit message (Collapse)Author
2002-10-30don't call abort()Brian Paul
2002-10-24Header file clean-up:Brian Paul
1. Remove all.h and PC_HEADER junk. 2. Rolled mem.c and mem.h into imports.c and imports.h 3. Include imports.h instead of mem.h Restore _mesa_create/initialize_context() to be like they were in 4.0.4 New wrappers for a few std C functions: _mesa_atoi(), _mesa_strstr(), etc.
2002-09-23merge gl_texture_image RowStride from DRI 4.0.4Brian Paul
2002-08-07struct sw_span is again allocated on the stack, but the arrays of spanBrian Paul
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.
2002-07-09Overhaul of glRead/DrawBuffer() code. Now, swrast->Driver.SetBuffer()Brian Paul
indicates the read AND draw color buffer for all software rasterization. Lots of related clean-ups. See RELNOTES-4.1 for details.
2002-06-15Implemented GL_NV_texture_rectangle extension.Brian Paul
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.
2002-04-19Allocate a sw_span struct in the swrast context instead of allocating itBrian Paul
on the stack frame in the point/line/triangle functions. (Klaus Niederkrueger) This should solve the performance problem Karl found on Windows.
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