aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/x86/common_x86.c
Commit message (Collapse)AuthorAgeFilesLines
* adjust a couple of ifdefs to handle NetBSD correctlyTobias Nygren2015-04-171-1/+1
| | | | | Acked-by: Matt Turner <[email protected]> Signed-off-by: Tobias Nygren <[email protected]>
* mesa: remove _ASMAPI, ASMAPIPBrian Paul2015-03-121-6/+6
| | | | Reviewed-by: Ian Romanick <[email protected]>
* mesa: Check return value of __get_cpuid().Matt Turner2015-02-281-3/+3
| | | | | | | | | | | The use of the uninitialized_var() macro was to silence an uninitialized variable warning that I assumed stemmed from gcc being unable to see inside __get_cpuid() or understand its inline assembly. In fact, it was because the __get_cpuid() function can fail, and not initialize its arguments. Instead, check for failure and return early. Reviewed-by: Brian Paul <[email protected]>
* mesa: Drop _mesa_getenv() wrapper.Matt Turner2014-09-241-5/+5
| | | | | | Reviewed-by: Ian Romanick <[email protected]> Reviewed-by: Jose Fonseca <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
* mesa/x86: put code in braces to silence declarations after code warningBrian Paul2014-08-041-7/+9
| | | | Reviewed-by: Matt Turner <[email protected]>
* mesa/x86: Fix build with clang <= 3.3.Vinson Lee2014-05-251-0/+2
| | | | | | | clang <= 3.3 cpuid.h does not define contants for feature bits. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=79095 Signed-off-by: Vinson Lee <[email protected]>
* mesa/x86: Fix build with clang 3.4.José Fonseca2014-05-231-0/+4
| | | | | | | | It defines bit_SSE41 instead of bit_SSE4_1. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=79095 Trivial.
* mesa/x86: fix a typos in SSE4.1 detectionTobias Klausmann2014-05-221-2/+2
| | | | | | | | Commit a2fb71e23 introduced 32-bit code for SSE4.1. Fix compilation, and make sure to check ecx for the SSE4.1 bit. [imirkin: switch sse4.1 to look at ecx] Reviewed-by: Ilia Mirkin <[email protected]>
* mesa: Rely on USE_X86_64_ASM.José Fonseca2014-05-221-3/+3
| | | | | | | This fixes MinGW x64 builds. We don't use assembly on any of the Windows builds, to avoid divergence between MSVC and MinGW when testing. Reviewed-by: Matt Turner <[email protected]>
* mesa/x86: Brown bag fix for undeclared variable.Matt Turner2014-05-221-1/+1
|
* mesa/x86: add SSE4.1 runtime detection.Matt Atwood2014-05-221-0/+6
| | | | | | Add a bit to _mesa_x86_features for SSE 4.1, along with macros to query. Reviewed-by: Matt Turner <[email protected]>
* mesa/x86: Support SSE 4.1 detection on x86-64.Matt Turner2014-05-221-0/+11
| | | | | Uses the cpuid.h header provided by gcc and clang. Other platforms are encouraged to switch.
* 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]>
* Use the correct macro _WIN32 for Windows.Vinson Lee2012-09-051-3/+3
| | | | | | | | | | | | | | The correct predefined macro for Windows is _WIN32, not WIN32 or __WIN32__. _WIN32 is defined for 32-bit and 64-bit version of Windows by both MSVC and MinGW compilers. http://sourceforge.net/p/predef/wiki/OperatingSystems http://msdn.microsoft.com/en-us/library/b0084kay.aspx This patch also fixes a MinGW automake build error. Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Brian Paul <[email protected]>
* x86: Silence unused variable warning on Mac OS X.Vinson Lee2010-09-171-0/+2
| | | | | Silences the following GCC warning on Mac OS X. x86/common_x86.c:58: warning: 'detection_debug' defined but not used
* mesa: Disable the debug spam for x86 CPU detection with a compile-time flag.Eric Anholt2010-08-251-7/+13
| | | | | I don't know of any problems with CPU detection in years. Don't spam the user that was just looking to enable assertions with this stuff.
* mesa: Move the x86 detection debug messages next to the detection.Eric Anholt2010-08-251-0/+35
|
* mesa: _mesa_get_x86_features() only needs to do its thing onceBrian Paul2009-03-041-0/+8
|
* mesa: refactor x86 codeBrian Paul2009-03-041-52/+23
| | | | | | Move _mesa_init_all_x86_transform_asm() into x86.c so that common_x86.c has no dependencies on the vertex transformation code. Plus some comments and clean-ups.
* mesa: prefix a bunch of #include lines with "main/".Brian Paul2008-09-181-1/+1
| | | | | This is another step toward removing a whole bunch of -I flags from the cc commands. Still need to address driver code...
* mesa: added checks for OpenBSDBrad Smith2008-07-171-0/+18
|
* mesa: added test for __NetBSD__Blair Sadewitz2008-07-151-0/+8
|
* Remove dubious compile-time test for pre-2.4 Linux kernels.Michel Dänzer2007-06-051-7/+2
| | | | | | | | LINUX_VERSION_CODE shouldn't be used by userspace code, it can be defined empty these days. If anybody still cares about 2.2 kernels, they should reinstate this as a proper runtime test.
* Drop the funky SSE exception test on linux.George Sapountzis2007-04-061-140/+6
| | | | | Replace the check for IN_DRI_DRIVER with the appropriate kernel version check and just disable SSE on older (pre 2.4) kernels.
* use _mesa_debug() instead of message() - fixes poor formatting of outputBrian Paul2006-04-101-55/+34
|
* additional wrapper updates, bug 4468Brian Paul2005-09-191-1/+1
|
* All elements of pre-DRI_NEW_INTERFACE_ONLY are removed. This allowsIan Romanick2005-07-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1,402 lines of code to be removed from Mesa (drivers and libGL). The big winner is dri_util.c. Primary changes are: 1. Remove all "deprecated" entry-points from the various structures in dri_interface.h. 2. Rename the remaining fields to removed "version numbers." So, bindContext3 becomes bindContext. Functions with "New" in the name (e.g., CreateNewContext) were *not* changed, but that is an option. Having "New" in the name is less annoying to me than having "3" in the name. 3. Remove all compatibility code that handles cases where the driver or the loader is too old to support the latest interfaces. 4. Append the API version to the __driCreateNewScreen function name. This is currently done by hand. In the future (i.e., the next time we make an incompatible change to the interface) we'll want to come up with a better way to do this. This prevents old loaders from being able to load new (incompatible) drivers. 5. Bump the API version to 20050722. All drivers (by way of dri_util.c) require this version. 6. All drivers are *required* to expose GLX_SGIX_fbconfig and GLX_OML_swap_method (or the moral equivalents). Support for these functions in implicit in the use of the "new" interface. 7. Some cases still exist that need to be compiled differently in a loader or core Mesa versus in a driver. These are identified by the define IN_DRI_DRIVER.
* There is no point trying to detect SSE at all, when MESA_NO_SSE is defined. ↵Daniel Borca2005-01-191-6/+8
| | | | I am committing this because the current WIN32 SSE detection code crashes UnrealTournament2003.
* Windows/ReactOS patch (Gregor Anich)Brian Paul2005-01-101-0/+69
|
* uint*t -> u_int*t changesAlan Hourihane2004-12-141-1/+2
|
* Eliminate the funky SSE exception test from DRI builds. It's not needIan Romanick2004-10-131-6/+16
| | | | (see the comment in the code), and it's just annoying.
* bring over build fixes from stable branchAlan Hourihane2004-04-261-1/+1
|
* s/getenv/_mesa_getenv/Brian Paul2004-02-021-11/+9
|
* re-enable SSE code, except for the _mesa_sse_transform_points4_identity() ↵Brian Paul2004-01-091-4/+2
| | | | function. Use the x86 version instead
* Add comment regarding sse disableKeith Whitwell2004-01-061-0/+2
|
* SSE segfaults in conform - disable for now.Keith Whitwell2004-01-061-2/+2
|
* build fixesAlan Hourihane2003-12-041-1/+0
|
* Merge vtx-0-2-branchKeith Whitwell2003-11-241-1/+0
|
* Updates to SSE assembler support for Open WatcomKendall Bennett2003-10-211-2/+2
|
* Updates to x86 assembler support for Open Watcom and SNAPKendall Bennett2003-10-141-9/+7
|
* print debug message when SSE is disabled by user (Klaus Neiderkrueger)Brian Paul2003-02-041-1/+2
|
* new X86 CPU detection code (Petr Sebor)Brian Paul2003-01-211-3/+85
|
* include imports.hBrian Paul2002-11-131-3/+4
|
* applied Eric Anholt's patch for Athlon SSEBrian Paul2002-07-111-2/+14
|
* Applied Matt Sealey's patch to remove/isolate all stdio.h function calls.Brian Paul2002-06-291-1/+2
| | | | Instead of mstdio.[ch], use imports.[ch] to isolate these functions.
* remove dead vertex assemblyKeith Whitwell2002-04-091-24/+1
|
* test for X86_FXSR_MAGIC to be sure we have the _fpstate.magic field, needed ↵Brian Paul2001-06-061-5/+5
| | | | for SSE signal handler