* Create main headers for MESA components and move some inclusions to them.
CORE-7716

svn path=/trunk/; revision=61521
This commit is contained in:
Amine Khaldi 2014-01-04 10:35:13 +00:00
parent 3fc16cdb00
commit 1fb4d1d63d
140 changed files with 342 additions and 1471 deletions

View file

@ -22,18 +22,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include "glheader.h" #include <precomp.h>
#include "accum.h"
#include "context.h"
#include "format_unpack.h"
#include "format_pack.h"
#include "imports.h"
#include "macros.h"
#include "mfeatures.h"
#include "state.h"
#include "mtypes.h"
#include "main/dispatch.h"
#if FEATURE_accum #if FEATURE_accum

View file

@ -34,15 +34,7 @@
* Keith Whitwell <keith@tungstengraphics.com> * Keith Whitwell <keith@tungstengraphics.com>
*/ */
#include "glheader.h" #include <precomp.h>
#include "api_arrayelt.h"
#include "bufferobj.h"
#include "context.h"
#include "imports.h"
#include "macros.h"
#include "mfeatures.h"
#include "mtypes.h"
#include "main/dispatch.h"
typedef void (GLAPIENTRY *array_func)( const void * ); typedef void (GLAPIENTRY *array_func)( const void * );

View file

@ -28,61 +28,9 @@
* Initialize dispatch table with the immidiate mode functions. * Initialize dispatch table with the immidiate mode functions.
*/ */
#include <precomp.h>
#include "mfeatures.h"
#include "accum.h"
#include "api_loopback.h"
#include "api_exec.h"
#include "attrib.h"
#include "blend.h"
#include "bufferobj.h"
#include "arrayobj.h"
#if FEATURE_draw_read_buffer
#include "buffers.h"
#endif
#include "clear.h"
#include "clip.h"
#include "colortab.h"
#include "context.h"
#include "convolve.h"
#include "depth.h"
#include "dlist.h"
#include "drawpix.h"
#include "rastpos.h"
#include "enable.h"
#include "eval.h"
#include "get.h"
#include "feedback.h"
#include "fog.h"
#include "framebuffer.h"
#include "hint.h"
#include "histogram.h" #include "histogram.h"
#include "imports.h"
#include "light.h"
#include "lines.h"
#include "matrix.h"
#include "multisample.h"
#include "pixel.h"
#include "pixelstore.h"
#include "points.h"
#include "polygon.h"
#include "readpix.h"
#include "scissor.h"
#include "stencil.h"
#include "texenv.h"
#include "texgetimage.h"
#include "teximage.h"
#include "texgen.h"
#include "texobj.h"
#include "texparam.h"
#include "texstate.h"
#include "texstorage.h"
#include "texturebarrier.h"
#include "mtypes.h"
#include "varray.h"
#include "viewport.h"
#include "main/dispatch.h"
#if FEATURE_GL #if FEATURE_GL

View file

@ -28,13 +28,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <precomp.h>
#include "glheader.h"
#include "macros.h"
#include "api_loopback.h"
#include "mtypes.h"
#include "main/dispatch.h"
#include "mfeatures.h"
/* KW: A set of functions to convert unusual Color/Normal/Vertex/etc /* KW: A set of functions to convert unusual Color/Normal/Vertex/etc
* calls to a smaller set of driver-provided formats. Currently just * calls to a smaller set of driver-provided formats. Currently just

View file

@ -22,15 +22,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include "glheader.h" #include <precomp.h>
#include "api_validate.h"
#include "bufferobj.h"
#include "context.h"
#include "imports.h"
#include "mfeatures.h"
#include "mtypes.h"
#include "vbo/vbo.h"
/** /**
* \return number of bytes in array [count] of type. * \return number of bytes in array [count] of type.

View file

@ -38,20 +38,7 @@
* \author Brian Paul * \author Brian Paul
*/ */
#include <precomp.h>
#include "glheader.h"
#include "hash.h"
#include "image.h"
#include "imports.h"
#include "context.h"
#include "mfeatures.h"
#include "bufferobj.h"
#include "arrayobj.h"
#include "macros.h"
#include "mtypes.h"
#include "varray.h"
#include "main/dispatch.h"
/** /**
* Look up the array object for the given ID. * Look up the array object for the given ID.

View file

@ -23,44 +23,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include "glheader.h" #include <precomp.h>
#include "imports.h"
#include "accum.h"
#include "arrayobj.h"
#include "attrib.h"
#include "blend.h"
#include "buffers.h"
#include "bufferobj.h"
#include "clear.h"
#include "colormac.h"
#include "context.h"
#include "depth.h"
#include "enable.h"
#include "enums.h"
#include "fog.h"
#include "hint.h"
#include "light.h"
#include "lines.h"
#include "macros.h"
#include "matrix.h"
#include "mfeatures.h"
#include "multisample.h"
#include "points.h"
#include "polygon.h"
#include "shared.h"
#include "scissor.h"
#include "stencil.h"
#include "texenv.h"
#include "texgen.h"
#include "texobj.h"
#include "texparam.h"
#include "texstate.h"
#include "varray.h"
#include "viewport.h"
#include "mtypes.h"
#include "main/dispatch.h"
#include "hash.h"
/** /**
* glEnable()/glDisable() attribute group (GL_ENABLE_BIT). * glEnable()/glDisable() attribute group (GL_ENABLE_BIT).

View file

@ -27,16 +27,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <precomp.h>
#include "glheader.h"
#include "blend.h"
#include "context.h"
#include "enums.h"
#include "macros.h"
#include "mtypes.h"
/** /**
* Check if given blend source factor is legal. * Check if given blend source factor is legal.

View file

@ -30,18 +30,7 @@
* \author Brian Paul, Ian Romanick * \author Brian Paul, Ian Romanick
*/ */
#include <precomp.h>
#include "glheader.h"
#include "enums.h"
#include "hash.h"
#include "imports.h"
#include "image.h"
#include "context.h"
#include "bufferobj.h"
#include "mfeatures.h"
#include "mtypes.h"
#include "texobj.h"
/* Debug flags */ /* Debug flags */
/*#define VBO_DEBUG*/ /*#define VBO_DEBUG*/

View file

