summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl/t_context.c
Commit message (Collapse)AuthorAgeFilesLines
* Be more consistant with paths in #includes. Eventually, eliminate a bunch ↵Brian2007-07-041-6/+6
| | | | of -I flags.
* fix a fragment fog regressionBrian2007-03-271-1/+1
|
* more parenthesisBrian2007-03-271-1/+1
|
* add parenthesis around a bit-wise AND term in _tnl_InvalidateState()Brian2007-03-271-1/+1
|
* Restore the UseTexEnvProgram logic.Brian2007-03-271-1/+1
| | | | | Was removed during glsl-compiler work. Still need to go back and revisit this because of the interaction with fragment shaders...
* When computing render_inputs_bitset, omit primary color if we have a ↵Brian2007-03-241-10/+11
| | | | fragment program and it doesn't need FRAG_ATTRIB_COL0. Silences valgrind warnings.
* Properly compute render_inputs_bitset when using a vertex program/shader.Brian2007-03-191-7/+13
| | | | This fixes a performance regression introduced early in glsl-compiler-1 work.
* Merge branch 'origin' into glsl-compiler-1Brian2007-02-221-92/+7
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/mesa/main/state.c src/mesa/shader/program.c src/mesa/shader/program.h src/mesa/shader/programopt.c src/mesa/shader/slang/slang_execute.c src/mesa/sources src/mesa/swrast/s_arbshader.c src/mesa/swrast/s_context.c src/mesa/swrast/s_span.c src/mesa/swrast/s_zoom.c src/mesa/tnl/t_context.c src/mesa/tnl/t_save_api.c src/mesa/tnl/t_vb_arbprogram.c src/mesa/tnl/t_vp_build.c src/mesa/tnl/t_vtx_eval.c
| * Merge branch 'master' of git+ssh://[email protected]/git/mesa/mesa ↵Keith Whitwell2007-01-161-4/+1
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into vbo-0.2 Conflicts: src/mesa/array_cache/sources src/mesa/drivers/dri/i965/brw_context.c src/mesa/drivers/dri/i965/brw_draw.c src/mesa/drivers/dri/i965/brw_fallback.c src/mesa/drivers/dri/i965/brw_vs_emit.c src/mesa/drivers/dri/i965/brw_vs_tnl.c src/mesa/drivers/dri/mach64/mach64_context.c src/mesa/main/extensions.c src/mesa/main/getstring.c src/mesa/tnl/sources src/mesa/tnl/t_save_api.c src/mesa/tnl/t_save_playback.c src/mesa/tnl/t_vtx_api.c src/mesa/tnl/t_vtx_exec.c src/mesa/vbo/vbo_attrib.h src/mesa/vbo/vbo_exec_api.c src/mesa/vbo/vbo_save_api.c src/mesa/vbo/vbo_save_draw.c
| * | merge current trunk into vbo branchAlan Hourihane2006-11-021-2/+3
| | |
| * | pickup structs from vbo.hKeith Whitwell2006-10-311-1/+1
| | |
| * | better handling of current attributes. Trivial dlist and varray tests workKeith Whitwell2006-10-301-0/+2
| | |
| * | Changes for new vbo-building module.Keith Whitwell2006-10-291-95/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Removed all the old immediate, array and display list code. - Remove references to the old array_cache module. - Added a _tnl_draw_prims() entrypoint. - Added a simplified data import facility for converting non-floating point data as required. Checkpoint commit - trivial/tri works.
* | | varying changesBrian2006-12-151-1/+1
| | |
* | | Checkpoint work for new GLSL compiler back-end.Brian2006-12-131-3/+8
| |/ |/| | | | | | | | | | | | | | | Among changes: Remove ctx->FragmentProgram._Active Remove _UseTexEnvProgram Move _MaintainTnlProgram, _MaintainTexEnvProgram, _TexEnvProgram and _TnlProgram fields. Remove/disable old GLSL interpreter code.
* | remove unneded call to _tnl_invalidate_state() in ↵Roland Scheidegger2006-11-221-4/+1
|/ | | | _tnl_need_projected_coords(). Connected to bug #9103, though that bug got fixed without this change too.
* Previously, if a fragment program referenced fragment.fogcoord but theBrian Paul2006-10-251-2/+3
| | | | | program didn't use the ARB_fog_linear option, the fragment program's fragment.fogcoord register wasn't loaded properly.
* Rename _TNL_ATTRIB_ATTRIBUTE* to _TNL_ATTRIB_GENERIC*Brian Paul2006-06-141-1/+1
|
* prevent run_arb_vertex_program from running tnl programs unless ↵Aapo Tahkola2006-06-061-8/+1
| | | | ctx->_MaintainTnlProgram is set
* Put color index attribute into the 6th attribute slot.Brian Paul2006-04-251-1/+1
| | | | | | 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.
* More GLSL code:Michal Krol2006-04-111-12/+23
| | | | | | | | | | | | - 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;
* C++ fixes, mostly casts (Stephane Conversy)Brian Paul2005-12-061-3/+3
|
* Make sure tnl->_DoVertexFog is kept uptodate. Fixes fog in i915Keith Whitwell2005-11-221-0/+5
| | | | driver.
* remove unneeded #includesBrian Paul2005-11-051-1/+0
|
* Fix segmentation fault in _tnl_ProgramCacheDestroy().Aapo Tahkola2005-11-011-3/+13
|
* use mesa import wrappers, bug 4468Brian Paul2005-09-161-1/+1
|
* Remove _tnl_MakeCurrent() and the unused ctx->Driver.MakeCurrent() callback.Brian Paul2005-09-141-15/+1
|
* include t_vp_build.hBrian Paul2005-06-271-4/+5
|
* Store compiled vertex program representations in a pointer in theKeith Whitwell2005-06-091-1/+7
| | | | | | | | | | | | | vertex_program struct. Allow switching between regular and vertex_program implementations of fixed function TNL with the MESA_TNL_PROG environment var (previously this required recompilation). Ensure program compilation only references program data, not the wider context. This means that compiled programs only need to be invalidated when the program string changes, not on other state changes.
* Update for FragmentProgram._ActiveKeith Whitwell2005-05-101-2/+2
|
* tweak previous fog/fragment program fixBrian Paul2005-04-261-3/+5
|
* enable fog render input if fragment program fog option setBrian Paul2005-04-261-1/+1
|
* Simplify the pipeline_stage structureKeith Whitwell2005-04-221-10/+2
| | | | | | | | | | - 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.
* Reverted the last change back to fix bug 3035Ben Crossman2005-04-151-1/+1
|
* A few getenv() that werent using the mesa wrapper versionBen Crossman2005-04-141-1/+1
|
* mesa-tnl-0-to-NULL.patch from Jeff MuizelaarKeith Whitwell2005-02-101-1/+1
|
* Silence gcc 3.4 warnings on ReactOS. Mostly unused var warnings. (patch ↵Brian Paul2004-08-251-0/+1
| | | | 1015696)
* Added ctx->Vertex/FragmentProgram._Enable flags. Set when vertex/fragmentBrian Paul2004-04-231-3/+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.
* protected all codegen behind AllowCodegenDaniel Borca2004-04-051-4/+3
|
* First round of codegen for t_vtx_api.c -- ie the Begin/Vertex/End code.Keith Whitwell2004-03-291-0/+4
| | | | Enable with env var: MESA_CODEGEN=t.
* turns out we probably need a _tnl_allow_pixel_fog() function afterallBrian Paul2004-02-241-1/+11
|
* A bit of an overhaul of the fog code.Brian Paul2004-02-171-0/+13
| | | | | | glFogCoord didn't always work reliably. ARB fragment program fog options work now. Per-fragment fog computations are now perspective corrected.
* Beef up t_vertex.c:Keith Whitwell2004-01-051-1/+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/+26
|
* call _ae_destroy_context() and _ae_invalidate_state() from the proper placesBrian Paul2003-12-131-1/+3
|
* Merge vtx-0-2-branchKeith Whitwell2003-11-241-42/+21
|
* Removed all RCS / CVS tags (Id, Header, Date, etc.) from everything.Ian Romanick2003-06-051-1/+0
|
* Added ctx->Texture._EnabledCoordUnits bitfield.Brian Paul2003-04-081-2/+4
| | | | | | Fixed some vertex array / vertex program glitches with glDrawElements. Fixed some fragment program runtime bugs. Non-trivial Cg programs are running now.
* added a comment for _tnl_need_projected_coords()Brian Paul2003-02-041-3/+8
|
* updated email addressesBrian Paul2002-10-291-2/+2
|