summaryrefslogtreecommitdiff
path: root/src/mesa/tnl
AgeCommit message (Collapse)Author
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
2006-06-13remove unused index_attr1fv()Brian Paul
2006-06-13s/0/NULL/Brian Paul
2006-06-13When using an ARB vertex program, the generic vertex arrays do not alias theBrian Paul
conventional arrays. Typo: s/writeable/writable/
2006-06-13minor simplification in texcoord array importBrian Paul
2006-06-13remove some unneeded #includesBrian Paul
2006-06-12Add support for GL_APPLE_vertex_array_object. Several test programsIan Romanick
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.
2006-06-08check for invalid mode in glBegin(), bug 7142Brian Paul
2006-06-06prevent run_arb_vertex_program from running tnl programs unless ↵Aapo Tahkola
ctx->_MaintainTnlProgram is set
2006-06-01Fix extended swizzling in vertex programs by introducing special swizzle ↵Roland Scheidegger
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.
2006-05-23Add const qualifiers in a number of places.Brian Paul
2006-05-16Write attribs to slang machine.Michal Krol
2006-05-05Release temporaryKeith Whitwell
2006-04-25Remove carriage returns.Michal Krol
2006-04-25Put color index attribute into the 6th attribute slot.Brian Paul
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.
2006-04-25No longer alias generic vertex attribs with conventional attribs for ↵Brian Paul
GL_ARB_vertex_program.
2006-04-20error_attrib() should generate GL_INVALID_VALUE, not GL_INVALID_ENUM.Brian Paul
New doxygen comments, misc clean-ups.
2006-04-17Add .note.GNU-stack section to assembler files to avoid the default behaviorKristian Høgsberg
of requesting executable stacks.
2006-04-14Replace ctx->Const.MaxTextureUnits w/ ctx->Const.MaxTexture[Coord/Image]UnitsBrian Paul
in various places. Note that ctx->Texture.CurrentUnit needs to be tested against Coord/Image limits when referenced, not just in glActiveTexture().
2006-04-13silence minor warningsBrian Paul
2006-04-11More GLSL code:Michal Krol
- 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;
2006-04-06Rename CLIP_ALL_BITS to CLIP_FRUSTUM_BITS to reflect the fact that the valueBrian Paul
only includes the 6 frustum bits, not the user-clip plane bit, nor the vertex cull bit.
2006-04-06Fix line clipping bug 6512.Brian Paul
This fix is to discard the line if both dot products are negative.
2006-04-02Coverity #476: Avoid walking off the end of ->vtx.attrsz, it's declared toAdam Jackson
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.
2006-03-21GLSL fixes:Michal Krol
- 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;
2006-03-03fix up the emit_func list in the experimental arbprogram sse code.Roland Scheidegger
2006-03-02Add position_invarient supportKeith Whitwell
2006-02-27More GLSL code:Michal Krol
- 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;
2006-02-22include proper header file, remove local extern declarationsBrian Paul
2006-02-21 Committing in .Jouk Jansen
Update OpenVMS makefiles Modified Files: Mesa/src/mesa/shader/slang/descrip.mms Mesa/src/mesa/swrast/descrip.mms Mesa/src/mesa/tnl/descrip.mms ----------------------------------------------------------------------
2006-02-18More GLSL code.Michal Krol
- general constructors allowed; - implement noise functions (from Stefan Gustavson - thanks!) - cosmetic stuff.
2006-02-15Get arbfslight demo running.Michal Krol
2006-02-13Add ARB_vertex_shader stage just before render stage.Michal Krol
If enabled, all other stages, except render, are disabled.
2006-02-02use calloc instead of malloc so try_codegen field is initialized to zero ↵Brian Paul
(bug 5791)
2006-02-02add some assertions to check emit_func[] table validityBrian Paul
2005-12-08do away with 'long long' usageBrian Paul
2005-12-08use 64-bit typedefs for portabilityKarl Schultz
2005-12-06C++ fixes, mostly casts (Stephane Conversy)Brian Paul