summaryrefslogtreecommitdiffstats
path: root/src/mesa/math
Commit message (Collapse)AuthorAgeFilesLines
* mesa: remove macintosh preprocessor stuffBrian Paul2013-11-041-6/+6
| | | | | | IIRC, this is MacOS 9.x stuff. Reviewed-by: Matt Turner <mattst88@gmail.com>
* mesa: remove Watcom C supportBrian Paul2013-11-041-2/+0
| | | | Reviewed-by: Eric Anholt <eric@anholt.net>
* mesa: remove outdated version lines in commentsRico Schüller2013-06-0521-21/+0
| | | | Signed-off-by: Brian Paul <brianp@vmware.com>
* mesa: Restore 78-column wrapping of license text in C-style comments.Kenneth Graunke2013-04-2321-63/+84
| | | | | | | | | | | | | | 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 <brianp@vmware.com>
* mesa: Add "OR COPYRIGHT HOLDERS" to license text disclaiming liability.Kenneth Graunke2013-04-2321-21/+21
| | | | | | | | | | | | | | | 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 <brianp@vmware.com>
* mesa: Change "BRIAN PAUL" to "THE AUTHORS" in license text.Kenneth Graunke2013-04-2321-21/+21
| | | | | | | | | | | | | | | | 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 <brianp@vmware.com>
* Remove OpenVMS supportMatt Turner2012-11-161-47/+0
| | | | | | | | | | Not maintained since 2008. Doubtful that it's worked in quite a while. Also see commit 32ac8cb05 which removed VMS stuff from Makefile in 2009. Cc: Jouk Jansen <j.jansen@tudelft.nl> Reviewed-by: Brian Paul <brianp@vmware.com> Signed-off-by: Andreas Boll <andreas.boll.dev@gmail.com>
* Don't cast the return value of malloc/reallocMatt Turner2012-09-053-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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/CONST/const/ in math/ filesBrian Paul2012-09-054-42/+42
| | | | | | The CONST macro hack will go away soon. Reviewed-by: Matt Turner <mattst88@gmail.com>
* mesa: remove SQRTF, use sqrtf. Convert INV_SQRT() to inline function.Brian Paul2012-09-031-1/+1
| | | | | | | We were already defining sqrtf where we don't have the C99 version. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Matt Turner <mattst88@gmail.com>
* mesa: fix _math_matrix_copy(), againBrian Paul2012-07-301-1/+1
| | | | | The matrix is 16 GLfloats in size. Since from->inv is just a pointer (not an array), sizeof(*from->inv) wasn't right.
* mesa: Fix wrong sizeof argument in _math_matrix_copy.Vinson Lee2012-07-301-1/+1
| | | | | | | Fixes Coverity wrong sizeof argument defect. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Signed-off-by: Brian Paul <brianp@vmware.com>
* mesa: remove obsolete matrix commentBrian Paul2012-07-261-1/+0
|
* mesa: fix comment typo: s/pointer/point/Brian Paul2012-07-261-1/+1
|
* mesa: remove _math_matrix_alloc_inv()Brian Paul2012-07-262-44/+12
| | | | | | | 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 <kenneth@whitecape.org>
* mesa: loosen small matrix determinant checkBrian Paul2012-07-261-1/+1
| | | | | | | | | | | | | When computing a matrix inverse, if the determinant is too small we could hit a divide by zero. There's a check to prevent this (we basically give up on computing the inverse and return the identity matrix.) This patch loosens this test to fix a lighting bug reported by Lars Henning Wendt. v2: use abs(det) to handle negative values NOTE: This is a candidate for the 8.0 branch. Tested-by: Lars Henning Wendt <lars.henning.wendt@gris.tu-darmstadt.de>
* Use INV_SQRT instead of 1/SQRTFMatt Turner2012-07-211-2/+2
| | | | | Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
* Remove src/mesa/ppcMatt Turner2012-01-211-6/+0
| | | | It didn't actually do anything except modify the GL_RENDERER string.
* mesa,glsl,mapi: Put extern "C" { ... } where appropriate.José Fonseca2011-11-091-0/+9
| | | | | Probably a several places missing, but enough to cover all headers (in)directly included by uniform_query.cpp, and fix the MSVC build.
* mesa: move last bits of GLchan stuff into swrastBrian Paul2011-09-201-1/+1
| | | | | This removes the last remnants of the GLchan datatype and associated macros out of core Mesa and into swrast.
* mesa: add error margin to clip mask debug/check codeBrian Paul2010-12-061-2/+29
| | | | | | | | When X or Y or Z is close to W the outcome of the floating point clip test comparision may be different between the C and x86 asm paths. That's OK; don't report an error. See fd.o bug 32093
* math: remove duplicated includesNicolas Kaiser2010-09-302-2/+0
| | | | | | Remove duplicated includes. Signed-off-by: Brian Paul <brianp@vmware.com>
* mesa: Fix printf format warning.Vinson Lee2010-09-291-1/+1
| | | | | | Fixes this GCC warning. math/m_debug_xform.c: In function '_math_test_all_transform_functions': math/m_debug_xform.c:320: warning: format not a string literal and no format arguments
* mesa: Fix printf format warning.Vinson Lee2010-09-291-1/+1
| | | | | | Fixes this GCC warning. math/m_debug_norm.c: In function '_math_test_all_normal_transform_functions': math/m_debug_norm.c:365: warning: format not a string literal and no format arguments
* mesa: Fix printf format warning.Vinson Lee2010-09-291-1/+1
| | | | | | Fixes this GCC warning. math/m_debug_clip.c: In function '_math_test_all_cliptest_functions': math/m_debug_clip.c:363: warning: format not a string literal and no format arguments
* mesa: Clean up header file inclusion in m_xform.h.Vinson Lee2010-08-031-2/+2
| | | | | | Include compiler.h for CONST symbol. Remove config.h as m_xform.h uses no additional symbols from config.h.
* mesa: Reduce header file inclusion in m_translate.h.Vinson Lee2010-08-031-1/+2
| | | | m_translate.h does not use any additional symbols added by config.h.
* mesa: Include missing header in m_matrix.h.Vinson Lee2010-08-031-0/+2
|
* mesa: Remove unnecessary headers.Vinson Lee2010-07-301-1/+0
|
* mesa: Include macros.h in files that use symbols from macros.h.Vinson Lee2010-07-301-0/+1
| | | | Don't rely on inclusion of other files that already include macros.h.
* mesa: Remove no-op wrappers around trig functions.Eric Anholt2010-05-131-2/+2
|
* Grammar and spelling fixesJeff Smith2010-03-122-2/+2
| | | | | Signed-off-by: Jeff Smith <whydoubt@yahoo.com> Signed-off-by: Brian Paul <brianp@vmware.com>
* Drop macro wrappers for the aligned memory functionsKristian Høgsberg2010-02-194-10/+10
|
* Replace the _mesa_*printf() wrappers with the plain libc versionsKristian Høgsberg2010-02-194-63/+63
|
* mesa: replace old MEMSET macro with memsetBrian Paul2010-02-191-7/+7
|
* mesa: replace old MEMCPY macro with memcpyBrian Paul2010-02-191-14/+14
|
* mesa: Remove _mesa_exit wrapper for exit().Eric Anholt2009-12-221-1/+1
| | | | | It does nothing else while being less useful than exit() because it lacks attributes that real exit() has.
* mesa: fix viewport_z_clip breakageBrian Paul2009-09-081-7/+15
|
* mesa: Add support for ARB_depth_clamp.Eric Anholt2009-09-083-20/+39
| | | | | This currently doesn't include fixing up the cliptests in the assembly paths to support ARB_depth_clamp, so enabling depth_clamp forces the C path.
* mesa: GLvector4f:: flags is a GLbitfield, update comments too.Brian Paul2009-05-072-5/+5
|
* mesa: add storage_count field to GLvector4f. Useful for debugging.Brian Paul2009-05-072-0/+2
|
* mesa: reformatting, updated comments, const-correctnessBrian Paul2009-05-072-59/+50
|
* mesa: only clear matrix MAT_DIRTY_INVERSE flag when we actually compute the ↵Brian Paul2009-04-031-3/+2
| | | | | | | | inverse If _math_matrix_analyse() got called before we allocated the inverse matrix array we could lose the flag indicating that we needed to compute the inverse. This could happen with certain vertex shader cases.
* mesa: Fix DEBUG_MATH build on sparc.David S. Miller2009-02-261-2/+2
| | | | | | | | | | Need to use '__asm__' instead of plain 'asm'. math/m_debug_clip.c: In function ‘test_cliptest_function’: math/m_debug_clip.c:253: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘asm’ math/m_debug_clip.c:253: warning: implicit declaration of function ‘asm’ Signed-off-by: David S. Miller <davem@davemloft.net>
* mesa: move _mesa_transform_vector() from m_xform.c to m_matrix.cBrian Paul2009-02-124-25/+24
| | | | | m_xform.c is omitted from gallium builds but _mesa_transform_vector() is still needed.
* mesa: remove unused functions in m_xform.[ch]Brian Paul2009-02-122-87/+0
| | | | | | | | The functions are: _mesa_project_points() _mesa_transform_bounds3() _mesa_transform_bounds2() _mesa_transform_point_sz()
* mesa: remove empty, unneeded mathmod.h headerBrian Paul2009-02-122-40/+0
|
* mesa: get rid of _math_init()Brian Paul2009-02-112-10/+0
| | | | | | | | | | | Only VBO uses the evaluator code so call _math_init_eval() there. Only TNL uses the transform/translate code so call _math_init_transformation() and _math_init_translate9) there. This is a step toward resolving some symbol collisions between Mesa's and gallium's x86 codegen. Have VBO and TNL modules call _math_init_transformation()
* Merge commit 'origin/master' into gallium-0.2Alan Hourihane2009-01-141-0/+12
|\ | | | | | | | | | | | | | | | | | | | | Conflicts: docs/install.html docs/relnotes-7.3.html src/mesa/shader/slang/slang_codegen.c src/mesa/shader/slang/slang_compile.c src/mesa/shader/slang/slang_emit.c src/mesa/shader/slang/slang_preprocess.c src/mesa/shader/slang/slang_preprocess.h
| * mesa: fix incorrect transformation of GL_SPOT_DIRECTIONBrian Paul2009-01-141-0/+12
| | | | | | | | This was changed between GL 1.0 and 1.1. Mesa still had the 1.0 behaviour.