@ -22,25 +22,15 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
/** /**
* \file buffers.c * \file buffers.c
* glReadBuffer, DrawBuffer functions. * glReadBuffer, DrawBuffer functions.
*/ */
#include <precomp.h>
#include "glheader.h"
#include "buffers.h"
#include "colormac.h"
#include "context.h"
#include "enums.h"
#include "mtypes.h"
#define BAD_MASK ~0u #define BAD_MASK ~0u
/** /**
* Return bitmask of BUFFER_BIT_* flags indicating which color buffers are * Return bitmask of BUFFER_BIT_* flags indicating which color buffers are
* available to the rendering context (for drawing or reading). * available to the rendering context (for drawing or reading).

View file

@ -22,24 +22,12 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
/** /**
* \file clear.c * \file clear.c
* glClearColor, glClearIndex, glClear() functions. * glClearColor, glClearIndex, glClear() functions.
*/ */
#include <precomp.h>
#include "glheader.h"
#include "clear.h"
#include "context.h"
#include "colormac.h"
#include "enums.h"
#include "macros.h"
#include "mtypes.h"
#include "state.h"
#if _HAVE_FULL_GL #if _HAVE_FULL_GL
void GLAPIENTRY void GLAPIENTRY

View file

@ -22,15 +22,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <precomp.h>
#include "glheader.h"
#include "clip.h"
#include "context.h"
#include "macros.h"
#include "mtypes.h"
#include "math/m_matrix.h"
/** /**
* Update derived clip plane state. * Update derived clip plane state.

View file

@ -22,21 +22,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <precomp.h>
#include "glheader.h"
#include "bufferobj.h"
#include "colortab.h"
#include "context.h"
#include "image.h"
#include "macros.h"
#include "mfeatures.h"
#include "mtypes.h"
#include "pack.h"
#include "state.h"
#include "teximage.h"
#include "texstate.h"
#include "main/dispatch.h"
#if FEATURE_colortable #if FEATURE_colortable

View file

@ -75,54 +75,7 @@
* *
*/ */
#include <precomp.h>
#include "glheader.h"
#include "mfeatures.h"
#include "imports.h"
#include "accum.h"
#include "api_exec.h"
#include "arrayobj.h"
#include "attrib.h"
#include "blend.h"
#include "buffers.h"
#include "bufferobj.h"
#include "context.h"
#include "cpuinfo.h"
#include "depth.h"
#include "dlist.h"
#include "eval.h"
#include "extensions.h"
#include "feedback.h"
#include "fog.h"
#include "formats.h"
#include "framebuffer.h"
#include "hint.h"
#include "hash.h"
#include "light.h"
#include "lines.h"
#include "macros.h"
#include "matrix.h"
#include "multisample.h"
#include "pixel.h"
#include "pixelstore.h"
#include "points.h"
#include "polygon.h"
#include "rastpos.h"
#include "scissor.h"
#include "shared.h"
#include "simple_list.h"
#include "state.h"
#include "stencil.h"
#include "texstate.h"
#include "mtypes.h"
#include "varray.h"
#include "version.h"
#include "viewport.h"
#include "vtxfmt.h"
#if _HAVE_FULL_GL
#include "math/m_matrix.h"
#endif
#include "main/dispatch.h" /* for _gloffset_COUNT */
#ifdef USE_SPARC_ASM #ifdef USE_SPARC_ASM
#include "sparc/sparc.h" #include "sparc/sparc.h"

View file

@ -22,7 +22,6 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
/* /*
* Image convolution functions. * Image convolution functions.
* *
@ -30,16 +29,7 @@
* the GL spec. * the GL spec.
*/ */
#include <precomp.h>
#include "glheader.h"
#include "bufferobj.h"
#include "colormac.h"
#include "convolve.h"
#include "macros.h"
#include "mfeatures.h"
#include "mtypes.h"
#include "main/dispatch.h"
#if FEATURE_convolve #if FEATURE_convolve

View file

@ -22,10 +22,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <precomp.h>
#include "main/compiler.h"
#include "main/cpuinfo.h"
/** /**
* This function should be called before the various "cpu_has_foo" macros * This function should be called before the various "cpu_has_foo" macros

View file

@ -22,15 +22,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <precomp.h>
#include "glheader.h"
#include "imports.h"
#include "context.h"
#include "depth.h"
#include "enums.h"
#include "macros.h"
#include "mtypes.h"
/**********************************************************************/ /**********************************************************************/
/***** API Functions *****/ /***** API Functions *****/

View file

@ -29,36 +29,9 @@
* Display lists management functions. * Display lists management functions.
*/ */
#include "glheader.h" #include <precomp.h>
#include "imports.h"
#include "api_arrayelt.h"
#include "api_exec.h"
#include "api_loopback.h"
#include "api_validate.h"
#include "config.h" #include "config.h"
#include "mfeatures.h"
#include "bufferobj.h"
#include "arrayobj.h"
#include "context.h"
#include "dlist.h"
#include "enums.h"
#include "eval.h"
#include "framebuffer.h"
#include "hash.h"
#include "image.h"
#include "light.h"
#include "macros.h"
#include "pack.h"
#include "teximage.h"
#include "texstorage.h"
#include "mtypes.h"
#include "varray.h"
#include "math/m_matrix.h"
#include "main/dispatch.h"
/** /**
* Other parts of Mesa (such as the VBO module) can plug into the display * Other parts of Mesa (such as the VBO module) can plug into the display

View file

@ -21,14 +21,13 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
/** /**
* Wrapper functions for dlopen(), dlsym(), dlclose(). * Wrapper functions for dlopen(), dlsym(), dlclose().
* Note that the #ifdef tests for various environments should be expanded. * Note that the #ifdef tests for various environments should be expanded.
*/ */
#include <precomp.h>
#include "compiler.h"
#include "dlopen.h" #include "dlopen.h"
#if defined(_GNU_SOURCE) && !defined(__MINGW32__) && !defined(__blrts) #if defined(_GNU_SOURCE) && !defined(__MINGW32__) && !defined(__blrts)

View file

@ -22,20 +22,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include "glheader.h" #include <precomp.h>
#include "imports.h"
#include "bufferobj.h"
#include "context.h"
#include "drawpix.h"
#include "enums.h"
#include "feedback.h"
#include "framebuffer.h"
#include "image.h"
#include "mfeatures.h"
#include "readpix.h"
#include "state.h"
#include "dispatch.h"
#if FEATURE_drawpix #if FEATURE_drawpix

View file

