summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl
Commit message (Collapse)AuthorAgeFilesLines
* added _TNL_NUM_GENERICTilman Sauerbeck2006-06-291-0/+2
|
* Don't use nested struct definitions in tnl_clipspace_fastpath.Brian Paul2006-06-272-7/+9
| | | | | Make attr_type into a top-level type: tnl_attr_type See bug 7340.
* fix broken negateAapo Tahkola2006-06-181-1/+1
|
* A number of vertex buffer fields like NormalPtr, FogCoordPtr, etc are reallyBrian Paul2006-06-1411-73/+76
| | | | | | 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-144-29/+33
|
* new assertionBrian Paul2006-06-141-0/+2
|
* remove debug printfBrian Paul2006-06-131-1/+0
|
* remove unused index_attr1fv()Brian Paul2006-06-131-6/+0
|
* s/0/NULL/Brian Paul2006-06-131-1/+1
|
* When using an ARB vertex program, the generic vertex arrays do not alias theBrian Paul2006-06-131-52/+74
| | | | | conventional arrays. Typo: s/writeable/writable/
* minor simplification in texcoord array importBrian Paul2006-06-131-1/+1
|
* remove some unneeded #includesBrian Paul2006-06-134-8/+2
|
* Add support for GL_APPLE_vertex_array_object. Several test programsIan Romanick2006-06-121-1/+1
| | | | | | | and demos are also added. Adding basic support to drivers should be as easy as just enabling the extension, though thorough test would also be required.
* check for invalid mode in glBegin(), bug 7142Brian Paul2006-06-081-0/+5
|
* prevent run_arb_vertex_program from running tnl programs unless ↵Aapo Tahkola2006-06-064-9/+16
| | | | ctx->_MaintainTnlProgram is set
* Fix extended swizzling in vertex programs by introducing special swizzle ↵Roland Scheidegger2006-06-013-132/+161
| | | | instruction, extend the 2 bit rsw field to 3 bit like used in other places. While here, also fix up rsw (negation), dph and try to fix up rsq with negative values (doesn't work, bug seems elsewhere) in the sse codegen code.
* Add const qualifiers in a number of places.Brian Paul2006-05-232-3/+3
|
* Write attribs to slang machine.Michal Krol2006-05-161-15/+22
|
* Release temporaryKeith Whitwell2006-05-051-0/+2
|
* Remove carriage returns.Michal Krol2006-04-251-285/+285
|
* Put color index attribute into the 6th attribute slot.Brian Paul2006-04-2513-93/+62
| | | | | | 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-254-70/+158
| | | | GL_ARB_vertex_program.
* error_attrib() should generate GL_INVALID_VALUE, not GL_INVALID_ENUM.Brian Paul2006-04-201-27/+46
| | | | New doxygen comments, misc clean-ups.
* Add .note.GNU-stack section to assembler files to avoid the default behaviorKristian Høgsberg2006-04-171-0/+4
| | | | of requesting executable stacks.
* Replace ctx->Const.MaxTextureUnits w/ ctx->Const.MaxTexture[Coord/Image]UnitsBrian Paul2006-04-144-7/+7
| | | | | | in various places. Note that ctx->Texture.CurrentUnit needs to be tested against Coord/Image limits when referenced, not just in glActiveTexture().
* silence minor warningsBrian Paul2006-04-131-4/+4
|
* More GLSL code:Michal Krol2006-04-115-140/+171
| | | | | | | | | | | | - 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;
* Rename CLIP_ALL_BITS to CLIP_FRUSTUM_BITS to reflect the fact that the valueBrian Paul2006-04-065-5/+7
| | | | | only includes the 6 frustum bits, not the user-clip plane bit, nor the vertex cull bit.
* Fix line clipping bug 6512.Brian Paul2006-04-061-24/+28
| | | | This fix is to discard the line if both dot products are negative.
* Coverity #476: Avoid walking off the end of ->vtx.attrsz, it's declared toAdam Jackson2006-04-021-1/+1
| | | | | | | | be _TNL_ATTRIB_MAX long so that's not a valid index (woo zero based indexing). This code still looks wrong though, the asymmetry between _tnl_copy_to_current and _tnl_copy_from_current has me worried.
* GLSL fixes:Michal Krol2006-03-2111-15/+15
| | | | | | | | | | | | | | | | | | - generate error on NULL pointers in glShaderSourceARB; - reinstall program object, if current, in glLinkProgramARB; - vertex and fragment shaders are optional in program object; - floor asm was wrongly computed for x86 back-end; - allow for (void) idiom in function prototypes; - all fixed-state uniforms are updated; - local variable initializers are working; - implement texture* and shadow* functions for vertex processor; - generate error if too many arguments in general constructor; - trim unused data in general constructor; - struct r-value field select was badly relocated; Changes: - add derived state gl_fog_attrib::_Scale; - add derived state gl_light::_CosCutoffNeg;
* fix up the emit_func list in the experimental arbprogram sse code.Roland Scheidegger2006-03-031-5/+45
|
* Add position_invarient supportKeith Whitwell2006-03-021-2/+17
|
* More GLSL code:Michal Krol2006-02-271-150/+51
| | | | | | | | | | | | | - add x86 code generator; - add full support for uniforms in ARB_shader_objects; - add assembly instruction: global_addr; - reorganize #includes; - built-in uniforms accessed by index, rather than by name; - add some entries to x86sse rtasm; - add configurations to VC6 projects: 'Release x86' and 'Debug x86'; - #define SLANG_X86 active only on VC6 x86 builds; - introduce code export table for a shader; - remove GNU license from the noise library;
* include proper header file, remove local extern declarationsBrian Paul2006-02-221-11/+4
|
* Committing in .Jouk Jansen2006-02-211-5/+6
| | | | | | | | | Update OpenVMS makefiles Modified Files: Mesa/src/mesa/shader/slang/descrip.mms Mesa/src/mesa/swrast/descrip.mms Mesa/src/mesa/tnl/descrip.mms ----------------------------------------------------------------------
* More GLSL code.Michal Krol2006-02-181-20/+40
| | | | | | - general constructors allowed; - implement noise functions (from Stefan Gustavson - thanks!) - cosmetic stuff.
* Get arbfslight demo running.Michal Krol2006-02-151-1/+21
|
* Add ARB_vertex_shader stage just before render stage.Michal Krol2006-02-1313-25/+397
| | | | If enabled, all other stages, except render, are disabled.
* use calloc instead of malloc so try_codegen field is initialized to zero ↵Brian Paul2006-02-021-3/+3
| | | | (bug 5791)
* add some assertions to check emit_func[] table validityBrian Paul2006-02-021-0/+6
|
* do away with 'long long' usageBrian Paul2005-12-082-14/+11
|
* use 64-bit typedefs for portabilityKarl Schultz2005-12-082-2/+2
|
* C++ fixes, mostly casts (Stephane Conversy)Brian Paul2005-12-065-14/+15
|
* Add guard before calling ctx->Driver.BindProgramKeith Whitwell2005-12-051-1/+2
|
* Call ProgramStringNotify after creating tnl programs.Keith Whitwell2005-12-011-0/+3
|
* Clean up clipping somewhatKeith Whitwell2005-12-012-41/+46
| | | | | | | | | | - 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).
* Use _mesa_exec_free for fp->func.Keith Whitwell2005-11-241-6/+6
|
* reference bug 5131 in comment in _tnl_free_vertices()Brian Paul2005-11-221-1/+1
|
* disable freeing of fp->func, see comment (bug 5131)Brian Paul2005-11-221-1/+8
|