aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/imports.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* mesa: don't call getenv every time _mesa_error is calledKeith Whitwell2009-07-151-11/+14
| | | | | | Buggy apps can generate thousands of mesa_error calls. Don't need to keep calling getenv to retreive the same MESA_DEBUG string each time.
* mesa: Output warnings to debugger on Windows.José Fonseca2009-05-301-0/+10
| | | | | Stderr of Windows applications without console is not usually visible.
* mesa: Call _mesa_snprintf instead of snprintf.José Fonseca2009-04-271-1/+1
| | | | snprintf not directly available on Windows.
* mesa: fix up error/warning/debug output newlinesBrian Paul2009-04-241-9/+26
| | | | | | | | | | As of commit 23ad86cfb91c294ce85a3116d4b825aaa3988a6e all messages go through output_if_debug(). Add new parameter to output_if_debug() to indicate whether to emit a newline. _mesa_warning() and _mesa_error() calls should not end their strings with \n. _mesa_debug() calls should end their text with \n.
* Mesa: allow suppression of debug messages in a debug buildRobert Ellison2009-04-081-10/+32
| | | | | | | | | | | | | | | | | | | | | For testing, it's very useful to be able to test on a debug build, while suppressing the debug messages (messages that are by default suppressed in a release build), in order to see the same behavior that users of release builds will see. For example, the "piglit" test suite will flag an error on programs that produce unexpected output, which means that a debug build will always fail due to the extra debug messages. This change introduces a new value to the MESA_DEBUG environment variable. In a debug build, explicitly setting MESA_DEBUG to "0" will suppress all debug messages (both from _mesa_debug() and from _mesa_warning()). (The former behavior was that debug messages were never suppressed in debug builds.) Behavior of non-debug builds has not changed. In such a build, _mesa_debug() messages are always suppressed, and _mesa_warning() messages will be suppressed unless MESA_DEBUG is set *to any value*.
* mesa: update/fix doxygen commentsVinson Lee2009-03-171-1/+1
|
* mesa: merge gallium-0.2 into gallium-master-mergeBrian Paul2009-02-091-11/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit 'origin/gallium-0.2' into gallium-master-merge Conflicts: Makefile docs/relnotes-7.4.html docs/relnotes.html src/mesa/drivers/dri/i965/brw_wm.h src/mesa/main/imports.c src/mesa/main/mtypes.h src/mesa/main/texcompress.c src/mesa/main/texenvprogram.c src/mesa/main/version.h src/mesa/vbo/vbo_exec_api.c src/mesa/vbo/vbo_save_draw.c
| * mesa: Add _mesa_snprintf.José Fonseca2009-01-081-0/+12
| | | | | | | | On Windows snprintf is renamed as _snprintf.
| * Merge branch 'master' of git+ssh://git.freedesktop.org/git/mesa/mesa into ↵Alan Hourihane2008-09-111-1/+1
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gallium-0.2 Conflicts: src/mesa/drivers/dri/i915/intel_ioctl.c src/mesa/main/texstore.c src/mesa/tnl/t_vp_build.c src/mesa/vbo/vbo_exec_draw.c