@ -27,19 +27,7 @@
*/ */
#include "glheader.h" #include <precomp.h>
#include "clip.h"
#include "context.h"
#include "enable.h"
#include "light.h"
#include "simple_list.h"
#include "mfeatures.h"
#include "mtypes.h"
#include "enums.h"
#include "api_arrayelt.h"
#include "texstate.h"
#define CHECK_EXTENSION(EXTNAME, CAP) \ #define CHECK_EXTENSION(EXTNAME, CAP) \
if (!ctx->Extensions.EXTNAME) { \ if (!ctx->Extensions.EXTNAME) { \

View file

@ -25,11 +25,7 @@
* SOFTWARE. * SOFTWARE.
*/ */
#include "main/glheader.h" #include <precomp.h>
#include "main/mfeatures.h"
#include "main/enums.h"
#include "main/imports.h"
#include "main/mtypes.h"
typedef struct { typedef struct {
size_t offset; size_t offset;

View file

@ -23,7 +23,6 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
/* /*
* eval.c was written by * eval.c was written by
* Bernd Barsuhn (bdbarsuh@cip.informatik.uni-erlangen.de) and * Bernd Barsuhn (bdbarsuh@cip.informatik.uni-erlangen.de) and
@ -36,17 +35,7 @@
* Thanks guys! * Thanks guys!
*/ */
#include <precomp.h>
#include "glheader.h"
#include "imports.h"
#include "colormac.h"
#include "context.h"
#include "eval.h"
#include "macros.h"
#include "mfeatures.h"
#include "mtypes.h"
#include "main/dispatch.h"
#if FEATURE_evaluators #if FEATURE_evaluators

View file

@ -30,10 +30,7 @@
* \author Keith Whitwell * \author Keith Whitwell
*/ */
#include <precomp.h>
#include "imports.h"
#if defined(__linux__) || defined(__OpenBSD__) || defined(_NetBSD__) || defined(__sun) #if defined(__linux__) || defined(__OpenBSD__) || defined(_NetBSD__) || defined(__sun)
@ -44,7 +41,6 @@
#include <unistd.h> #include <unistd.h>
#include <sys/mman.h> #include <sys/mman.h>
#include "mm.h"
#ifdef MESA_SELINUX #ifdef MESA_SELINUX
#include <selinux/selinux.h> #include <selinux/selinux.h>

View file

@ -29,13 +29,7 @@
* \brief Extension handling * \brief Extension handling
*/ */
#include <precomp.h>
#include "glheader.h"
#include "imports.h"
#include "context.h"
#include "extensions.h"
#include "mfeatures.h"
#include "mtypes.h"
#define ALIGN(value, alignment) (((value) + alignment - 1) & ~(alignment - 1)) #define ALIGN(value, alignment) (((value) + alignment - 1) & ~(alignment - 1))

View file

@ -28,17 +28,7 @@
* Selection and feedback modes functions. * Selection and feedback modes functions.
*/ */
#include <precomp.h>
#include "glheader.h"
#include "colormac.h"
#include "context.h"
#include "enums.h"
#include "feedback.h"
#include "macros.h"
#include "mfeatures.h"
#include "mtypes.h"
#include "main/dispatch.h"
#if FEATURE_feedback #if FEATURE_feedback

View file

@ -22,15 +22,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <precomp.h>
#include "glheader.h"
#include "colormac.h"
#include "context.h"
#include "fog.h"
#include "macros.h"
#include "mtypes.h"
void GLAPIENTRY void GLAPIENTRY
_mesa_Fogf(GLenum pname, GLfloat param) _mesa_Fogf(GLenum pname, GLfloat param)

View file

@ -34,11 +34,7 @@
* glAccum, and glTexImage. * glAccum, and glTexImage.
*/ */
#include <precomp.h>
#include "colormac.h"
#include "format_pack.h"
#include "macros.h"
typedef void (*pack_ubyte_rgba_row_func)(GLuint n, typedef void (*pack_ubyte_rgba_row_func)(GLuint n,
const GLubyte src[][4], void *dst); const GLubyte src[][4], void *dst);

View file

@ -21,12 +21,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <precomp.h>
#include "colormac.h"
#include "format_unpack.h"
#include "macros.h"
/* Expand 1, 2, 3, 4, 5, 6-bit values to fill 8 bits */ /* Expand 1, 2, 3, 4, 5, 6-bit values to fill 8 bits */

View file

@ -23,12 +23,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <precomp.h>
#include "imports.h"
#include "formats.h"
#include "mfeatures.h"
#include "macros.h"
/** /**
* Information about texture formats. * Information about texture formats.

View file

@ -22,27 +22,13 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
/** /**
* Functions for allocating/managing framebuffers and renderbuffers. * Functions for allocating/managing framebuffers and renderbuffers.
* Also, routines for reading/writing renderbuffer data as ubytes, * Also, routines for reading/writing renderbuffer data as ubytes,
* ushorts, uints, etc. * ushorts, uints, etc.
*/ */
#include <precomp.h>
#include "glheader.h"
#include "imports.h"
#include "buffers.h"
#include "context.h"
#include "enums.h"
#include "formats.h"
#include "macros.h"
#include "mtypes.h"
#include "framebuffer.h"
#include "renderbuffer.h"
#include "texobj.h"
/** /**
* Compute/set the _DepthMax field for the given framebuffer. * Compute/set the _DepthMax field for the given framebuffer.

View file

@ -22,17 +22,7 @@
* Author: Kristian Høgsberg <krh@bitplanet.net> * Author: Kristian Høgsberg <krh@bitplanet.net>
*/ */
#include "glheader.h" #include <precomp.h>
#include "context.h"
#include "enable.h"
#include "enums.h"
#include "extensions.h"
#include "get.h"
#include "macros.h"
#include "mfeatures.h"
#include "mtypes.h"
#include "state.h"
#include "framebuffer.h"
/* This is a table driven implemetation of the glGet*v() functions. /* This is a table driven implemetation of the glGet*v() functions.
* The basic idea is that most getters just look up an int somewhere * The basic idea is that most getters just look up an int somewhere

View file

@ -22,16 +22,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <precomp.h>
#include "glheader.h"
#include "context.h"
#include "get.h"
#include "enums.h"
#include "extensions.h"
#include "mfeatures.h"
#include "mtypes.h"
/** /**
* Query string-valued state. The return value should _not_ be freed by * Query string-valued state. The return value should _not_ be freed by

View file

@ -34,11 +34,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <precomp.h>
#include "glheader.h"
#include "imports.h"
#include "hash.h"
#define TABLE_SIZE 1023 /**< Size of lookup table/array */ #define TABLE_SIZE 1023 /**< Size of lookup table/array */

View file

@ -23,15 +23,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <precomp.h>
#include "glheader.h"
#include "enums.h"
#include "context.h"
#include "hint.h"
#include "imports.h"
#include "mtypes.h"
void GLAPIENTRY void GLAPIENTRY
_mesa_Hint( GLenum target, GLenum mode ) _mesa_Hint( GLenum target, GLenum mode )

View file

@ -22,15 +22,9 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <precomp.h>
#include "glheader.h"
#include "bufferobj.h"
#include "colormac.h"
#include "histogram.h" #include "histogram.h"
#include "macros.h"
#include "mfeatures.h"
#include "main/dispatch.h"
#if FEATURE_histogram #if FEATURE_histogram

View file

@ -23,22 +23,12 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
/** /**
* \file image.c * \file image.c
* Image handling. * Image handling.
*/ */
#include <precomp.h>
#include "glheader.h"
#include "colormac.h"
#include "image.h"
#include "imports.h"
#include "macros.h"
#include "mfeatures.h"
#include "mtypes.h"
/** /**
* \return GL_TRUE if type is packed pixel type, GL_FALSE otherwise. * \return GL_TRUE if type is packed pixel type, GL_FALSE otherwise.

View file

@ -43,11 +43,7 @@
*/ */
#include <precomp.h>
#include "imports.h"
#include "context.h"
#include "mtypes.h"
#include "version.h"
#ifdef _GNU_SOURCE #ifdef _GNU_SOURCE
#include <locale.h> #include <locale.h>
@ -56,7 +52,6 @@
#endif #endif
#endif #endif
#define MAXSTRING 4000 /* for vsnprintf() */ #define MAXSTRING 4000 /* for vsnprintf() */
#ifdef WIN32 #ifdef WIN32

View file

@ -23,17 +23,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <precomp.h>
#include "glheader.h"
#include "imports.h"
#include "context.h"
#include "enums.h"
#include "light.h"
#include "macros.h"
#include "simple_list.h"
#include "mtypes.h"
#include "math/m_matrix.h"
void GLAPIENTRY void GLAPIENTRY
_mesa_ShadeModel( GLenum mode ) _mesa_ShadeModel( GLenum mode )

View file

@ -22,13 +22,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <precomp.h>
#include "glheader.h"
#include "context.h"
#include "lines.h"
#include "macros.h"
#include "mtypes.h"
/** /**
* Set the line width. * Set the line width.

View file

@ -34,17 +34,7 @@
* -# Transformation of a point p by a matrix M is: p' = M * p * -# Transformation of a point p by a matrix M is: p' = M * p
*/ */
#include <precomp.h>
#include "glheader.h"
#include "imports.h"
#include "context.h"
#include "enums.h"
#include "macros.h"
#include "mfeatures.h"
#include "matrix.h"
#include "mtypes.h"
#include "math/m_matrix.h"
/** /**
* Apply a perspective projection matrix. * Apply a perspective projection matrix.

View file

@ -22,14 +22,12 @@
* *
*/ */
#include <precomp.h>
#include <assert.h> #include <assert.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include "compiler.h"
#include "mm.h"
void void
mmDumpMemInfo(const struct mem_block *heap) mmDumpMemInfo(const struct mem_block *heap)
{ {

View file

@ -22,13 +22,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <precomp.h>
#include "main/glheader.h"
#include "main/context.h"
#include "main/macros.h"
#include "main/multisample.h"
#include "main/mtypes.h"
/** /**
* Called via glSampleCoverageARB * Called via glSampleCoverageARB

View file

@ -22,23 +22,12 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
/** /**
* \file pack.c * \file pack.c
* Image and pixel span packing and unpacking. * Image and pixel span packing and unpacking.
*/ */
#include <precomp.h>
#include "glheader.h"
#include "colormac.h"
#include "enums.h"
#include "image.h"
#include "imports.h"
#include "macros.h"
#include "mtypes.h"
#include "pack.h"
#include "pixeltransfer.h"
#include "imports.h"
/** /**
* Flip the 8 bits in each byte of the given array. * Flip the 8 bits in each byte of the given array.

View file

@ -22,22 +22,12 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
/** /**
* \file pixel.c * \file pixel.c
* Pixel transfer functions (glPixelZoom, glPixelMap, glPixelTransfer) * Pixel transfer functions (glPixelZoom, glPixelMap, glPixelTransfer)
*/ */
#include "glheader.h" #include <precomp.h>
#include "bufferobj.h"
#include "colormac.h"
#include "context.h"
#include "macros.h"
#include "mfeatures.h"
#include "pixel.h"
#include "mtypes.h"
#include "main/dispatch.h"
#if FEATURE_pixel_transfer #if FEATURE_pixel_transfer

View file

@ -27,14 +27,7 @@
* glPixelStore functions. * glPixelStore functions.
*/ */
#include <precomp.h>
#include "glheader.h"
#include "bufferobj.h"
#include "context.h"
#include "pixelstore.h"
#include "mfeatures.h"
#include "mtypes.h"
void GLAPIENTRY void GLAPIENTRY
_mesa_PixelStorei( GLenum pname, GLint param ) _mesa_PixelStorei( GLenum pname, GLint param )

View file

@ -22,19 +22,12 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
/** /**
* \file pixeltransfer.c * \file pixeltransfer.c
* Pixel transfer operations (scale, bias, table lookups, etc) * Pixel transfer operations (scale, bias, table lookups, etc)
*/ */
#include <precomp.h>
#include "glheader.h"
#include "colormac.h"
#include "pixeltransfer.h"
#include "imports.h"
#include "mtypes.h"
/* /*
* Apply scale and bias factors to an array of RGBA pixels. * Apply scale and bias factors to an array of RGBA pixels.

View file

@ -27,13 +27,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <precomp.h>
#include "glheader.h"
#include "context.h"
#include "macros.h"
#include "points.h"
#include "mtypes.h"
/** /**
* Set current point size. * Set current point size.

View file

@ -27,16 +27,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <precomp.h>
#include "glheader.h"
#include "imports.h"
#include "context.h"
#include "image.h"
#include "enums.h"
#include "pack.h"
#include "polygon.h"
#include "mtypes.h"
/** /**
* Specify whether to cull front- or back-facing facets. * Specify whether to cull front- or back-facing facets.

View file

@ -0,0 +1,83 @@
#ifndef _MESA_MAIN_PCH_
#define _MESA_MAIN_PCH_
#include "accum.h"
#include "api_arrayelt.h"
#include "api_exec.h"
#include "api_loopback.h"
#include "api_validate.h"
#include "arrayobj.h"
#include "attrib.h"
#include "blend.h"
#include "bufferobj.h"
#include "buffers.h"
#include "clear.h"
#include "clip.h"
#include "colormac.h"
#include "colortab.h"
#include "compiler.h"
#include "context.h"
#include "convolve.h"
#include "cpuinfo.h"
#include "depth.h"
#include "dispatch.h"
#include "dlist.h"
#include "drawpix.h"
#include "enable.h"
#include "enums.h"
#include "eval.h"
#include "extensions.h"
#include "feedback.h"
#include "fog.h"
#include "format_pack.h"
#include "format_unpack.h"
#include "formats.h"
#include "framebuffer.h"
#include "get.h"
#include "glheader.h"
#include "hash.h"
#include "hint.h"
#include "image.h"
#include "imports.h"
#include "light.h"
#include "lines.h"
#include "macros.h"
#include "matrix.h"
#include "mfeatures.h"
#include "mm.h"
#include "mtypes.h"
#include "multisample.h"
#include "pack.h"
#include "pixel.h"
#include "pixelstore.h"
#include "pixeltransfer.h"
#include "points.h"
#include "polygon.h"
#include "rastpos.h"
#include "readpix.h"
#include "renderbuffer.h"
#include "scissor.h"
#include "shared.h"
#include "simple_list.h"
#include "state.h"
#include "stencil.h"
#include "texenv.h"
#include "texformat.h"
#include "texgen.h"
#include "texgetimage.h"
#include "teximage.h"
#include "texobj.h"
#include "texparam.h"
#include "texstate.h"
#include "texstorage.h"
#include "texstore.h"
#include "texturebarrier.h"
#include "varray.h"
#include "version.h"
#include "viewport.h"
#include "vtxfmt.h"
#include <math/m_matrix.h>
#include <vbo/vbo.h>
#endif /* _MESA_MAIN_PCH_ */

View file

@ -28,16 +28,7 @@
* Raster position operations. * Raster position operations.
*/ */
#include "glheader.h" #include <precomp.h>
#include "context.h"
#include "feedback.h"
#include "macros.h"
#include "mfeatures.h"
#include "mtypes.h"
#include "rastpos.h"
#include "state.h"
#include "main/dispatch.h"
#if FEATURE_rastpos #if FEATURE_rastpos

View file

@ -22,20 +22,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include "glheader.h" #include <precomp.h>
#include "imports.h"
#include "bufferobj.h"
#include "context.h"
#include "enums.h"
#include "readpix.h"
#include "framebuffer.h"
#include "formats.h"
#include "format_unpack.h"
#include "image.h"
#include "mtypes.h"
#include "pack.h"
#include "state.h"
/** /**
* Tries to implement glReadPixels() of GL_DEPTH_COMPONENT using memcpy of the * Tries to implement glReadPixels() of GL_DEPTH_COMPONENT using memcpy of the

View file

@ -22,14 +22,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <precomp.h>
#include "glheader.h"
#include "imports.h"
#include "context.h"
#include "formats.h"
#include "mtypes.h"
#include "renderbuffer.h"
/** /**
* Initialize the fields of a gl_renderbuffer to default values. * Initialize the fields of a gl_renderbuffer to default values.

View file

@ -22,12 +22,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <precomp.h>
#include "main/glheader.h"
#include "main/context.h"
#include "main/mtypes.h"
#include "main/scissor.h"
/** /**
* Called via glScissor * Called via glScissor

View file

@ -27,14 +27,7 @@
* Shared-context state * Shared-context state
*/ */
#include "imports.h" #include <precomp.h>
#include "mfeatures.h"
#include "mtypes.h"
#include "hash.h"
#include "bufferobj.h"
#include "shared.h"
#include "dlist.h"
/** /**
* Allocate and initialize a shared context state structure. * Allocate and initialize a shared context state structure.

View file

@ -30,21 +30,7 @@
* This file manages recalculation of derived values in struct gl_context. * This file manages recalculation of derived values in struct gl_context.
*/ */
#include <precomp.h>
#include "glheader.h"
#include "mtypes.h"
#include "context.h"
#include "macros.h"
#include "framebuffer.h"
#include "light.h"
#include "matrix.h"
#include "pixel.h"
#include "state.h"
#include "stencil.h"
#include "texobj.h"
#include "texstate.h"
#include "varray.h"
static void static void
update_separate_specular(struct gl_context *ctx) update_separate_specular(struct gl_context *ctx)

View file

@ -29,14 +29,7 @@
* *
*/ */
#include <precomp.h>
#include "glheader.h"
#include "imports.h"
#include "context.h"
#include "macros.h"
#include "stencil.h"
#include "mtypes.h"
static GLboolean static GLboolean
validate_stencil_op(struct gl_context *ctx, GLenum op) validate_stencil_op(struct gl_context *ctx, GLenum op)

View file

@ -29,16 +29,7 @@
* glTexEnv-related functions * glTexEnv-related functions
*/ */
#include <precomp.h>
#include "main/glheader.h"
#include "main/context.h"
#include "main/enums.h"
#include "main/macros.h"
#include "main/mtypes.h"
#include "main/state.h"
#include "main/texenv.h"
#include "main/texstate.h"
#define TE_ERROR(errCode, msg, value) \ #define TE_ERROR(errCode, msg, value) \
_mesa_error(ctx, errCode, msg, _mesa_lookup_enum_by_nr(value)); _mesa_error(ctx, errCode, msg, _mesa_lookup_enum_by_nr(value));

View file

@ -32,12 +32,7 @@
* \author Brian Paul * \author Brian Paul
*/ */
#include <precomp.h>
#include "context.h"
#include "enums.h"
#include "mfeatures.h"
#include "mtypes.h"
#include "texformat.h"
#define RETURN_IF_SUPPORTED(f) do { \ #define RETURN_IF_SUPPORTED(f) do { \
if (ctx->TextureFormatSupported[f]) \ if (ctx->TextureFormatSupported[f]) \

View file

@ -29,17 +29,7 @@
* glTexGen-related functions * glTexGen-related functions
*/ */
#include <precomp.h>
#include "main/glheader.h"
#include "main/context.h"
#include "main/enums.h"
#include "main/macros.h"
#include "main/mfeatures.h"
#include "main/texgen.h"
#include "main/texstate.h"
#include "math/m_matrix.h"
#include "main/dispatch.h"
#if FEATURE_texgen #if FEATURE_texgen

View file

@ -23,26 +23,11 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
/** /**
* Code for glGetTexImage() and glGetCompressedTexImage(). * Code for glGetTexImage() and glGetCompressedTexImage().
*/ */
#include <precomp.h>
#include "glheader.h"
#include "bufferobj.h"
#include "enums.h"
#include "context.h"
#include "formats.h"
#include "format_unpack.h"
#include "image.h"
#include "mfeatures.h"
#include "mtypes.h"
#include "pack.h"
#include "texgetimage.h"
#include "teximage.h"
/** /**
* Can the given type represent negative values? * Can the given type represent negative values?

View file

@ -28,23 +28,7 @@
* Texture image-related functions. * Texture image-related functions.
*/ */
#include <precomp.h>
#include "glheader.h"
#include "bufferobj.h"
#include "context.h"
#include "enums.h"
#include "framebuffer.h"
#include "hash.h"
#include "image.h"
#include "imports.h"
#include "macros.h"
#include "mfeatures.h"
#include "state.h"
#include "teximage.h"
#include "texstate.h"
#include "texpal.h"
#include "mtypes.h"
/** /**
* State changes which we care about for glCopyTex[Sub]Image() calls. * State changes which we care about for glCopyTex[Sub]Image() calls.

View file

@ -27,22 +27,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <precomp.h>
#include "mfeatures.h"
#include "bufferobj.h"
#include "colortab.h"
#include "context.h"
#include "enums.h"
#include "formats.h"
#include "hash.h"
#include "imports.h"
#include "macros.h"
#include "teximage.h"
#include "texobj.h"
#include "texstate.h"
#include "mtypes.h"
/**********************************************************************/ /**********************************************************************/
/** \name Internal functions */ /** \name Internal functions */

View file

@ -15,14 +15,8 @@
*/ */
#include "glheader.h" #include <precomp.h>
#include "compiler.h" /* for ASSERT */
#include "context.h"
#include "mfeatures.h"
#include "mtypes.h"
#include "imports.h"
#include "pixelstore.h"
#include "teximage.h"
#include "texpal.h" #include "texpal.h"
#if FEATURE_ES #if FEATURE_ES

View file

@ -29,21 +29,7 @@
* glTexParameter-related functions * glTexParameter-related functions
*/ */
#include <precomp.h>
#include "main/glheader.h"
#include "main/colormac.h"
#include "main/context.h"
#include "main/enums.h"
#include "main/formats.h"
#include "main/image.h"
#include "main/macros.h"
#include "main/mfeatures.h"
#include "main/mtypes.h"
#include "main/state.h"
#include "main/texparam.h"
#include "main/teximage.h"
#include "main/texstate.h"
/** /**
* Check if a coordinate wrap mode is supported for the texture target. * Check if a coordinate wrap mode is supported for the texture target.

View file

@ -28,20 +28,7 @@
* Texture state handling. * Texture state handling.
*/ */
#include "glheader.h" #include <precomp.h>
#include "mfeatures.h"
#include "bufferobj.h"
#include "colormac.h"
#include "colortab.h"
#include "context.h"
#include "enums.h"
#include "macros.h"
#include "texobj.h"
#include "teximage.h"
#include "texstate.h"
#include "mtypes.h"
/** /**
* Default texture combine environment state. This is used to initialize * Default texture combine environment state. This is used to initialize

View file

@ -27,19 +27,7 @@
* GL_ARB_texture_storage functions * GL_ARB_texture_storage functions
*/ */
#include <precomp.h>
#include "glheader.h"
#include "context.h"
#include "enums.h"
#include "imports.h"
#include "macros.h"
#include "mfeatures.h"
#include "teximage.h"
#include "texstorage.h"
#include "mtypes.h"
/** /**
* Check if the given texture target is a legal texture object target * Check if the given texture target is a legal texture object target

View file

@ -51,20 +51,7 @@
* images and sub-images. * images and sub-images.
*/ */
#include <precomp.h>
#include "glheader.h"
#include "bufferobj.h"
#include "colormac.h"
#include "image.h"
#include "macros.h"
#include "mfeatures.h"
#include "mtypes.h"
#include "pack.h"
#include "imports.h"
#include "teximage.h"
#include "texstore.h"
#include "enums.h"
enum { enum {
ZERO = 4, ZERO = 4,

View file

@ -28,9 +28,7 @@
* \author Marek Olšák <maraeo@gmail.com> * \author Marek Olšák <maraeo@gmail.com>
*/ */
#include "context.h" #include <precomp.h>
#include "texturebarrier.h"
static void static void
_mesa_texture_barrier(struct gl_context *ctx) _mesa_texture_barrier(struct gl_context *ctx)

View file

@ -23,22 +23,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <precomp.h>
#include "glheader.h"
#include "imports.h"
#include "bufferobj.h"
#include "context.h"
#include "enable.h"
#include "enums.h"
#include "hash.h"
#include "image.h"
#include "macros.h"
#include "mfeatures.h"
#include "mtypes.h"
#include "varray.h"
#include "arrayobj.h"
#include "main/dispatch.h"
/** Used to indicate which GL datatypes are accepted by each of the /** Used to indicate which GL datatypes are accepted by each of the
* glVertex/Color/Attrib/EtcPointer() functions. * glVertex/Color/Attrib/EtcPointer() functions.

View file

@ -21,10 +21,8 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <precomp.h>
#include "imports.h"
#include "mtypes.h"
#include "version.h"
#include "git_sha1.h" #include "git_sha1.h"
/** /**

View file

@ -28,12 +28,7 @@
* glViewport and glDepthRange functions. * glViewport and glDepthRange functions.
*/ */
#include <precomp.h>
#include "context.h"
#include "macros.h"
#include "mtypes.h"
#include "viewport.h"
/** /**
* Set the viewport. * Set the viewport.

View file

@ -26,17 +26,7 @@
* Gareth Hughes * Gareth Hughes
*/ */
#include "glheader.h" #include <precomp.h>
#include "api_arrayelt.h"
#include "context.h"
#include "imports.h"
#include "mfeatures.h"
#include "mtypes.h"
#include "vtxfmt.h"
#include "eval.h"
#include "dlist.h"
#include "main/dispatch.h"
#if FEATURE_beginend #if FEATURE_beginend

View file

@ -25,13 +25,7 @@
* Gareth Hughes * Gareth Hughes
*/ */
#include "main/glheader.h" #include <precomp.h>
#include "main/context.h"
#include "main/macros.h"
#include "main/imports.h"
#include "m_matrix.h"
#include "m_xform.h"
#include "m_debug.h" #include "m_debug.h"
#include "m_debug_util.h" #include "m_debug_util.h"

View file

@ -26,13 +26,7 @@
* Gareth Hughes * Gareth Hughes
*/ */
#include "main/glheader.h" #include <precomp.h>
#include "main/context.h"
#include "main/macros.h"
#include "main/imports.h"
#include "m_matrix.h"
#include "m_xform.h"
#include "m_debug.h" #include "m_debug.h"
#include "m_debug_util.h" #include "m_debug_util.h"

View file

@ -26,13 +26,7 @@
* Updated for P6 architecture by Gareth Hughes. * Updated for P6 architecture by Gareth Hughes.
*/ */
#include "main/glheader.h" #include <precomp.h>
#include "main/context.h"
#include "main/macros.h"
#include "main/imports.h"
#include "m_matrix.h"
#include "m_xform.h"
#include "m_debug.h" #include "m_debug.h"
#include "m_debug_util.h" #include "m_debug_util.h"

View file

@ -36,15 +36,12 @@
* Thanks guys! * Thanks guys!
*/ */
#include <precomp.h>
#include "main/glheader.h" #include <main/config.h>
#include "main/config.h"
#include "m_eval.h"
static GLfloat inv_tab[MAX_EVAL_ORDER]; static GLfloat inv_tab[MAX_EVAL_ORDER];
/* /*
* Horner scheme for Bezier curves * Horner scheme for Bezier curves
* *

View file

@ -33,13 +33,7 @@
* -# Transformation of a point p by a matrix M is: p' = M * p * -# Transformation of a point p by a matrix M is: p' = M * p
*/ */
#include <precomp.h>
#include "main/glheader.h"
#include "main/imports.h"
#include "main/macros.h"
#include "m_matrix.h"
/** /**
* \defgroup MatFlags MAT_FLAG_XXX-flags * \defgroup MatFlags MAT_FLAG_XXX-flags

View file

@ -28,14 +28,10 @@
*/ */
#include "main/glheader.h" #include <precomp.h>
#include "main/macros.h"
#include "main/mtypes.h" /* GLchan hack */ #include "main/mtypes.h" /* GLchan hack */
#include "m_translate.h"
typedef void (*trans_1f_func)(GLfloat *to, typedef void (*trans_1f_func)(GLfloat *to,
CONST void *ptr, CONST void *ptr,
GLuint stride, GLuint stride,

View file

@ -26,15 +26,10 @@
* New (3.1) transformation code written by Keith Whitwell. * New (3.1) transformation code written by Keith Whitwell.
*/ */
#include <precomp.h>
#include "main/glheader.h"
#include "main/imports.h"
#include "main/macros.h"
#include "m_vector.h" #include "m_vector.h"
/** /**
* Given a vector [count][4] of floats, set all the [][elt] values * Given a vector [count][4] of floats, set all the [][elt] values
* to 0 (if elt = 0, 1, 2) or 1.0 (if elt = 3). * to 0 (if elt = 0, 1, 2) or 1.0 (if elt = 3).

View file

@ -33,14 +33,7 @@
* 3. Transformation of a point p by a matrix M is: p' = M * p * 3. Transformation of a point p by a matrix M is: p' = M * p
*/ */
#include "main/glheader.h" #include <precomp.h>
#include "main/macros.h"
#include "m_eval.h"
#include "m_matrix.h"
#include "m_translate.h"
#include "m_xform.h"
#ifdef DEBUG_MATH #ifdef DEBUG_MATH
#include "m_debug.h" #include "m_debug.h"

View file

@ -0,0 +1,14 @@
#ifndef _MESA_MATH_PCH_
#define _MESA_MATH_PCH_
#include <main/context.h>
#include <main/glheader.h>
#include <main/imports.h>
#include <main/macros.h>
#include "m_eval.h"
#include "m_matrix.h"
#include "m_translate.h"
#include "m_xform.h"
#endif /* _MESA_MATH_PCH_ */

View file

@ -0,0 +1,40 @@
#ifndef _MESA_SWRAST_PCH_
#define _MESA_SWRAST_PCH_
#include <main/bufferobj.h>
#include <main/colormac.h>
#include <main/context.h>
#include <main/format_pack.h>
#include <main/format_unpack.h>
#include <main/formats.h>
#include <main/glheader.h>
#include <main/image.h>
#include <main/imports.h>
#include <main/macros.h>
#include <main/mtypes.h>
#include <main/pixeltransfer.h>
#include <main/state.h>
#include <main/teximage.h>
#include "s_aaline.h"
#include "s_aatriangle.h"
#include "s_alpha.h"
#include "s_blend.h"
#include "s_context.h"
#include "s_depth.h"
#include "s_feedback.h"
#include "s_fog.h"
#include "s_lines.h"
#include "s_logic.h"
#include "s_masking.h"
#include "s_points.h"
#include "s_span.h"
#include "s_stencil.h"
#include "s_texcombine.h"
#include "s_texfetch.h"
#include "s_texfilter.h"
#include "s_triangle.h"
#include "s_zoom.h"
#include "swrast.h"
#endif /* _MESA_SWRAST_PCH_ */

View file

@ -22,16 +22,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <precomp.h>
#include "main/glheader.h"
#include "main/imports.h"
#include "main/macros.h"
#include "main/mtypes.h"
#include "swrast/s_aaline.h"
#include "swrast/s_context.h"
#include "swrast/s_span.h"
#include "swrast/swrast.h"
#define SUB_PIXEL 4 #define SUB_PIXEL 4

View file

@ -27,17 +27,7 @@
* Antialiased Triangle rasterizers * Antialiased Triangle rasterizers
*/ */
#include <precomp.h>
#include "main/glheader.h"
#include "main/context.h"
#include "main/colormac.h"
#include "main/macros.h"
#include "main/imports.h"
#include "main/state.h"
#include "s_aatriangle.h"
#include "s_context.h"
#include "s_span.h"
/* /*
* Compute coefficients of a plane using the X,Y coords of the v0, v1, v2 * Compute coefficients of a plane using the X,Y coords of the v0, v1, v2

View file

@ -27,14 +27,7 @@
* \brief Functions to apply alpha test. * \brief Functions to apply alpha test.
*/ */
#include "main/glheader.h" #include <precomp.h>
#include "main/context.h"
#include "main/colormac.h"
#include "main/macros.h"
#include "s_alpha.h"
#include "s_context.h"
#define ALPHA_TEST(ALPHA, LOOP_CODE) \ #define ALPHA_TEST(ALPHA, LOOP_CODE) \
do { \ do { \

View file

@ -28,15 +28,7 @@
* \author Brian Paul * \author Brian Paul
*/ */
#include "main/glheader.h" #include <precomp.h>
#include "main/bufferobj.h"
#include "main/image.h"
#include "main/macros.h"
#include "s_context.h"
#include "s_span.h"
/** /**
* Render a bitmap. * Render a bitmap.

View file

@ -22,7 +22,6 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
/** /**
* \file swrast/s_blend.c * \file swrast/s_blend.c
* \brief software blending. * \brief software blending.
@ -33,17 +32,7 @@
* Celestia uses glBlendFunc(GL_SRC_ALPHA, GL_ONE), for example. * Celestia uses glBlendFunc(GL_SRC_ALPHA, GL_ONE), for example.
*/ */
#include <precomp.h>
#include "main/glheader.h"
#include "main/context.h"
#include "main/colormac.h"
#include "main/macros.h"
#include "s_blend.h"
#include "s_context.h"
#include "s_span.h"
#if defined(USE_MMX_ASM) #if defined(USE_MMX_ASM)
#include "x86/mmx.h" #include "x86/mmx.h"
@ -53,7 +42,6 @@
#define _BLENDAPI #define _BLENDAPI
#endif #endif
/** /**
* Integer divide by 255 * Integer divide by 255
* Declare "int divtemp" before using. * Declare "int divtemp" before using.

View file

@ -22,18 +22,9 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include "main/glheader.h" #include <precomp.h>
#include "main/accum.h"
#include "main/format_pack.h"
#include "main/macros.h"
#include "main/imports.h"
#include "main/mtypes.h"
#include "s_context.h"
#include "s_depth.h"
#include "s_stencil.h"
#include <main/accum.h>
/** /**
* Clear an rgba color buffer with masking if needed. * Clear an rgba color buffer with masking if needed.

View file

@ -26,21 +26,7 @@
* Brian Paul * Brian Paul
*/ */
#include "main/imports.h" #include <precomp.h>
#include "main/bufferobj.h"
#include "main/colormac.h"
#include "main/mtypes.h"
#include "main/teximage.h"
#include "swrast.h"
#include "s_blend.h"
#include "s_context.h"
#include "s_lines.h"
#include "s_points.h"
#include "s_span.h"
#include "s_texfetch.h"
#include "s_triangle.h"
#include "s_texfilter.h"
/** /**
* Recompute the value of swrast->_RasterMask, etc. according to * Recompute the value of swrast->_RasterMask, etc. according to

View file

@ -22,21 +22,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <precomp.h>
#include "main/glheader.h"
#include "main/context.h"
#include "main/colormac.h"
#include "main/macros.h"
#include "main/pixeltransfer.h"
#include "main/imports.h"
#include "s_context.h"
#include "s_depth.h"
#include "s_span.h"
#include "s_stencil.h"
#include "s_zoom.h"
/** /**
* Determine if there's overlap in an image copy. * Determine if there's overlap in an image copy.

View file

@ -22,20 +22,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <precomp.h>
#include "main/glheader.h"
#include "main/context.h"
#include "main/formats.h"
#include "main/format_unpack.h"
#include "main/format_pack.h"
#include "main/macros.h"
#include "main/imports.h"
#include "s_context.h"
#include "s_depth.h"
#include "s_span.h"
#define Z_TEST(COMPARE) \ #define Z_TEST(COMPARE) \
do { \ do { \

View file

@ -22,24 +22,9 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <precomp.h>
#include "main/glheader.h" #include <main/pack.h>
#include "main/bufferobj.h"
#include "main/colormac.h"
#include "main/context.h"
#include "main/format_pack.h"
#include "main/image.h"
#include "main/imports.h"
#include "main/macros.h"
#include "main/pack.h"
#include "main/pixeltransfer.h"
#include "main/state.h"
#include "s_context.h"
#include "s_span.h"
#include "s_stencil.h"
#include "s_zoom.h"
/** /**
* Handle a common case of drawing GL_RGB/GL_UNSIGNED_BYTE into a * Handle a common case of drawing GL_RGB/GL_UNSIGNED_BYTE into a

View file

@ -22,16 +22,9 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include "main/glheader.h" #include <precomp.h>
#include "main/colormac.h"
#include "main/feedback.h"
#include "main/macros.h"
#include "s_context.h"
#include "s_feedback.h"
#include "s_triangle.h"
#include <main/feedback.h>
static void static void
feedback_vertex(struct gl_context * ctx, const SWvertex * v, const SWvertex * pv) feedback_vertex(struct gl_context * ctx, const SWvertex * v, const SWvertex * pv)

View file

@ -22,14 +22,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <precomp.h>
#include "main/glheader.h"
#include "main/colormac.h"
#include "main/macros.h"
#include "s_context.h"
#include "s_fog.h"
/** /**
* Used to convert current raster distance to a fog factor in [0,1]. * Used to convert current raster distance to a fog factor in [0,1].

View file

@ -22,17 +22,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <precomp.h>
#include "main/glheader.h"
#include "main/context.h"
#include "main/colormac.h"
#include "main/macros.h"
#include "s_aaline.h"
#include "s_context.h"
#include "s_feedback.h"
#include "s_lines.h"
#include "s_span.h"
/* /*
* Init the mask[] array to implement a line stipple. * Init the mask[] array to implement a line stipple.

View file

@ -22,16 +22,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <precomp.h>
#include "main/glheader.h"
#include "main/context.h"
#include "main/imports.h"
#include "main/macros.h"
#include "s_context.h"
#include "s_logic.h"
#include "s_span.h"
/** /**
* We do all logic ops on 4-byte GLuints. * We do all logic ops on 4-byte GLuints.

View file

@ -22,19 +22,11 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
/* /*
* Implement the effect of glColorMask and glIndexMask in software. * Implement the effect of glColorMask and glIndexMask in software.
*/ */
#include <precomp.h>
#include "main/glheader.h"
#include "main/macros.h"
#include "s_context.h"
#include "s_masking.h"
#include "s_span.h"
/** /**
* Apply the color mask to a span of rgba values. * Apply the color mask to a span of rgba values.

View file

@ -22,15 +22,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <precomp.h>
#include "main/glheader.h"
#include "main/colormac.h"
#include "main/macros.h"
#include "s_context.h"
#include "s_feedback.h"
#include "s_points.h"
#include "s_span.h"
/** /**
* Used to cull points with invalid coords * Used to cull points with invalid coords

View file

@ -22,22 +22,16 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
/** /**
* Functions for allocating/managing software-based renderbuffers. * Functions for allocating/managing software-based renderbuffers.
* Also, routines for reading/writing software-based renderbuffer data as * Also, routines for reading/writing software-based renderbuffer data as
* ubytes, ushorts, uints, etc. * ubytes, ushorts, uints, etc.
*/ */
#include <precomp.h>
#include "main/glheader.h" #include <main/renderbuffer.h>
#include "main/imports.h" #include "s_renderbuffer.h"
#include "main/context.h"
#include "main/formats.h"
#include "main/mtypes.h"
#include "main/renderbuffer.h"
#include "swrast/s_context.h"
#include "swrast/s_renderbuffer.h"
static static
GLenum GLenum

Some files were not shown because too many files have changed in this diff Show more