summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/imports.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix compile time errors when building against uclibcAnthony G. Basile2012-07-241-1/+1
| | | | | | | | | | Mesa misses a few checks when compiling on a uclibc system which cause it to fall back on glibc-ism. This patch addresses those issues. Acked-by: Kenneth Graunke <[email protected]> Reviewed-by: Matt Turner <[email protected]> Signed-off-by: Anthony G. Basile <[email protected]>
* Remove unused _mesa_memset16Matt Turner2012-07-211-13/+0
| | | | | | | Unused since commit fd104a845. Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
* Remove _mesa_inv_sqrtf in favor of 1/SQRTFMatt Turner2012-07-211-106/+0
| | | | | | | | Except for a couple of explicit uses, _mesa_inv_sqrtf was disabled since its addition in 2003 (see f9b1e524). Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
* Remove _mesa_sqrt* in favor of plain sqrtMatt Turner2012-07-211-101/+0
| | | | | | | | | | Temporarily disabled since 2003 (see 386578c5b). This saves us from calling sqrt() 128 times to generate the sqrttab in one_time_init(). Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
* mesa: split error handling into its own filenobled2012-03-101-238/+7
| | | | Also add _mesa_vsnprintf.
* mesa: Don't use newlocale on HaikuAlexander von Gluck2012-01-241-1/+1
| | | | | | NOTE: This is a candidate for the 8.0 branch. Signed-off-by: Brian Paul <[email protected]>
* mesa: remove _mesa_ffs(), implement ffs() for non-GNU platformsBrian Paul2012-01-121-9/+6
| | | | | | | | | | | Call ffs() and ffsll() everywhere. Define our own ffs(), ffsll() functions when the platform doesn't have them. v2: remove #ifdef _WIN32, __IBMC__, __IBMCPP_ tests inside ffs() implementation. The #else clause was recursive. Reviewed-by: Kenneth Graunke <[email protected]> Tested-by: Alexander von Gluck <[email protected]>
* Fix gcc version checks for _mesa_bitcountAlan Coopersmith2011-10-211-1/+1
| | | | | | | | | | | | | | - Fix _GNUC__ typo in both checks - Fix logic error in check for gcc < 3.4 that breaks for gcc 2.x & older Without this fix, builds with gcc 3.4.x end up depending on undefined _mesa_bitcount instead of gcc's __builtin_popcount. NOTE: This is a candidate for the stable branches. Signed-off-by: Alan Coopersmith <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
* mesa: Create _mesa_bitcount_64() to replace i965's brw_count_bits()Paul Berry2011-10-061-0/+13
| | | | | | | | | | | | | | | | The i965 driver already had a function to count bits in a 64-bit uint (brw_count_bits()), but it was buggy (it only counted the bottom 32 bits) and it was clumsy (it had a strange and broken fallback for non-GCC-like compilers, which fortunately was never used). Since Mesa already has a _mesa_bitcount() function, it seems better to just create a _mesa_bitcount_64() function rather than special-case this in the i965 driver. This patch creates the new _mesa_bitcount_64() function and rewrites all of the old brw_count_bits() calls to refer to it. Reviewed-by: Ian Romanick <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
* mesa: Fix Android build by #ifdef'ing out locale supportChad Versace2011-08-161-1/+2
| | | | | | | Bionic does not support locales. This commit #ifdef's out the locale usage in _mesa_strtof(). Signed-off-by: Chad Versace <[email protected]>
* mesa: fix gcc version check for _mesa_bitcountRoland Scheidegger2011-06-091-3/+3
| | | | The version check was bogus, and only inside a non-gcc block anyway.
* mesa: only report up to 50 _mesa_problem() callsBrian Paul2011-03-171-5/+11
| | | | | | http://bugs.freedesktop.org/show_bug.cgi?id=35200 reports a disk partition getting filled because of warning messages. Stop emitting after 50.
* i965: Use compiler builtins when availableChris Wilson2011-02-211-9/+4
| | | | Signed-off-by: Chris Wilson <[email protected]>
* Point to bugs.freedesktop.org rather than bugzilla.freedesktop.orgCyril Brulebois2011-02-181-1/+1
| | | | | | Suggested by a freedesktop.org admin. Signed-off-by: Cyril Brulebois <[email protected]>
* mesa: Include mtypes.h in files that use gl_context struct.Vinson Lee2011-01-051-0/+1
| | | | | | Directly include mtypes.h if a file uses a gl_context struct. This allows future removal of headers that are not strictly necessary but indirectly include mtypes.h for a file.
* mesa: check for posix_memalign() errorspontus lidman2010-11-291-1/+2
| | | | Signed-off-by: Brian Paul <[email protected]>
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-131-5/+5
|
* mesa: Fix FreeBSD build with llvm enabled.Vinson Lee2010-08-121-1/+1
| | | | | On FreeBSD LC_CTYPE_MASK is not available but 'llvm-config --cppflags' adds the compiler flag -D_GNU_SOURCE to the build.
* mesa: Fix Cygwin build with llvm enabled.Vinson Lee2010-07-231-1/+1
| | | | | On Cygwin locale_t in not available but 'llvm-config --cppflags' adds the compiler flag -D_GNU_SOURCE to the build.
* mesa: Remove no-op wrappers around trig functions.Eric Anholt2010-05-131-35/+0
|
* mesa: Remove _mesa_pow(), which is always just pow().Eric Anholt2010-05-131-9/+0
|
* mesa: Fix build with gcc 3.3.Matthieu Herrb2010-04-191-1/+2
| | | | Signed-off-by: Brian Paul <[email protected]>
* Replace _mesa_strtod with _mesa_strtof.Marcin Baczyński2010-03-151-5/+7
| | | | Reviewed-by: Ian Romanick <[email protected]>
* mesa: restore _mesa_snprintf() - it's needed for WindowsBrian Paul2010-02-191-3/+16
| | | | This reverts part of commit 298be2b028263b2c343a707662c6fbfa18293cb2
* Replace the _mesa_*printf() wrappers with the plain libc versionsKristian Høgsberg2010-02-191-64/+3
|
* Replace _mesa_malloc, _mesa_calloc and _mesa_free with plain libc versionsKristian Høgsberg2010-02-191-30/+9
|
* mesa: replace _mesa_bzero() with memset()Brian Paul2010-02-191-11/+0
|
* Remove _mesa_memcmp in favor of plain memcmp.Kenneth Graunke2010-02-191-11/+0
| | | | This may break the SUNOS4 build, but it's no longer relevant.
* Remove _mesa_memset in favor of plain memset.Kenneth Graunke2010-02-191-11/+0
| | | | This may break the SUNOS4 build, but it's no longer relevant.
* Remove _mesa_memcpy in favor of plain memcpy.Kenneth Graunke2010-02-191-13/+2
| | | | This may break the SUNOS4 build, but it's no longer relevant.
* Remove _mesa_atoi in favor of plain atoi.Kenneth Graunke2010-02-191-8/+1
|
* Remove _mesa_strncmp in favor of plain strncmp.Kenneth Graunke2010-02-191-7/+0
|
* Remove _mesa_strcmp in favor of plain strcmp.Kenneth Graunke2010-02-191-7/+0
|
* Remove _mesa_strlen in favor of plain strlen.Kenneth Graunke2010-02-191-8/+1
|
* Remove _mesa_strncpy in favor of plain strncpy.Kenneth Graunke2010-02-191-7/+0
|
* Remove _mesa_strcpy in favor of plain strcpy.Kenneth Graunke2010-02-191-9/+2
|
* Remove _mesa_strncat in favor of plain strncat.Kenneth Graunke2010-02-191-7/+0
|
* Remove _mesa_strstr in favor of plain strstr.Kenneth Graunke2010-02-191-8/+1
|
* mesa: Remove _mesa_exit wrapper for exit().Eric Anholt2009-12-221-10/+0
| | | | | It does nothing else while being less useful than exit() because it lacks attributes that real exit() has.
* mesa: fix strict aliasing issues in half-to-float/float-to-half conversionsRoland Scheidegger2009-12-071-8/+9
| | | | use union instead of casts
* mesa: use gcc __builtin_popcount()Brian Paul2009-11-231-0/+4
|
* mesa: silence warning from gcc 4.4.1Brian Paul2009-11-041-2/+2
|
* mesa: fix broken _mesa_str_checksum()Brian Paul2009-10-231-2/+2
|
* mesa: Fix Mac OS build.Vinson Lee2009-10-201-0/+3
| | | | | strtod_l needs the xlocale.h header on Mac OS. It's possible other non-Linux OSes would need this header too.
* mesa: use C locale for _mesa_strtod()Brian Paul2009-10-161-0/+12
| | | | | | | | | _mesa_strtod() is used for shader/program parsing where the decimal point character is always '.' Use strtod_l() with a "C" locale to ensure correct string->double conversion when the actual locale uses another character such as ',' for the decimal point. Fixes bug 24531.
* mesa: added _mesa_str_checksum()Brian Paul2009-08-041-0/+14
|
* mesa: clean-up error debug/count codeBrian Paul2009-08-041-30/+41
|
* mesa: recognize and eliminate repeated error messagesKeith Whitwell2009-07-151-3/+31
|
* mesa: split out errorstring switch from _mesa_errorKeith Whitwell2009-07-151-36/+26
| | | | Move a chunk of code out of _mesa_error()
* mesa: remove dead code in _mesa_errorKeith Whitwell2009-07-151-6/+0
| | | | Remove early and unused snprintf and where[] string.