aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl/t_vb_light.c
Commit message (Collapse)AuthorAgeFilesLines
* mesa: Restore 78-column wrapping of license text in C-style comments.Kenneth Graunke2013-04-231-3/+4
| | | | | | | | | | | | | | The previous commit introduced extra words, breaking the formatting. This text transformation was done automatically via the following shell command: $ git grep 'THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY' | sed 's/:.*$//' | xargs -I {} sh -c 'vim -e -s {} < vimscript where 'vimscript' is a file containing: /THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY/;/\*\// !fmt -w 78 -p ' * ' :wq Reviewed-by: Brian Paul <[email protected]>
* mesa: Add "OR COPYRIGHT HOLDERS" to license text disclaiming liability.Kenneth Graunke2013-04-231-1/+1
| | | | | | | | | | | | | | | This brings the license text in line with the MIT License as published on the Open Source Initiative website: http://opensource.org/licenses/mit-license.php Generated automatically be the following shell command: $ git grep 'THE AUTHORS BE LIABLE' | sed 's/:.*$//g' | xargs -I '{}' \ sed -i 's/THE AUTHORS/THE AUTHORS OR COPYRIGHT HOLDERS/' {} This introduces some wrapping issues, to be fixed in the next commit. Reviewed-by: Brian Paul <[email protected]>
* mesa: Change "BRIAN PAUL" to "THE AUTHORS" in license text.Kenneth Graunke2013-04-231-1/+1
| | | | | | | | | | | | | | | | Generated automatically be the following shell command: $ git grep 'BRIAN PAUL BE LIABLE' | sed 's/:.*$//g' | xargs -I '{}' \ sed -i 's/BRIAN PAUL/THE AUTHORS/' {} The intention here is to protect all authors, not just Brian Paul. I believe that was already the sensible interpretation, but spelling it out is probably better. More practically, it also prevents people from accidentally copy & pasting the license into a new file which says Brian is not liable when he isn't even one of the authors. Reviewed-by: Brian Paul <[email protected]>
* mesa: s/FREE/free/Brian Paul2012-09-011-1/+1
| | | | | | | v2: replace instances in dri/common/ dirs Reviewed-by: Matt Turner <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
* mesa: s/MALLOC/malloc/Brian Paul2012-09-011-1/+1
| | | | | | | v2: replace instances in dri/common/ dirs Reviewed-by: Matt Turner <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
* mesa: rename ColorMaterialBitmask to _ColorMaterialBitmaskBrian Paul2012-06-271-2/+2
| | | | Since it's a derived field.
* mesa: Push the shine table into the tnl module.Mathias Fröhlich2012-02-291-2/+132
| | | | | | | | | | All users of the shine table outside of the tnl module are gone. Move the implementation into the tnl module and prefix the public functions with _tnl. Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Brian Paul <[email protected]> Signed-off-by: Mathias Froehlich <[email protected]>
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-131-6/+6
|
* tnl: Remove color-index TNL supportIan Romanick2010-03-031-26/+11
| | | | Signed-off-by: Ian Romanick <[email protected]>
* tnl: Replace deprecated ColorPtr[] with AttribPtr or new BackfaceColorPtr.Eric Anholt2009-11-191-4/+1
|
* tnl: Replace deprecated IndexPtr[] with AttribPtr[] or new BackfaceIndexPtrEric Anholt2009-11-191-1/+0
|
* tnl: Replace deprecated ObjPtr with AttribPtr[_TNL_ATTRIB_POS]Eric Anholt2009-11-191-5/+5
|
* mesa: prefix a bunch of #include lines with "main/".Brian Paul2008-09-181-7/+7
| | | | | This is another step toward removing a whole bunch of -I flags from the cc commands. Still need to address driver code...
* Checkpoint work for new GLSL compiler back-end.Brian2006-12-131-8/+2
| | | | | | | | | Among changes: Remove ctx->FragmentProgram._Active Remove _UseTexEnvProgram Move _MaintainTnlProgram, _MaintainTexEnvProgram, _TexEnvProgram and _TnlProgram fields. Remove/disable old GLSL interpreter code.
* Put color index attribute into the 6th attribute slot.Brian Paul2006-04-251-2/+2
| | | | | | 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.
* GLSL fixes:Michal Krol2006-03-211-2/+2
| | | | | | | | | | | | | | | | | | - 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;
* Add ARB_vertex_shader stage just before render stage.Michal Krol2006-02-131-2/+8
| | | | If enabled, all other stages, except render, are disabled.
* Simplify the pipeline_stage structureKeith Whitwell2005-04-221-69/+36
| | | | | | | | | | - 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.
* Added a bunch of new comments, minor code clean-ups.Brian Paul2005-03-021-18/+45
|
* Using glColor3 commands to update materials could result in an undefinedBrian Paul2005-03-021-4/+6
| | | | alpha value. Fixed.
* mesa-tnl-0-to-NULL.patch from Jeff MuizelaarKeith Whitwell2005-02-101-1/+1
|
* Added ctx->Vertex/FragmentProgram._Enable flags. Set when vertex/fragmentBrian Paul2004-04-231-4/+3
| | | | | | | 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.
* added _NEW_PROGRAM to check_state flags for pipeline stages (fixes vparray ↵Brian Paul2004-01-311-1/+1
| | | | demo bug)
* Beef up t_vertex.c:Keith Whitwell2004-01-051-0/+5
| | | | | | | | | | | - 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/+4
|
* Merge vtx-0-2-branchKeith Whitwell2003-11-241-136/+138
|
* Initial work for bounds checking of vertex arrays and vertex buffer objects.Brian Paul2003-10-221-5/+5
| | | | | | Only glDrawArrays() done so far. Simplified glVertex/Color/etcPointer functions. Misc casts added here and there.
* Assorted casts to silence g++ warnings.Brian Paul2003-09-191-2/+2
|
* Use correct conversions when translating array colors.Keith Whitwell2003-08-201-7/+7
|
* Store material attributes in an Attrib[] style array. This is aKeith Whitwell2003-08-051-0/+8
| | | | | first step to reviving/rescuing the 'vtx' rework from the old mesa tree.
* Removed all RCS / CVS tags (Id, Header, Date, etc.) from everything.Ian Romanick2003-06-051-1/+0
|
* Killed mmath.[ch]. Moved low-level functions/assembly code into imports.[ch]Brian Paul2003-03-011-4/+3
| | | | | Moved type conversion and interpolation macros into macros.h Updated all the files that used to include mmath.h
* Header file clean-up:Brian Paul2002-10-241-2/+2
| | | | | | | | 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.
* More suport for t&l driversKeith Whitwell2002-02-131-2/+2
| | | | | Fix GLuint compare bugs Fix RESET_STIPPLE calls
* Clean-up/renaming of the per-vertex attribute bits, specifically, theBrian Paul2002-01-221-10/+10
| | | | | | VERT_BIT_* flags are new and used in many places (esp in T&L code). Updated some comments for doxygen. Various code clean-ups.
* vertex program check-inBrian Paul2001-12-141-13/+16
|
* Lighting now emits colors as CHAN_TYPE, as it used to. This will requireKeith Whitwell2001-07-171-17/+58
| | | | minor adjustments in the dri drivers for twosided lighting to work again.
* Support for floating point color representation in tnl module.Keith Whitwell2001-04-281-13/+30
|
* first pass at eval fixesKeith Whitwell2001-04-261-1/+3
|
* Consistent copyright info (version number, date) across all files.Gareth Hughes2001-03-121-21/+20
|
* fixed a bunch of g++ warnings/errors. Compiling with g++ can help find lots ↵Brian Paul2001-03-071-5/+5
| | | | of potential problems
* lots of gl_*() to _mesa_*() namespace clean-upBrian Paul2001-03-031-15/+15
|
* Added GLvector4chan type, removed lots of CHAN_TYPE ifdefs.Keith Whitwell2001-02-201-43/+11
|
* Allow swrast to cope (fairly) cleanly with GL_SEPERATE_SPECULAR whenKeith Whitwell2001-02-161-8/+5
| | | | | | | | | | | | | texturing is not enabled, and without requiring the two colors be added externally. As a part of this, collapsed the decomposition of quads into triangles inside swrast to be hardwired into _swrast_Quad; removed s_quads.[ch]. Removed checks on texture state from t_vb_light.c, which was previously required by swrast. Moved the t_dd_ templates to a new directory.
* Fixed conform problems with recent material tracking change.Keith Whitwell2001-02-161-15/+19
| | | | | | Remove redundant 'update_materials' stage. Fix conform segfault with seperate specular colors in mustpass.c. These tests still fail, however.
* only compute separate specular if texturing really enabledBrian Paul2001-01-291-3/+5
|
* Lots of GLchan datatype changes.Brian Paul2001-01-241-5/+36
| | | | | | | | | 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
* Replaced struct gl_visual with struct __GLcontextModesRec from glcore.h.Brian Paul2001-01-231-3/+3
| | | | | Replace "RGBAMode" with "rgbMode", etc. Other minor clean-ups.
* Add a 'RenderPrimitive' callback to t_vb_render.c. Helps out driversKeith Whitwell2001-01-081-2/+6
| | | | | | | | | | 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.
* Fixes for compiling assembly (disable unused 'masked' versions)Keith Whitwell2000-12-271-1/+3
| | | | | | Fixes for compiling without debug. Fix line clipping Fix unfilled polygon clipping (should be correct now).