summaryrefslogtreecommitdiff
path: root/src/mesa/tnl/t_array_import.c
AgeCommit message (Collapse)Author
2005-05-03Import all texture coordinate arrays. Import them only once.Keith Whitwell
2005-04-25Ensure all VB->AttribPtr[] are populated. Reported by Aapo TahkolaKeith Whitwell
2005-04-22Simplify the pipeline_stage structureKeith Whitwell
- 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.
2005-02-10mesa-tnl-0-to-NULL.patch from Jeff MuizelaarKeith Whitwell
2005-01-05Give attributes with zero-stride a count of 1 to make it easierKeith Whitwell
to avoid transforming the same attribute multiple times. Don't light a single normal multiple times in light_fast_rgba*
2004-08-25Silence gcc 3.4 warnings on ReactOS. Mostly unused var warnings. (patch ↵Brian Paul
1015696)
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-01-14Fix up more confusions with count vs end in array functionsKeith Whitwell
2004-01-09Change < to <= when testing counts against ctx->Const.MaxArrayLockSize,Brian Paul
per Daniel Borca. Also, added XXX comments to mark where there may be a problem with the calls to _tnl_vb_bind_arrays(). Is the last parameter a count or index?
2003-11-29Fix generic/conventional vertex array glitches.Brian Paul
Changed _NEW_ARRAY_ATTRIB_0 back to 0x10000 so that the conventional and generic enable bits do not alias. In ac_import.c test Array.Normal.Enabled instead of Array._Enabled & _NEW_ARRAY_COLOR0, etc. In t_array_import.c give priority for generic arrays over conventional arrays on an individual basis, not all or none.
2003-11-24minor cast fixesBrian Paul
2003-11-24set the VB->FogCoordPtr with the other legacy pointersBrian Paul
2003-11-24Merge vtx-0-2-branchKeith Whitwell
2003-10-22Initial work for bounds checking of vertex arrays and vertex buffer objects.Brian Paul
Only glDrawArrays() done so far. Simplified glVertex/Color/etcPointer functions. Misc casts added here and there.
2003-09-17Implement GL_ELEMENT_ARRAY_BUFFER_ARB for buffer objects.Brian Paul
2003-09-17GL_ARB_vertex_buffer_object working now, at least for non-indexedBrian Paul
vertex arrays.
2003-06-05Removed all RCS / CVS tags (Id, Header, Date, etc.) from everything.Ian Romanick
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-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-10-29updated email addressesBrian 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-06-29Applied Matt Sealey's patch to remove/isolate all stdio.h function calls.Brian Paul
Instead of mstdio.[ch], use imports.[ch] to isolate these functions.
2002-04-21Vertex program attribute arrays seem to work now. This includes fallbacksBrian Paul
to the conventional arrays when attribute arrays aren't enabled.
2002-04-19new castsBrian Paul
2002-01-22Clean-up/renaming of the per-vertex attribute bits, specifically, theBrian Paul
VERT_BIT_* flags are new and used in many places (esp in T&L code). Updated some comments for doxygen. Various code clean-ups.
2002-01-06Another vertex program checkpoint: clean-up of vertex attribute storageBrian Paul
in vertex_buffer. Improved vertex program pipeline stage such that output registers can be processed in a loop. Getting closer to where we need to be in order to implement performance optimizations...
2002-01-05Vertex program checkpoint commit: converted all vertex attributes (color,Brian Paul
normal, texcoords, fogcoord, secondary color, etc) to GLfloat[4] datatype. Aliasing of glVertex, glNormal, glColor, glFogCoord, etc. to glVertexAttrib now complete.
2001-12-14vertex program check-inBrian Paul
2001-08-13Removed optimizations (this code is now seldom used)Keith Whitwell
2001-05-17Comment out __FUNCTION__ usage.Keith Whitwell
2001-05-11Clean up _tnl_Begin/begin/hard_begin.Keith Whitwell
Fix some problems with draw_arrays, draw_elements.
2001-05-11Clean up translation of array elements, copying of elts in pure-eltKeith Whitwell
cassettes. Fixes problem with isosurf/compiled-array-elt/strips.
2001-04-28Support for floating point color representation in tnl module.Keith Whitwell
2001-04-26first pass at eval fixesKeith Whitwell
2001-04-17fixed mis-ordered args to _math_trans_4f() in _tnl_fill_immediate_drawarrays()Brian Paul
2001-03-12Consistent copyright info (version number, date) across all files.Gareth Hughes
2001-03-07fixed a bunch of g++ warnings/errors. Compiling with g++ can help find lots ↵Brian Paul
of potential problems
2001-02-20Added GLvector4chan type, removed lots of CHAN_TYPE ifdefs.Keith Whitwell
2001-02-15Fix propogation of material values in VB's that don't reach the lightingKeith Whitwell
stage. (Materials now treated more like colors, etc.). Continue whipping the dd templates into shape. Remove old NormalLength code; may come back as a driver helper, but not useful for, eg. hardware t&l drivers.
2001-01-24Lots of GLchan datatype changes.Brian Paul
Added GLvector4us datatype in math/m_vector.[ch] Added _math_trans_4us() in math/m_translate.[ch] Choose GLvector4ub, GLvector4us, GLvector4f at compile time based on CHAN_BITS. Made Driver.ClearColor() and Driver.ClearIndex() optional driver functions. Changed args to Driver.ClearColor(), updated drivers. Reordered files in Makefile.X11
2001-01-08Fixed 'IRound' to 'IROUND' in mmath.hKeith Whitwell
Fixed fallback path for drawarrays/_tnl_hard_begin. Removed disabled debug code.
2001-01-08Add a 'RenderPrimitive' callback to t_vb_render.c. Helps out driversKeith Whitwell
that used to require a 'ReducedPrimitiveChange' callback. Various compilation fixes for XFree86. Reverted to the older version of glcore.h used internally in XFree86, and moved it to 'Mesa/include/GL/internal/glcore.h', for compatibility with XFree86.
2001-01-05Remove 'pv' parameter from Line/Tri/Point funcs. The provoking vertexKeith Whitwell
is always the last vertex parameter. Modify clipping to preserve pv colors. Modify swrast and X11 driver to expect the pv in the last vertex (was looking in the first vertex previously). Remove all handling of flatshading from swrast_setup. Allow drivers to override the unclipped render tabs in tnl_render_stage directly. (Like in 3.4). Removed fxsimplerender stage. Modified t_vb_rendertmp.h to remove the need for 'parity' arguments in RENDER_TRI macros.
2000-12-28Add render stage for unclipped vb's to fx driver.Keith Whitwell
Bump MAX_TEXTURE_UNITS to 8 Fix mem. leak in destroy_lists Fix crash in q3 (cva generally)
2000-12-27Fixes for compiling assembly (disable unused 'masked' versions)Keith Whitwell
Fixes for compiling without debug. Fix line clipping Fix unfilled polygon clipping (should be correct now).
2000-12-26Major rework of tnl moduleKeith Whitwell
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.