aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl/t_context.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename _TNL_ATTRIB_ATTRIBUTE* to _TNL_ATTRIB_GENERIC*Brian Paul2006-06-141-1/+1
|
* prevent run_arb_vertex_program from running tnl programs unless ↵Aapo Tahkola2006-06-061-8/+1
| | | | ctx->_MaintainTnlProgram is set
* Put color index attribute into the 6th attribute slot.Brian Paul2006-04-251-1/+1
| | | | | | Update a lot of loops, conditionals to use the _TNL_FIRST/LAST_* values instead of specific vertex attributes. Remove the EdgeFlagv function from the GLvertexformat struct.
* More GLSL code:Michal Krol2006-04-111-12/+23
| | | | | | | | | | | | - use macros to access and modify render inputs bit-field; - un-alias generic vertex attributes for ARB vertex calls; - use MAX_VERTEX_PROGRAM_ATTRIBS (NV code) or MAX_VERTEX_ATTRIBS (ARB code) in place of VERT_ATTRIB_MAX; - define VERT_ATTRIB_GENERIC0..15 for un-aliased vertex attributes for ARB_vertex_shader; - fix generic attribute index range check in arbprogparse.c; - interface GLSL varyings between vertex and fragment shader; - use 64-bit optimised bitset (bitset.h) for render inputs;
* C++ fixes, mostly casts (Stephane Conversy)Brian Paul2005-12-061-3/+3
|
* Make sure tnl->_DoVertexFog is kept uptodate. Fixes fog in i915Keith Whitwell2005-11-221-0/+5
| | | | driver.
* remove unneeded #includesBrian Paul2005-11-051-1/+0
|
* Fix segmentation fault in _tnl_ProgramCacheDestroy().Aapo Tahkola2005-11-011-3/+13
|
* use mesa import wrappers, bug 4468Brian Paul2005-09-161-1/+1
|
* Remove _tnl_MakeCurrent() and the unused ctx->Driver.MakeCurrent() callback.Brian Paul2005-09-141-15/+1
|
* include t_vp_build.hBrian Paul2005-06-271-4/+5
|
* Store compiled vertex program representations in a pointer in theKeith Whitwell2005-06-091-1/+7
| | | | | | | | | | | | | vertex_program struct. Allow switching between regular and vertex_program implementations of fixed function TNL with the MESA_TNL_PROG environment var (previously this required recompilation). Ensure program compilation only references program data, not the wider context. This means that compiled programs only need to be invalidated when the program string changes, not on other state changes.
* Update for FragmentProgram._ActiveKeith Whitwell2005-05-101-2/+2
|
* tweak previous fog/fragment program fixBrian Paul2005-04-261-3/+5
|
* enable fog render input if fragment program fog option setBrian Paul2005-04-261-1/+1
|
* Simplify the pipeline_stage structureKeith Whitwell2005-04-221-10/+2
| | | | | | | | | | - remove input/output fields, input tracking removed. - remove state fields, the validate function now called on every statechange. - add an explicit 'create' function. Add in code to build vertex program to implement current t&l state. Still disabled, but turn on with a #define in t_vp_build.h.
* Reverted the last change back to fix bug 3035Ben Crossman2005-04-151-1/+1
|
* A few getenv() that werent using the mesa wrapper versionBen Crossman2005-04-141-1/+1
|
* mesa-tnl-0-to-NULL.patch from Jeff MuizelaarKeith Whitwell2005-02-101-1/+1
|
* Silence gcc 3.4 warnings on ReactOS. Mostly unused var warnings. (patch ↵Brian Paul2004-08-251-0/+1
| | | | 1015696)
* Added ctx->Vertex/FragmentProgram._Enable flags. Set when vertex/fragmentBrian Paul2004-04-231-3/+3
| | | | | | | 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.
* protected all codegen behind AllowCodegenDaniel Borca2004-04-051-4/+3
|
* First round of codegen for t_vtx_api.c -- ie the Begin/Vertex/End code.Keith Whitwell2004-03-291-0/+4
| | | | Enable with env var: MESA_CODEGEN=t.
* turns out we probably need a _tnl_allow_pixel_fog() function afterallBrian Paul2004-02-241-1/+11
|
* A bit of an overhaul of the fog code.Brian Paul2004-02-171-0/+13
| | | | | | glFogCoord didn't always work reliably. ARB fragment program fog options work now. Per-fragment fog computations are now perspective corrected.
* Beef up t_vertex.c:Keith Whitwell2004-01-051-1/+5
| | | | | | | | | | | - 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.
* Re-commit t_vertex.[ch] changes to fd.o server.Keith Whitwell2004-01-051-0/+26
|
* call _ae_destroy_context() and _ae_invalidate_state() from the proper placesBrian Paul2003-12-131-1/+3
|
* Merge vtx-0-2-branchKeith Whitwell2003-11-241-42/+21
|
* Removed all RCS / CVS tags (Id, Header, Date, etc.) from everything.Ian Romanick2003-06-051-1/+0
|
* Added ctx->Texture._EnabledCoordUnits bitfield.Brian Paul2003-04-081-2/+4
| | | | | | Fixed some vertex array / vertex program glitches with glDrawElements. Fixed some fragment program runtime bugs. Non-trivial Cg programs are running now.
* added a comment for _tnl_need_projected_coords()Brian Paul2003-02-041-3/+8
|
* 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.
* replace Current.Color with Current.Attrib[VERT_ATTRIB_COLOR0]Brian Paul2002-08-211-2/+2
|
* update colormaterial state on swtcl wakeupKeith Whitwell2002-08-211-1/+6
|
* pass context pointer to _tnl_free_immediate(), removed backref pointerBrian Paul2002-04-191-2/+2
|
* bring in changes from dri tcl branchKeith Whitwell2002-04-091-13/+11
|
* More suport for t&l driversKeith Whitwell2002-02-131-7/+13
| | | | | Fix GLuint compare bugs Fix RESET_STIPPLE calls
* Replace old matrix stacks with new code based on struct matrix_stack.Brian Paul2001-12-181-4/+4
| | | | | | Moved vertex program hash table into shared context state. Implemented reference counting for vertex programs. Replaced tnl "ProjectedClip" with "Ndc" (normalized device coordinates).
* Added Win32 memory debugging and fixed a few memory leaks (Gerk Huisma)Brian Paul2001-07-191-1/+2
|
* Rename some of the tnl->Driver.* functions to tnl->Driver.Render.*, to make itKeith Whitwell2001-07-121-3/+3
| | | | | | | | | | | | | | 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.
* restore normal length optimization in dlistsKeith Whitwell2001-06-281-1/+11
|
* Adaptor code that lets tnl convert compiled (display list) cassettes backKeith Whitwell2001-06-041-1/+13
| | | | | | | to glVertex() type calls. Allows driver-supplied tnl modules to avoid fallback on glCallList inside begin/end pairs. Still a little buggy...
* Clean up translation of array elements, copying of elts in pure-eltKeith Whitwell2001-05-111-2/+3
| | | | cassettes. Fixes problem with isosurf/compiled-array-elt/strips.
* fix possible segfault on destroy contextKeith Whitwell2001-05-091-3/+1
|
* Split driver struct into swrast/tnl/core components.Keith Whitwell2001-03-191-6/+6
|
* Consistent copyright info (version number, date) across all files.Gareth Hughes2001-03-121-3/+3
|
* Clean up install, restore for exec vtxfmts.Gareth Hughes2001-03-111-2/+2
|
* Support for swappable tnl modules.Gareth Hughes2001-03-111-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Core Mesa provides a neutral tnl module that verifies the currently module before installing the tnl function pointers in a lazy fashion. It also records which tnl functions have been swapped out, and only restores these when tnl modules themselves are swapped. Fallback strategies: Drivers set a bitmask of dangerous stage changes. When such a state change occurs, the driver should restore the neutral tnl module via _mesa_restore_exec_vtxfmt(). The neutral tnl module will call _mesa_update_state(), followed by ctx->Driver.ValidateTnlModule() if the validation bitmask matches the new state bitmask. The driver should call _tnl_wakeup_exec() if it can no longer handle the current state, which will revert to the default tnl module. In this case, previous vertices should be replayed as required (depending on the current primitive) after the new tnl module is installed. If the driver uses chooser functions for any part of the tnl module, these should generally be reinstalled as part of the fallback to the neutral tnl module. For example, if the lighting state changes, a driver might fall back to the neutral tnl module, verify that the current lighting state can be handled, and use the chooser function to pick the most efficient implementation of the current lighting state. It is up to the drivers to detect and handle fallback cases caused by tnl function calls themselves (such as glTexCoord4f* if the current tnl module can't handle projected textures, for example).