summaryrefslogtreecommitdiff
path: root/src/mesa/tnl
AgeCommit message (Collapse)Author
2007-01-16Merge vbo_0_1_branchKeith Whitwell
Hopefully leaving behind the cruft generated by the CVS import.
2007-01-16Merge branch 'master' of git+ssh://keithw@git.freedesktop.org/git/mesa/mesa ↵Keith Whitwell
into vbo-0.2 Conflicts: src/mesa/array_cache/sources src/mesa/drivers/dri/i965/brw_context.c src/mesa/drivers/dri/i965/brw_draw.c src/mesa/drivers/dri/i965/brw_fallback.c src/mesa/drivers/dri/i965/brw_vs_emit.c src/mesa/drivers/dri/i965/brw_vs_tnl.c src/mesa/drivers/dri/mach64/mach64_context.c src/mesa/main/extensions.c src/mesa/main/getstring.c src/mesa/tnl/sources src/mesa/tnl/t_save_api.c src/mesa/tnl/t_save_playback.c src/mesa/tnl/t_vtx_api.c src/mesa/tnl/t_vtx_exec.c src/mesa/vbo/vbo_attrib.h src/mesa/vbo/vbo_exec_api.c src/mesa/vbo/vbo_save_api.c src/mesa/vbo/vbo_save_draw.c
2007-01-15Remove debug, reenable inplace splitting.keithw
2007-01-15Split too-large draw commands.Keith Whitwell
Use the vbo_split_ functionality to split incoming drawing command to fit within the fixed-size buffers used by software t&l module.
2006-11-29check for target instead of program->Target in _tnl_program_string, avoids ↵Roland Scheidegger
segfault if program is NULL
2006-11-22decrease the current vertex count by 1 if an uneven number of vertices is ↵Roland Scheidegger
copied by _tnl_copy_vertices. Otherwise, since in this case it will copy an extra vertex to avoid problems with vertex order in the new buffer, one triangle will be drawn twice. This fixes bug #9062.
2006-11-22remove unneded call to _tnl_invalidate_state() in ↵Roland Scheidegger
_tnl_need_projected_coords(). Connected to bug #9103, though that bug got fixed without this change too.
2006-11-22Set _NEW_LIGHT when materials are present in display lists also.Keith Whitwell
2006-11-22Move setting of _NEW_LIGHT to only occur when materials are present.Keith Whitwell
2006-11-21list header files in sources files (Dan Nicholson)Brian Paul
2006-11-16Make sure vbo's are mapped before accessing their contents inKeith Whitwell
api_arrayelt.c. Reported by Haihao Xiang.
2006-11-15Add a size parameter to _mesa_add_unnamed_constant() andBrian Paul
_mesa_add_named_constant() to indicate vector size (1, 2, 3 or 4). Always 4 for now...
2006-11-03Fix compiler warnings.Keith Whitwell
Add missing code for translating non-GLuint elements.
2006-11-02Fix type-conversion of incoming vertices.Keith Whitwell
Fix mis-application of increment to pointer variable.
2006-11-02merge current trunk into vbo branchAlan Hourihane
2006-11-02Respect array->Normalized flag.Keith Whitwell
Import edgeflag attribute to array of GLbooleans as expected by downstream code.
2006-11-02missing fileKeith Whitwell
2006-10-31signal _NEW_LIGHT in _tnl_copy_to_current()Brian Paul
2006-10-31pickup structs from vbo.hKeith Whitwell
2006-10-30better handling of current attributes. Trivial dlist and varray tests workKeith Whitwell
2006-10-30Move gl_vertex_program_machine struct out of mtypes.h and put into nvvertexec.h.Brian Paul
Massage nvvertexec.c code to work more like s_nvfragprog.c - another step toward unifying vertex/fragment program execution.
2006-10-29Changes for new vbo-building module.Keith Whitwell
- Removed all the old immediate, array and display list code. - Remove references to the old array_cache module. - Added a _tnl_draw_prims() entrypoint. - Added a simplified data import facility for converting non-floating point data as required. Checkpoint commit - trivial/tri works.
2006-10-26If DEBUG, check that all array indices really do fall in [start,end] inBrian Paul
the DrawRangeElements() call. Warn the user if that's not true.
2006-10-25Previously, if a fragment program referenced fragment.fogcoord but theBrian Paul
program didn't use the ARB_fog_linear option, the fragment program's fragment.fogcoord register wasn't loaded properly.
2006-10-18Fix broken line clipping.Brian Paul
When both ends of the line were clipped, we were using the new v0 instead of the original v0 when computing the location of the second vertex. Thus, the second vertex's position was incorrect. Thanks to Heath Feather for finding a test case.
2006-10-18Fix a dangerous use of ASSERT in an else-clause not enclosed in braces.Brian Paul
We've been lucky if this hasn't been causing line rendering bugs.
2006-10-11List of source (.c) files in each directory.Brian Paul
To be included by X.org Makefile.am files so that lists of files don't need to be hardcoded and frequently updated there.
2006-10-10a step toward moving run-time vertex program state out of GLcontextBrian Paul
2006-10-07do not import arrays for generic arb attribs if the array is not enabled ↵Roland Scheidegger
(same as for generic attribs for nv vp is already done). Since the requested stride is 16, otherwise the code would end up doing lots of unnecessary import work (in doom3, trans_4_GLfloat_4f_raw caused by that was by far the single most time-consuming function in the r200 driver, not importing the disabled arrays caused the cpu time spent in the driver to drop from 45% to 30%, though real-world gain was pretty minimal as it's not really cpu bound here in the first place).
2006-09-25bring in active_sz mechanism from i965 driver. Fixes bug 8410Keith Whitwell
2006-09-22don't skip user clip plane clipping when the current vertex program is ↵Roland Scheidegger
position invariant.
2006-09-13just comments and const qualifiersBrian Paul
2006-09-13fix broken do_EXP()Brian Paul
2006-09-07only allow VERT_ATTRIB_MAX instead of _TNL_ATTRIB_MAX for inputs of vertex ↵Roland Scheidegger
programs (fixes a segfault since the result of the shift is undefined otherwise, and it may happen that _TNL_ATTRIB_POINTSIZE will be tried to read, unlike all other attribs this however may be unitialized (might be a bug in itself)).
2006-08-25Remove XFree86 CVS keyword.Brian Paul
2006-08-25In _save_End(), set CurrentExecPrimitive = PRIM_OUTSIDE_BEGIN_END ifBrian Paul
we're in GL_COMPILE_AND_EXECUTE mode. This fixes bug 7984.
2006-08-25improved commentsBrian Paul
2006-08-10Fixup more PROGRAM_UNDEFINED problems.Alan Hourihane
2006-08-03use WRITE_MASK_* instead of 0x1, 0x2, etcBrian Paul
2006-08-01Clean-up FEATURE_ARB_shader_objects #ifdefs. Bug 7492.Michal Krol
2006-07-20Some structure renaming. Prefix vertex/fragment-related structs withBrian Paul
"gl_" to match other structs.
2006-07-20use ctx->Light.ShadeModel instead of ctx->_TriangleCapsBrian Paul
2006-07-19Several loops over the map1/2 evaluator arrays were incorrect.Brian Paul
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.
2006-06-29added _TNL_NUM_GENERICTilman Sauerbeck
2006-06-27Don't use nested struct definitions in tnl_clipspace_fastpath.Brian Paul
Make attr_type into a top-level type: tnl_attr_type See bug 7340.
2006-06-18fix broken negateAapo Tahkola
2006-06-14A number of vertex buffer fields like NormalPtr, FogCoordPtr, etc are reallyBrian Paul
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.
2006-06-14Rename _TNL_ATTRIB_ATTRIBUTE* to _TNL_ATTRIB_GENERIC*Brian Paul
2006-06-14new assertionBrian Paul
2006-06-13remove debug printfBrian Paul