summaryrefslogtreecommitdiff
path: root/src/mesa/swrast/s_triangle.c
AgeCommit message (Collapse)Author
2005-06-10pass mask array to PutRowRGB() in simple_z_textured_triangle()Brian Paul
2005-06-02Remove last of the old span code.Brian Paul
2005-05-04Major check-in of changes for GL_EXT_framebuffer_object extension.Brian Paul
Main driver impacts: - new code for creating the Mesa GLframebuffer - new span/pixel read/write code Some drivers not yet updated/tested.
2005-05-04Add a facility to route all rasterization through a fragment programKeith Whitwell
which is automatically generated to match the current texture environment state. Introduces a new value ctx->FragmentProgram._Active which is true when either _Enabled is true or there is such a fragment program ready to run. To test out on a driver running the software rasterizer, set MESA_TEX_PROG=t in the environment. It goes without saying that performance is lower for the software rasterizer in this mode.
2004-12-18Consolidate _swrast_write_texture_span() into _swrast_write_rgba_span().Brian Paul
2004-08-25Silence gcc 3.4 warnings on ReactOS. Mostly unused var warnings. (patch ↵Brian Paul
1015696)
2004-06-24fix HP occlusion testing when using generic span pathBrian Paul
2004-06-23Fixed occlusion_zless_triangle() to work with 16 or 32-bit Z buffers.Brian Paul
Removed some unneeded lines, other minor clean-ups.
2004-05-25only use simple_z_textured_triangle if depthBits <= 16Brian Paul
2004-04-23Added ctx->Vertex/FragmentProgram._Enable flags. Set when vertex/fragmentBrian Paul
program is enabled AND the currently bound program is valid. Check _Enable instead of Enable to prevent things from blowing up when someone calls glEnable(GL_VERTEX_PROGRAM_ARB) without actually defining a program.
2004-03-09Fix color index mode rendering.Brian Paul
Changed SWvertex's index field to GLfloat and fix a few other bits.
2004-02-17A bit of an overhaul of the fog code.Brian Paul
glFogCoord didn't always work reliably. ARB fragment program fog options work now. Per-fragment fog computations are now perspective corrected.
2004-02-17just some reformattingBrian Paul
2004-01-27Consolidate texObj->Pos/Neg/X/Y/Z and texObj->Image into a singleKeith Whitwell
array, texObj->Image[face][level].
2003-12-09Update NEED_SECONDARY_COLOR macro to test if either vertex/fragmentBrian Paul
programs are enabled and if they need secondary color input register. Patch by Karl Rasche, with tweaks by Brian.
2003-09-18s/_backface_sign/_BackfaceSign/Brian Paul
2003-07-03Implemented GL_ARB_texture_non_power_of_two (except for auto mipmap generation).Brian Paul
2003-06-13Implemented GL_ARB_occlusion_query (not 100% finalized).Brian Paul
2003-04-21remove unneeded fragment program testBrian Paul
2003-04-08Added ctx->Texture._EnabledCoordUnits bitfield.Brian Paul
Fixed some vertex array / vertex program glitches with glDrawElements. Fixed some fragment program runtime bugs. Non-trivial Cg programs are running now.
2003-03-25replace _mesa_ prefix with _swrast_, remove s_histogram.[ch]Brian Paul
2003-03-16Store partial derivative values in sw_span structure.Brian Paul
Implemented DDX and DDY fragment program instructions (whew!) Not fully tested yet.
2003-03-14Clean-up of parser error handling/reporting.Brian Paul
Basic fragment program texture instructions are limping along.
2003-03-01Killed mmath.[ch]. Moved low-level functions/assembly code into imports.[ch]Brian Paul
Moved type conversion and interpolation macros into macros.h Updated all the files that used to include mmath.h
2002-12-18comment changesBrian Paul
2002-11-13moved function declaration into the template, define the NAME to specify the ↵Brian Paul
function names
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