summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl/t_context.h
Commit message (Collapse)AuthorAgeFilesLines
* tnl: Maintain the _WindowMap matrix in TNLcontext v2.Mathias Froehlich2015-04-051-0/+1
| | | | | | | | | | | | This is the only real user of _WindowMap which has the depth buffer scaling multiplied in. Maintain the _WindowMap of the one and only viewport inside TNLcontext. v2: Remove unneeded parentheses. Reviewed-by: Brian Paul <[email protected]> Signed-off-by: Mathias Froehlich <[email protected]>
* mesa: remove outdated version lines in commentsRico Schüller2013-06-051-1/+0
| | | | Signed-off-by: Brian Paul <[email protected]>
* 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]>
* Replace gl_vert_result enum with gl_varying_slot.Paul Berry2013-03-151-1/+1
| | | | | | | | | | | This patch makes the following search-and-replace changes: gl_vert_result -> gl_varying_slot VERT_RESULT_* -> VARYING_SLOT_* Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Tested-by: Brian Paul <[email protected]>
* mesa: Fix comments for NV_vp code that's now only used by other extensions.Eric Anholt2012-10-151-1/+1
| | | | Reviewed-by: Brian Paul <[email protected]>
* mesa: Push the shine table into the tnl module.Mathias Fröhlich2012-02-291-0/+18
| | | | | | | | | | 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]>
* mesa: Convert to use GLbitfield64 directly.Mathias Fröhlich2011-12-281-13/+1
| | | | | Signed-off-by: Mathias Froehlich <[email protected]> Reviewed-by: Brian Paul <[email protected]>
* mesa: Convert RENDERINPUTS* macros to GLbitfield64.Mathias Fröhlich2011-12-281-12/+14
| | | | | Signed-off-by: Mathias Froehlich <[email protected]> Reviewed-by: Brian Paul <[email protected]>
* mesa: Renumber the tnl attributes to match VERT_ATTRIB*.Mathias Fröhlich2011-12-021-29/+29
| | | | | | | | | | | | | Also renumber the tnl modules vertex attributes to match the renumbered VERT_ATTRIB_* values. This should fix https://bugs.freedesktop.org/show_bug.cgi?id=43353 Signed-off-by: Mathias Froehlich <[email protected]> Tested-by: Vinson Lee <[email protected]> Reviewed-by: Brian Paul <[email protected]>
* tnl: s/INLINE/inline/Brian Paul2011-11-301-1/+1
|
* mesa: add swrast_texture_image::BufferBrian Paul2011-10-231-1/+0
| | | | | | | | | | | | | | | In the past, swrast_texture_image::Data has been overloaded. It could either point to malloc'd memory storing texture data, or it could point to a current mapping of GPU memory. Now, Buffer always points to malloc'd memory (if we're not using GPU memory) and Data always points to mapped memory. The next step would be to rename Data -> Map. This change also involves adding swrast functions for mapping textures and renderbuffers prior to rendering to setup the Data pointer. Plus, corresponding functions to unmap texures and renderbuffers. This is very much like similar code in the dri drivers.
* tnl: implement instanced drawingBrian Paul2010-12-101-0/+2
|
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-131-23/+23
|
* tnl: Reduce header file inclusion in t_context.h.Vinson Lee2010-08-071-2/+0
| | | | | | | | | | | t_context.h Remove m_matrix.h and m_xform.h. t_vb_program.c Include m_xform.h. t_vb_render.c Include m_xform.h.
* tnl: Replace deprecated FogCoordPtr with AttribPtr[_TNL_ATTRIB_FOG]Eric Anholt2009-11-191-3/+0
|
* tnl: Replace deprecated ColorPtr[] with AttribPtr or new BackfaceColorPtr.Eric Anholt2009-11-191-3/+3
|
* tnl: Replace deprecated IndexPtr[] with AttribPtr[] or new BackfaceIndexPtrEric Anholt2009-11-191-2/+5
|
* tnl: Replace deprecated ObjPtr with AttribPtr[_TNL_ATTRIB_POS]Eric Anholt2009-11-191-1/+0
|
* tnl: Replace deprecated TexCoordPtr with AttribPtr[_TNL_ATTRIB_TEX*]Eric Anholt2009-11-191-2/+1
|
* tnl: Replace NormalPtr with AttribPtr[_TNL_ATTRIB_NORMAL]Eric Anholt2009-11-191-2/+1
|
* tnl: Remove unused NotifyInputChanges() tnl dd hook.Eric Anholt2009-11-191-5/+0
|
* Revert "Store clipping distance for user clip planes as part of vertex ↵Ian Romanick2009-10-221-1/+0
| | | | | | | | | | processing" This reverts commit f058b25881e08c9d89a33345e5c84e1357396932. This change is completely wrong in so many ways. When clip distances are generated as part of vertex processing, they must be interpolated to perform clipping. Geometric clipping goes right out the window.
* Store clipping distance for user clip planes as part of vertex processingIan Romanick2009-10-131-0/+1
| | | | | | | | | | | | | | Once the clipping distance is calculated and stored per vertex, the distances can be re-used when clipping is actually performed. This doesn't have any immediate benefit, but it paves the way for implementing gl_ClipDistance in vertex shaders and result.clip[] in vertex programs. This has not produces any oglconform regressions on my G31 system which uses software TNL. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Brian Paul <[email protected]>
* mesa: move call to init_c_cliptest() from enable.c to tnl module.Brian Paul2009-09-091-0/+4
| | | | Fixed gallium build breakage.
* mesa: move #include "bitset.h" out of mtypes.h - not needed in core MesaBrian Paul2009-02-281-0/+1
|
* mesa: move fixed function vertex program builder from tnl to core mesaKeith Whitwell2008-09-211-17/+0
| | | | | | Also unify caching of fragment and vertex programs in shader/prog_cache.c` Brought across from gallium-0.2
* fix refcounting bugs in tnl/tex program cachesBrian Paul2008-05-071-1/+1
|
* Be more consistant with paths in #includes. Eventually, eliminate a bunch ↵Brian2007-07-041-2/+2
| | | | of -I flags.
* remove unused VaryingPtrBrian2007-02-251-1/+0
|
* Merge branch 'origin' into glsl-compiler-1Brian2007-02-221-286/+54
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * pickup structs from vbo.hKeith Whitwell2006-10-311-1/+1
| |
| * Changes for new vbo-building module.Keith Whitwell2006-10-291-286/+54
| | | | | | | | | | | | | | | | | | | | - 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
|/
* bring in active_sz mechanism from i965 driver. Fixes bug 8410Keith Whitwell2006-09-251-0/+1
|
* Several loops over the map1/2 evaluator arrays were incorrect.Brian Paul2006-07-191-2/+5
| | | | | | | | 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.
* added _TNL_NUM_GENERICTilman Sauerbeck2006-06-291-0/+2
|
* Don't use nested struct definitions in tnl_clipspace_fastpath.Brian Paul2006-06-271-6/+8
| | | | | Make attr_type into a top-level type: tnl_attr_type See bug 7340.
* A number of vertex buffer fields like NormalPtr, FogCoordPtr, etc are reallyBrian Paul2006-06-141-1/+0
| | | | | | 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-141-25/+29
|
* Put color index attribute into the 6th attribute slot.Brian Paul2006-04-251-8/+10
| | | | | | 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-251-3/+8
| | | | GL_ARB_vertex_program.
* More GLSL code:Michal Krol2006-04-111-91/+69
| | | | | | | | | | | | - 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-1/+1
|
* Clean up clipping somewhatKeith Whitwell2005-12-011-5/+0
| | | | | | | | | | - 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).
* Added error checking in _tnl_Begin to detect incomplete framebuffer.Brian Paul2005-11-161-0/+6
| | | | | | Set new tnl->DiscardPrimitive field to true when such error is detected to discard the glBegin/End primitive when flushing. Added some new comments.
* Add a NotifyInputChanges() callback so that drivers (particularly tnlKeith Whitwell2005-11-011-0/+5
| | | | | drivers) can track when the sizes or strides of incoming VB->AttribPtr arrays have changed.
* Improve tnl program searching performance.Aapo Tahkola2005-10-311-3/+7
|
* Remove _tnl_MakeCurrent() and the unused ctx->Driver.MakeCurrent() callback.Brian Paul2005-09-141-7/+1
|