aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl/t_context.h
Commit message (Collapse)AuthorAgeFilesLines
* bring in active_sz mechanism from i965 driver. Fixes bug 8410Keith Whitwell2006-09-251-0/+1
|
* Several loops over the map1/2 evaluator arrays were incorrect.Brian Paul2006-07-191-2/+5
| | | | | | | | There's only 16 evaluator maps. Define new _TNL_NUM_EVAL constant for those loops. Also, fix priority of GL_NV_vertex_program generic maps - they override the conventional maps. See bug 7564.
* added _TNL_NUM_GENERICTilman Sauerbeck2006-06-291-0/+2
|
* Don't use nested struct definitions in tnl_clipspace_fastpath.Brian Paul2006-06-271-6/+8
| | | | | Make attr_type into a top-level type: tnl_attr_type See bug 7340.
* A number of vertex buffer fields like NormalPtr, FogCoordPtr, etc are reallyBrian Paul2006-06-141-1/+0
| | | | | | just aliases for members of the VB->AttribPtr[] array. Begin replacing FogCoordPtr with VB->AttribPtr[_TNL_ATTRIB_FOG], and similarly for NormalPtr, TexCoordPtr, PointSizePtr, etc.
* Rename _TNL_ATTRIB_ATTRIBUTE* to _TNL_ATTRIB_GENERIC*Brian Paul2006-06-141-25/+29
|
* Put color index attribute into the 6th attribute slot.Brian Paul2006-04-251-8/+10
| | | | | | 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.
* No longer alias generic vertex attribs with conventional attribs for ↵Brian Paul2006-04-251-3/+8
| | | | GL_ARB_vertex_program.
* More GLSL code:Michal Krol2006-04-111-91/+69
| | | | | | | | | | | | - 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-1/+1
|
* Clean up clipping somewhatKeith Whitwell2005-12-011-5/+0
| | | | | | | | | | - no need to update ClipMask on generated vertices - remove the VB->LastClipped value Line clipping algorithm changed and simplified somewhat. The old one was based on the triangle routine and probably wouldn't have recognized lines that were clipped down to nothing (ie culled, but not by a single plane).
* Added error checking in _tnl_Begin to detect incomplete framebuffer.Brian Paul2005-11-161-0/+6
| | | | | | Set new tnl->DiscardPrimitive field to true when such error is detected to discard the glBegin/End primitive when flushing. Added some new comments.
* Add a NotifyInputChanges() callback so that drivers (particularly tnlKeith Whitwell2005-11-011-0/+5
| | | | | drivers) can track when the sizes or strides of incoming VB->AttribPtr arrays have changed.
* Improve tnl program searching performance.Aapo Tahkola2005-10-311-3/+7
|
* Remove _tnl_MakeCurrent() and the unused ctx->Driver.MakeCurrent() callback.Brian Paul2005-09-141-7/+1
|
* Store compiled vertex program representations in a pointer in theKeith Whitwell2005-06-091-0/+11
| | | | | | | | | | | | | 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.
* Invalidate current fastpath on changes to attribute size or offset withinKeith Whitwell2005-05-191-0/+2
| | | | | | | | | the vertex. Use existing facilities to check for sse2 and enable when available. Turn on SSE/SSE2 codegen for t_vertex.c by default when USE_SSE_ASM is defined. Disable with "MESA_NO_CODEGEN=t".
* Remove old t_vertex.c codegen infrastructure, tie in new code.Keith Whitwell2005-05-181-34/+26
| | | | Currently disabled, can enable with MESA_EXPERIMENTAL=t.
* Fix the worst problems with dangling edgeflag references inKeith Whitwell2005-04-231-0/+3
| | | | | | display lists. These mainly arise from edgeflag being the only attribute no longer stored internally as a float and requiring various special case paths to accomodate it.
* Simplify the pipeline_stage structureKeith Whitwell2005-04-221-42/+22
| | | | | | | | | | - 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.
* additional parenthesis in TNL_CONTEXT macro (Nicolai Haehnle)Brian Paul2005-02-281-3/+3
|
* Determine ahead of time whether a display list will include verticesKeith Whitwell2005-01-221-0/+1
| | | | | | which have to be processed in the 'loopback' path. If so, send all vertices that way as the transition from playback->loopback has several problems.
* make tnl_clipspace_attr->insert field const, to silence warningBrian Paul2005-01-161-1/+1
|
* Add a couple of hardwired fastpaths to t_vertex.c.Keith Whitwell2005-01-051-2/+2
|
* Rename the various function types in t_context.h to include a tnl_ prefix.Keith Whitwell2004-07-011-39/+42
|
* Add infrastructure for t_vertex.c codegen. Add an example driverKeith Whitwell2004-06-301-1/+42
| | | | for this which spits out C code for the generated functions.
* Add EXT_vertex_cull support to mesaKeith Whitwell2004-05-101-0/+1
|
* Fix minor warnings found with g++.Brian Paul2004-05-041-1/+1
|
* dynfn --> _tnl_dynfnKeith Whitwell2004-03-311-10/+10
|
* First round of codegen for t_vtx_api.c -- ie the Begin/Vertex/End code.Keith Whitwell2004-03-291-2/+26
| | | | Enable with env var: MESA_CODEGEN=t.
* Streamline the error path in VertexAttrib functions. Makes thingsKeith Whitwell2004-03-151-1/+3
| | | | slightly easier for codegen.
* Added some comments. Minor const, int->GLint type changes, etc.Brian Paul2004-03-131-7/+13
|
* turns out we probably need a _tnl_allow_pixel_fog() function afterallBrian Paul2004-02-241-0/+1
|
* A bit of an overhaul of the fog code.Brian Paul2004-02-171-19/+18
| | | | | | 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-9/+22
| | | | | | | | | | | - 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/+47
|
* whitespace changes and new commentsBrian Paul2004-01-011-0/+5
|
* Call UpdateMaterials when they have changedKeith Whitwell2003-12-091-2/+5
|
* Merge vtx-0-2-branchKeith Whitwell2003-11-241-257/+293
|
* Store material attributes in an Attrib[] style array. This is aKeith Whitwell2003-08-051-2/+2
| | | | | first step to reviving/rescuing the 'vtx' rework from the old mesa tree.
* more docs (Klaus Niederkruger)Brian Paul2003-05-011-14/+30
|
* new comments (Klaus Niederkruger)Brian Paul2003-04-281-10/+37
|
* reduce memory needed for vertex attributes (allocate on demand)Brian Paul2003-03-311-14/+10
|
* minor clean-ups, comments, etcBrian Paul2003-03-281-4/+13
|
* First batch of code for GL_NV_fragment_program.Brian Paul2003-01-141-4/+4
| | | | | Re-org of some GL_NV_vertex_program code. Replace MAX_TEXTURE_UNITS with MAX_TEXTURE_COORD_UNITS and MAX_TEXTURE_IMAGE_UNITS.
* removed old VERT_* defines, use VERT_BIT_* insteadBrian Paul2002-10-091-35/+1
|
* Added new bitfields to tnl_eval_store for NV_vertex_program evaluatorsBrian Paul2002-06-231-1/+4
|
* pass context pointer to _tnl_free_immediate(), removed backref pointerBrian Paul2002-04-191-2/+34
|
* bring in changes from dri tcl branchKeith Whitwell2002-04-091-4/+9
|
* casts to silence compiler warningsKarl Schultz2002-04-041-3/+3
|