summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/matrix.c
Commit message (Collapse)AuthorAgeFilesLines
* mesa: remove FEATURE_userclip define.Oliver McFadden2012-09-151-2/+0
| | | | | Signed-off-by: Oliver McFadden <[email protected]> Reviewed-by: Brian Paul <[email protected]>
* Don't cast the return value of malloc/reallocMatt Turner2012-09-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | This patch has been generated by the following Coccinelle semantic patch: // Don't cast the return value of malloc/realloc. // // Casting the return value of malloc/realloc only stands to hide // errors. @@ type T; expression E1, E2; @@ - (T) ( _mesa_align_calloc(E1, E2) | _mesa_align_malloc(E1, E2) | calloc(E1, E2) | malloc(E1) | realloc(E1, E2) )
* 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/CALLOC/calloc/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/es: Validate glMatrixMode mode in Mesa code rather than the ES wrapperIan Romanick2012-08-291-3/+4
| | | | Signed-off-by: Ian Romanick <[email protected]>
* mesa: remove _math_matrix_alloc_inv()Brian Paul2012-07-261-3/+1
| | | | | | | Always allocate space for the inverse matrix in _math_matrix_ctr() since we were always calling _math_matrix_alloc_inv() anyway. Reviewed-by: Kenneth Graunke <[email protected]>
* mesa: Update clipping code to use ctx->Const.MaxClipPlanes.Paul Berry2011-09-201-1/+1
| | | | | | | | | | | | | To support GLSL 1.30, we will need to increase MAX_CLIP_PLANES to 8. To avoid breaking drivers that do not yet support 8 clip planes, this patch modifies the Mesa core code that pertains to clipping to use ctx->Const.MaxClipPlanes rather than MAX_CLIP_PLANES, since ctx->Const.MaxClipPlanes will remain 6 for drivers that only support 6 clip planes. Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
* mesa: 80-column wrapping and comment updatesBrian Paul2011-03-191-19/+20
|
* mesa: Directly include mfeatures.h in files that perform feature tests.Vinson Lee2011-01-071-0/+1
|
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-131-20/+20
|
* mesa: Remove SGI_color_matrix.Eric Anholt2010-09-231-6/+0
| | | | Another optional ARB_imaging subset extension.
* mesa: Add end of line to the end of a debug output.Pauli Nieminen2010-03-221-1/+1
|
* mesa: use Elements() as limit in loops over texture/program matrix stacksBrian Paul2010-02-031-4/+4
|
* mesa: disable texture unit error check in _mesa_MatrixMode()Brian Paul2009-06-101-0/+10
| | | | See comments for details.
* mesa: minor tweak to error messageBrian Paul2009-04-171-1/+1
|
* mesa: more error message infoBrian Paul2009-04-031-1/+2
|
* mesa: move glViewport and glDepthRange functions into new viewport.c fileBrian Paul2009-03-071-153/+3
| | | | A bit of refactoring with an eye toward ES2 and GL 3.1
* mesa: don't include m_xform.h where not neededBrian Paul2009-02-121-1/+0
|
* s/matrix_stack/gl_matrix_stack/ and s/mesa_list_state/gl_dlist_state/Brian2007-02-271-6/+6
|
* Fix copy-and-paste mistake in comment ("scaling" should read "translation").Gary Wong2006-12-151-1/+1
| | | | Before _mesa_Translatef().
* Replace ctx->Const.MaxTextureUnits w/ ctx->Const.MaxTexture[Coord/Image]UnitsBrian Paul2006-04-141-0/+4
| | | | | | in various places. Note that ctx->Texture.CurrentUnit needs to be tested against Coord/Image limits when referenced, not just in glActiveTexture().
* Silence minor compiler warnings (-Wextra).Brian Paul2006-04-051-2/+2
|
* Update the _WindowMap matrix in _mesa_set_viewport() and _mesa_DepthRange().Brian Paul2006-03-291-6/+28
| | | | | This is a temporary fix for the DRI drivers. Should really only have to update the matrix via _mesa_update_state().
* Move the computation of the viewport matrix into a new update_viewport_matrix()Brian Paul2006-03-291-47/+11
| | | | | | | function since the matrix depends on the viewport params and the framebuffer's depth buffer resolution. Fixes some renderbuffer / depth range issues. This simplifies the _mesa_set_viewport() and _mesa_DepthRange() functions too.
* Add a set of predicate functions for testing matrices instead of directlyBrian Paul2005-06-301-32/+21
| | | | | | testing the flags field. Move definition of all the MAT_FLAGs into the m_matrix.c file since they're now private.
* Major check-in of changes for GL_EXT_framebuffer_object extension.Brian Paul2005-05-041-4/+12
| | | | | | | Main driver impacts: - new code for creating the Mesa GLframebuffer - new span/pixel read/write code Some drivers not yet updated/tested.
* clamp viewport against ctx->Const.MaxViewportWidth/Height instead of ↵Brian Paul2005-02-021-4/+4
| | | | MAX_WIDTH/HEIGHT
* Remove _mesa_ResizeBuffersMESA() call from _mesa_set_viewport().Brian Paul2004-11-271-14/+3
| | | | | | | | Now, the driver's Viewport routine should call _mesa_ResizeBuffersMESA() if necessary. Cleaned up code related to GLframebuffer width/height initialization. Set initial viewport/scissor params in _mesa_make_current2(), instead of in the drivers' MakeCurrent functions.
* small correctionsDaniel Borca2004-06-071-1/+1
|
* Add EXT_vertex_cull support to mesaKeith Whitwell2004-05-101-1/+12
|
* remove redundant call to ctx->Driver.Viewport(), and clean-upsBrian Paul2004-03-181-9/+1
|
* more descriptive error messages for matrix stack over/underflowsBrian Paul2004-03-131-4/+20
|
* Added GLAPIENTRY decorations for all first level OpenGL API function entryKendall Bennett2003-10-211-22/+22
| | | | | points so that the calling conventions will work correctly with the assembler stubs with the Open Watcom compiler.
* Silence compiler warnings about implicit casts or conversions by supplying ↵Karl Schultz2003-08-301-1/+1
| | | | explicit casts and/or tweaking constant and variable definitions.
* Fix up some loose ends from the last big check-in.Brian Paul2003-07-181-0/+1
|
* Merge Jose's documentation and core Mesa changes from embedded branchKeith Whitwell2003-07-171-70/+495
|
* comments regarding window sizingBrian Paul2003-06-041-4/+11
|
* minor re-org of program matrix, program local parameter limitsBrian Paul2003-04-181-6/+29
|
* 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-7/+3
| | | | | | | | 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.
* minor error message changesBrian Paul2002-08-211-5/+6
|
* added some _mesa_debug() callsBrian Paul2002-06-231-1/+24
|
* Added ctx parameter to _mesa_debug()Brian Paul2002-06-151-7/+7
| | | | | | Added _mesa_printf() Updated SetDrawBuffer() function in all drivers (ala 4.0.3) Import 4.0.3/DRI changes.
* New _mesa_debug() function to replace fprintf() calls.Brian Paul2002-06-131-6/+6
| | | | | | | | Some source files updated to call _mesa_debug(), but not finished. Added __GLimports as a parameter to _mesa_create/init_context() and updated drivers accordingly. Fleshed-out more of the __GLimports and __GLexports functionality. Removed run-time config file support (config.c)
* Test for NULL pointer for LoadMatrix(), MultMatrix() andAlan Hourihane2002-04-221-1/+9
| | | | | Load/MultTransposeMatrix() and return without recording any errors or doing any multiplication.
* fixed a multitexture MatrixMode() bugBrian Paul2002-02-151-2/+2
|
* Replace old matrix stacks with new code based on struct matrix_stack.Brian Paul2001-12-181-176/+70
| | | | | | 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-14/+40
|
* compiler warningsKarl Schultz2001-09-181-12/+16
|
* removed old, redundant CurrentTransformUnit state varBrian Paul2001-06-121-4/+4
|