summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast_setup/ss_vb.c
Commit message (Collapse)AuthorAgeFilesLines
* Beef up t_vertex.c:Keith Whitwell2004-01-051-448/+0
| | | | | | | | | | | - cope with input vectors with size less than that of the emitted attribute. - cope with vertices with 'holes' inside and between vertices. Fix calculation of tnl->render_inputs to work with fp programs. Mirror VB->PointSizePtr in VB->AttribPtr so that it can work with t_vertex.c. Transition swrast_setup/ to use t_vertex.c to build swrast vertices.
* Update NEED_SECONDARY_COLOR macro to test if either vertex/fragmentBrian Paul2003-12-091-0/+1
| | | | | programs are enabled and if they need secondary color input register. Patch by Karl Rasche, with tweaks by Brian.
* Merge vtx-0-2-branchKeith Whitwell2003-11-241-11/+12
|
* Assorted casts to silence g++ warnings.Brian Paul2003-09-191-1/+1
|
* Move away from using the ctx->_TriangleCaps bitfield.Brian Paul2003-09-181-2/+4
| | | | | New macros in context.h for testing state: NEED_SECONDARY_COLOR and NEED_TWO_SIDED_LIGHTING.
* Added ctx->Texture._EnabledCoordUnits bitfield.Brian Paul2003-04-081-6/+4
| | | | | | Fixed some vertex array / vertex program glitches with glDrawElements. Fixed some fragment program runtime bugs. Non-trivial Cg programs are running now.
* updated email addressesBrian Paul2002-10-291-2/+2
|
* Header file clean-up:Brian Paul2002-10-241-2/+2
| | | | | | | | 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.
* Applied Matt Sealey's patch to remove/isolate all stdio.h function calls.Brian Paul2002-06-291-2/+3
| | | | Instead of mstdio.[ch], use imports.[ch] to isolate these functions.
* Implemented GL_NV_texture_rectangle extension.Brian Paul2002-06-151-5/+5
| | | | | | | | | 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.
* Added ctx parameter to _mesa_debug()Brian Paul2002-06-151-23/+27
| | | | | | Added _mesa_printf() Updated SetDrawBuffer() function in all drivers (ala 4.0.3) Import 4.0.3/DRI changes.
* more removal of fprintf() callsBrian Paul2002-06-131-5/+5
|
* replaced 0xf and 0xf0 with TEXTURE0_ANY and TEXTURE1_ANYBrian Paul2002-06-061-3/+3
|
* implemented vertex program point size controlBrian Paul2002-01-061-2/+3
|
* Lighting now emits colors as CHAN_TYPE, as it used to. This will requireKeith Whitwell2001-07-171-11/+59
| | | | minor adjustments in the dri drivers for twosided lighting to work again.
* Rename some of the tnl->Driver.* functions to tnl->Driver.Render.*, to make itKeith Whitwell2001-07-121-65/+153
| | | | | | | | | | | | | | clear that these are owned by t_vb_render.c. Make swrast_setup opaque - it now hooks itself directly into tnl->Driver.Render.*. Add a _swsetup_Wakeup() call that does this. Update X11 (tested), osmesa and FX drivers for this change. FX compiles but is probably broken as the changes there are large. It was the only remaining driver that used the internal _swsetup_ functions for interp and copy_pv. This usage has been replaced with code from the DRI tdfx driver.
* Remove ENABLE_* flags, ctx->_Enabled.Keith Whitwell2001-03-291-2/+2
| | | | Replace with ctx->Texture._TexMatEnabled, ctx->Texture._TexGenEnabled.
* Consistent copyright info (version number, date) across all files.Gareth Hughes2001-03-121-11/+12
|
* More g++ warning fixes. Fixes for CHAN_BITS==16, it seems to work.Brian Paul2001-03-081-1/+2
|
* 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.
* Fixes for performance bug on compiled array element paths.Keith Whitwell2001-01-171-0/+15
|
* Major rework of tnl moduleKeith Whitwell2000-12-261-64/+162
| | | | | | | New array_cache module Support 8 texture units in core mesa (now support 8 everywhere) Rework core mesa statechange operations to avoid flushing on many noop statechanges.
* Compute attenuated point size in a new pipeline stage.Brian Paul2000-12-081-9/+9
| | | | Store computed point size in the SWvertex struct.
* Move the transform and lighting code to two new directoriesKeith Whitwell2000-11-161-1/+4
| | | | | | | | | | | | | | | math: Provides basic matrix and vector functionality that might be useful to multiple software t&l implementations, and is used by core mesa to manage the Model, Project, etc matrices. tnl: The real transform & lighting code from core mesa, including everything from glVertex3f through vertex buffer handling, transformation, clipping, lighting and handoff to a driver for rasterization. The interfaces of these can be further tightened up, but the basic splitting up of state and code move is done.
* Cleanup of derived state calculation prior to seperating software T&LKeith Whitwell2000-11-131-6/+6
| | | | | | | | | | | | 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.
* fixed very obvious fog bugKeith Whitwell2000-11-071-0/+3
|
* added a setup function for selection/feedbackBrian Paul2000-11-061-19/+29
|
* A new module to provide RasterSetup and advanced triangle/line/pointKeith Whitwell2000-11-051-0/+173
functionality layered on top of the software rasterizer. An example entrypoint: void _swsetup_Triangle( GLcontext, GLuint, GLuint, GLuint, GLuint ) will coerce the software rasterizer to draw flat, twoside-lit, unfilled and offset triangles (including decomposition to points or lines).