Brian Paul | 0b27ace | 2003-03-08 17:38:57 +0000 | [diff] [blame] | 1 | <HTML> |
| 2 | |
| 3 | <TITLE>Environment Variables</TITLE> |
| 4 | |
Brian Paul | 36da045 | 2005-01-20 03:55:10 +0000 | [diff] [blame] | 5 | <link rel="stylesheet" type="text/css" href="mesa.css"></head> |
| 6 | |
| 7 | <BODY> |
Brian Paul | 0b27ace | 2003-03-08 17:38:57 +0000 | [diff] [blame] | 8 | |
| 9 | <H1>Environment Variables</H1> |
| 10 | |
| 11 | <p> |
| 12 | Mesa supports the following environment variables: |
| 13 | </p> |
| 14 | <ul> |
Brian Paul | b07d6a8 | 2004-02-02 22:35:55 +0000 | [diff] [blame] | 15 | <li>MESA_NO_ASM - if set, disables all assembly language optimizations |
| 16 | <li>MESA_NO_MMX - if set, disables Intel MMX optimizations |
| 17 | <li>MESA_NO_3DNOW - if set, disables AMD 3DNow! optimizations |
| 18 | <li>MESA_NO_SSE - if set, disables Intel SSE optimizations |
Brian Paul | eacd347 | 2005-08-19 23:34:10 +0000 | [diff] [blame] | 19 | <li>MESA_DEBUG - if set, error messages are printed to stderr. |
| 20 | If the value of MESA_DEBUG is "FP" floating point arithmetic errors will |
| 21 | generate exceptions. |
Brian Paul | b07d6a8 | 2004-02-02 22:35:55 +0000 | [diff] [blame] | 22 | <li>MESA_NO_DITHER - if set, disables dithering, overriding glEnable(GL_DITHER) |
Brian Paul | 4d3ab19 | 2006-06-01 20:22:30 +0000 | [diff] [blame] | 23 | <li>MESA_TEX_PROG - if set, implement conventional texture env modes with |
| 24 | fragment programs (intended for developers only) |
| 25 | <li>MESA_TNL_PROG - if set, implement conventional vertex transformation |
| 26 | operations with vertex programs (intended for developers only). |
| 27 | Setting this variable automatically sets the MESA_TEX_PROG variable as well. |
Brian Paul | cc26e27 | 2009-06-08 10:56:51 -0600 | [diff] [blame] | 28 | <li>MESA_EXTENSION_OVERRIDE - can be used to enable/disable extensions. |
| 29 | A value such as "GL_EXT_foo -GL_EXT_bar" will enable the GL_EXT_foo extension |
| 30 | and disable the GL_EXT_bar extension. |
Brian Paul | 85fb3e4 | 2009-10-14 11:28:28 -0600 | [diff] [blame] | 31 | <li>MESA_GLSL - <a href="shading.html#envvars">shading language options</a> |
Brian Paul | b07d6a8 | 2004-02-02 22:35:55 +0000 | [diff] [blame] | 32 | </ul> |
| 33 | |
| 34 | <p> |
Brian Paul | 5e9d731 | 2006-01-27 20:12:06 +0000 | [diff] [blame] | 35 | The following are only applicable to the Xlib software driver. |
Brian Paul | b6c41fd | 2009-01-22 09:58:52 -0700 | [diff] [blame] | 36 | See the <A HREF="xlibdriver.html">Xlib software driver page</A> for details. |
Brian Paul | b07d6a8 | 2004-02-02 22:35:55 +0000 | [diff] [blame] | 37 | </p> |
| 38 | <ul> |
Brian Paul | 5e9d731 | 2006-01-27 20:12:06 +0000 | [diff] [blame] | 39 | <li>MESA_RGB_VISUAL - specifies the X visual and depth for RGB mode |
| 40 | <li>MESA_CI_VISUAL - specifies the X visual and depth for CI mode |
| 41 | <li>MESA_BACK_BUFFER - specifies how to implement the back color buffer, |
| 42 | either "pixmap" or "ximage" |
| 43 | <li>MESA_GAMMA - gamma correction coefficients for red, green, blue channels |
| 44 | <li>MESA_XSYNC - enable synchronous X behavior (for debugging only) |
| 45 | <li>MESA_GLX_FORCE_CI - if set, force GLX to treat 8bpp visuals as CI visuals |
Brian Paul | b07d6a8 | 2004-02-02 22:35:55 +0000 | [diff] [blame] | 46 | <li>MESA_GLX_FX - set to either "fullscreen" for full-screen rendering, |
| 47 | "window" to render into a window, or "disable" to disable the Glide driver. |
Brian Paul | 4f6b1ad | 2004-07-23 15:49:12 +0000 | [diff] [blame] | 48 | <li>MESA_GLX_FORCE_ALPHA - if set, forces RGB windows to have an alpha channel. |
Brian Paul | dfa5c2b | 2004-07-23 23:32:15 +0000 | [diff] [blame] | 49 | <li>MESA_GLX_DEPTH_BITS - specifies default number of bits for depth buffer. |
Brian Paul | 8894a55 | 2005-11-05 03:12:06 +0000 | [diff] [blame] | 50 | <li>MESA_GLX_ALPHA_BITS - specifies default number of bits for alpha channel. |
Brian Paul | 0b27ace | 2003-03-08 17:38:57 +0000 | [diff] [blame] | 51 | </ul> |
| 52 | |
| 53 | |
Brian Paul | 1d8b308 | 2010-01-26 09:12:32 -0700 | [diff] [blame] | 54 | <p> |
| 55 | These environment variables are for the Intel i945/i965 drivers: |
| 56 | </p> |
| 57 | <ul> |
| 58 | <li>INTEL_STRICT_CONFORMANCE - if set to 1, enable sw fallbacks to improve |
| 59 | OpenGL conformance. If set to 2, always use software rendering. |
| 60 | <li>INTEL_NO_BLIT - if set, disable hardware-accelerated glBitmap, |
| 61 | glCopyPixels, glDrawPixels. |
| 62 | </ul> |
| 63 | |
| 64 | |
| 65 | <p> |
| 66 | These environment variables are for the Radeon R300 driver: |
| 67 | </p> |
| 68 | <ul> |
| 69 | <li>R300_NO_TCL - if set, disable hardware-accelerated Transform/Clip/Lighting. |
| 70 | </ul> |
| 71 | |
Chia-I Wu | 7fc3581 | 2010-02-02 11:05:19 +0800 | [diff] [blame] | 72 | <p> |
| 73 | Mesa EGL supports different sets of environment variables. See the |
| 74 | <a href="egl.html">Mesa EGL</a> page for the details. |
| 75 | </p> |
Brian Paul | 1d8b308 | 2010-01-26 09:12:32 -0700 | [diff] [blame] | 76 | |
Brian Paul | 0b27ace | 2003-03-08 17:38:57 +0000 | [diff] [blame] | 77 | </BODY> |
| 78 | </HTML> |