aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl/t_vb_fog.c
Commit message (Collapse)AuthorAgeFilesLines
* tnl: Replace deprecated FogCoordPtr with AttribPtr[_TNL_ATTRIB_FOG]Eric Anholt2009-11-191-1/+0
|
* tnl: Replace deprecated ObjPtr with AttribPtr[_TNL_ATTRIB_POS]Eric Anholt2009-11-191-6/+7
|
* mesa: prefix a bunch of #include lines with "main/".Brian Paul2008-09-181-6/+6
| | | | | This is another step toward removing a whole bunch of -I flags from the cc commands. Still need to address driver code...
* Compute/setup fog coordinates even if vertex program is enabled.H. Verbeet2008-06-161-3/+3
| | | | | Only when fog's enabled, of course. In the usual case, this is just a pass-through operation.
* minor fog calc cleanupRoland Scheidegger2007-10-031-12/+8
|
* fog: fix issues with negative fog coords (may fix #10529)Roland Scheidegger2007-05-221-7/+22
| | | | | | | Rework tnl fog a bit. Make sure we always use ABS(eyez) when fog coord source is depth, OTOH it does not seem to be necessary to use it (as was done before in some cases) if fog coord source is fogcoord (just to save some work). This fixes tests/fog (the first 2 cases) with i915/i915tex.
* Checkpoint work for new GLSL compiler back-end.Brian2006-12-131-4/+1
| | | | | | | | | Among changes: Remove ctx->FragmentProgram._Active Remove _UseTexEnvProgram Move _MaintainTnlProgram, _MaintainTexEnvProgram, _TexEnvProgram and _TnlProgram fields. Remove/disable old GLSL interpreter code.
* A number of vertex buffer fields like NormalPtr, FogCoordPtr, etc are reallyBrian Paul2006-06-141-7/+7
| | | | | | 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.
* GLSL fixes:Michal Krol2006-03-211-1/+1
| | | | | | | | | | | | | | | | | | - 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-1/+4
| | | | If enabled, all other stages, except render, are disabled.
* fixed constant fogcoord bug (#4729)Brian Paul2005-10-101-2/+8
|
* additional wrapper updates, bug 4468Brian Paul2005-09-191-1/+1
|
* Simplify the pipeline_stage structureKeith Whitwell2005-04-221-24/+6
| | | | | | | | | | - 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.
* 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-1/+1
| | | | | | | 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.
* use ABS(Z) when computing blend factorsBrian Paul2004-02-251-4/+4
|
* A few more tweaks to fog code.Brian Paul2004-02-171-6/+7
| | | | | Remove unneeded FABSF() macros. Added blend factor clamping in a few spots.
* A bit of an overhaul of the fog code.Brian Paul2004-02-171-21/+37
| | | | | | glFogCoord didn't always work reliably. ARB fragment program fog options work now. Per-fragment fog computations are now perspective corrected.
* new comments, rename some stuffBrian Paul2004-02-131-6/+13
|
* added _NEW_PROGRAM to check_state flags for pipeline stages (fixes vparray ↵Brian Paul2004-01-311-1/+1
| | | | demo bug)
* Re-commit t_vertex.[ch] changes to fd.o server.Keith Whitwell2004-01-051-0/+2
|
* Merge vtx-0-2-branchKeith Whitwell2003-11-241-8/+8
|
* 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-6/+5
| | | | | Moved type conversion and interpolation macros into macros.h Updated all the files that used to include mmath.h
* updated email addressesBrian Paul2002-10-291-2/+2
|
* 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.
* Clean-up/renaming of the per-vertex attribute bits, specifically, theBrian Paul2002-01-221-4/+4
| | | | | | VERT_BIT_* flags are new and used in many places (esp in T&L code). Updated some comments for doxygen. Various code clean-ups.
* Another vertex program checkpoint: clean-up of vertex attribute storageBrian Paul2002-01-061-7/+7
| | | | | | 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...
* Vertex program checkpoint commit: converted all vertex attributes (color,Brian Paul2002-01-051-20/+20
| | | | | | normal, texcoords, fogcoord, secondary color, etc) to GLfloat[4] datatype. Aliasing of glVertex, glNormal, glColor, glFogCoord, etc. to glVertexAttrib now complete.
* Replace old matrix stacks with new code based on struct matrix_stack.Brian Paul2001-12-181-2/+2
| | | | | | Moved vertex program hash table into shared context state. Implemented reference counting for vertex programs. Replaced tnl "ProjectedClip" with "Ndc" (normalized device coordinates).
* vertex program check-inBrian Paul2001-12-141-11/+15
|
* more warning fixes (Karl Schultz)Brian Paul2001-09-141-7/+7
|
* increase FOG_MAX to 10.0 to fix CI conformace failureBrian Paul2001-05-151-5/+5
|
* Remove all traces of CULL_MASK_ACTIVE.Gareth Hughes2001-03-301-3/+4
|
* Split driver struct into swrast/tnl/core components.Keith Whitwell2001-03-191-4/+12
|
* Consistent copyright info (version number, date) across all files.Gareth Hughes2001-03-121-12/+12
|
* fixed a bunch of g++ warnings/errors. Compiling with g++ can help find lots ↵Brian Paul2001-03-071-4/+4
| | | | of potential problems
* more namespace clean-upsBrian Paul2001-03-031-3/+3
|
* lots of gl_*() to _mesa_*() namespace clean-upBrian Paul2001-03-031-6/+6
|
* added fog coord clampingBrian Paul2001-02-271-3/+5
|
* Use a lookup table to compute exponents in tnl fogging code. SlightlyKeith Whitwell2001-02-061-7/+42
| | | | clean up the shine table lookup macro.
* added divide by zero checkBrian Paul2001-01-031-2/+5
|
* Major rework of tnl moduleKeith Whitwell2000-12-261-0/+201
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.