config.h revision 114152e068ec919feb0a57a1259c2ada970b9f02
1afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg/*
2afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * Mesa 3-D graphics library
3f2c023291a1f2887294d2aac504f8b82857ad092Brian Paul * Version:  7.5
422144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes *
5009ddb4e509f7dd39a17408332c6b0eff47a16feBrian * Copyright (C) 1999-2007  Brian Paul   All Rights Reserved.
6e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul * Copyright (C) 2008  VMware, Inc.  All Rights Reserved.
722144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes *
8afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * Permission is hereby granted, free of charge, to any person obtaining a
9afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * copy of this software and associated documentation files (the "Software"),
10afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * to deal in the Software without restriction, including without limitation
11afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * the rights to use, copy, modify, merge, publish, distribute, sublicense,
12afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * and/or sell copies of the Software, and to permit persons to whom the
13afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * Software is furnished to do so, subject to the following conditions:
1422144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes *
15afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * The above copyright notice and this permission notice shall be included
16afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * in all copies or substantial portions of the Software.
1722144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes *
18afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
19afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
21afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
22afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
23afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg */
25afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg
26e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul/**
27e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul * \file config.h
28e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul * Tunable configuration parameters.
29e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul */
30afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg
31d00ef005fedb21a1b42c0a12264433089b7a10c5Brian Paul#ifndef MESA_CONFIG_H_INCLUDED
32d00ef005fedb21a1b42c0a12264433089b7a10c5Brian Paul#define MESA_CONFIG_H_INCLUDED
33afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg
3440d1a40f294f1ed2dacfad6f5498322fc08cc2d1Brian Paul
356dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/**
366dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell * \name OpenGL implementation limits
37afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg */
386dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/*@{*/
39afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg
406dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maximum modelview matrix stack depth */
41afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define MAX_MODELVIEW_STACK_DEPTH 32
42afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg
436dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maximum projection matrix stack depth */
44afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define MAX_PROJECTION_STACK_DEPTH 32
45afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg
466dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maximum texture matrix stack depth */
47afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define MAX_TEXTURE_STACK_DEPTH 10
48afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg
496dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maximum color matrix stack depth */
50250069dbb443f26f4dcc409c9c873019a5f50f9dBrian Paul#define MAX_COLOR_STACK_DEPTH 4
51250069dbb443f26f4dcc409c9c873019a5f50f9dBrian Paul
526dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maximum attribute stack depth */
53afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define MAX_ATTRIB_STACK_DEPTH 16
54afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg
556dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maximum client attribute stack depth */
56afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define MAX_CLIENT_ATTRIB_STACK_DEPTH 16
57afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg
586dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maximum recursion depth of display list calls */
59afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define MAX_LIST_NESTING 64
60afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg
616dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maximum number of lights */
62afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define MAX_LIGHTS 8
63afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg
646dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maximum user-defined clipping planes */
65afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define MAX_CLIP_PLANES 6
66afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg
676dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maximum pixel map lookup table size */
68afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define MAX_PIXEL_MAP_TABLE 256
69afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg
70e4b2356c07d31fbeeabb13b2fb47db703b473080Brian Paul/** Maximum number of auxillary color buffers */
71555f0a88182e2b1af809b2d97abdac02814a2f28Brian Paul#define MAX_AUX_BUFFERS 1
72afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg
736dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maximum order (degree) of curves */
74afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#ifdef AMIGA
75afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#   define MAX_EVAL_ORDER 12
76afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#else
77afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#   define MAX_EVAL_ORDER 30
78afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#endif
79afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg
806dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maximum Name stack depth */
81afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define MAX_NAME_STACK_DEPTH 64
82afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg
836dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Minimum point size */
84afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define MIN_POINT_SIZE 1.0
856dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maximum point size */
861a55e97c9c1734f0808e4ed570be3826dba24417Brian#define MAX_POINT_SIZE 60.0
876dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Point size granularity */
88afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define POINT_SIZE_GRANULARITY 0.1
89afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg
906dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Minimum line width */
91afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define MIN_LINE_WIDTH 1.0
926dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maximum line width */
93afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define MAX_LINE_WIDTH 10.0
946dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Line width granularity */
9565cd4d80c4093e44e6a340b41e7bae3489b7ea4aBrian Paul#define LINE_WIDTH_GRANULARITY 0.1
96afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg
976dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Max texture palette / color table size */
9813811376c99addb0616c9397cc7d5715befcd8d4Brian Paul#define MAX_COLOR_TABLE_SIZE 256
99afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg
1006dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Number of 1D/2D texture mipmap levels */
10188b702e8c47c8930940c396132b2a191d4a3e7caRobert Ellison#define MAX_TEXTURE_LEVELS 13
102afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg
1036dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Number of 3D texture mipmap levels */
104738318bb75dea8dac4465f53850987f6062a732dBrian Paul#define MAX_3D_TEXTURE_LEVELS 9
105cd1cefae9146fc14b35ee93a04bdb1b1590fba7bBrian Paul
1066dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Number of cube texture mipmap levels - GL_ARB_texture_cube_map */
10788b702e8c47c8930940c396132b2a191d4a3e7caRobert Ellison#define MAX_CUBE_TEXTURE_LEVELS 13
108cd1cefae9146fc14b35ee93a04bdb1b1590fba7bBrian Paul
1096dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maximum rectangular texture size - GL_NV_texture_rectangle */
11088b702e8c47c8930940c396132b2a191d4a3e7caRobert Ellison#define MAX_TEXTURE_RECT_SIZE 4096
1118afe7de8deaf3c9613fd68b344de8c52b02b1879Brian Paul
112bb372f1c9bc08e8b0dca983cb4ba36b2f2f039fbIan Romanick/** Maximum number of layers in a 1D or 2D array texture - GL_MESA_texture_array */
113bb372f1c9bc08e8b0dca983cb4ba36b2f2f039fbIan Romanick#define MAX_ARRAY_TEXTURE_LAYERS 64
114bb372f1c9bc08e8b0dca983cb4ba36b2f2f039fbIan Romanick
115e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul/**
116e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul * Max number of texture coordinate units.  This mainly just applies to
117e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul * the fixed-function vertex code.  This will be difficult to raise above
118e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul * eight because of various vertex attribute bitvectors.
119e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul */
120e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul#define MAX_TEXTURE_COORD_UNITS 8
121de4b3bb7766f242cd7c46841250405f5fd6bb7d3Brian Paul
122e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul/**
123e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul * Max number of texture image units.  Also determines number of texture
124e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul * samplers in shaders.
125e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul */
126e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul#define MAX_TEXTURE_IMAGE_UNITS 16
127de4b3bb7766f242cd7c46841250405f5fd6bb7d3Brian Paul
1286dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/**
129e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul * Larger of MAX_TEXTURE_COORD_UNITS and MAX_TEXTURE_IMAGE_UNITS.
130e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul * This value is only used for dimensioning arrays.
131e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul * Either MAX_TEXTURE_COORD_UNITS or MAX_TEXTURE_IMAGE_UNITS (or the
132e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul * corresponding ctx->Const.MaxTextureCoord/ImageUnits fields) should be
133e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul * used almost everywhere else.
134610d59981a9f43fefe29b34ef19c184d28e2bef5Brian Paul */
135e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul#define MAX_TEXTURE_UNITS ((MAX_TEXTURE_COORD_UNITS > MAX_TEXTURE_IMAGE_UNITS) ? MAX_TEXTURE_COORD_UNITS : MAX_TEXTURE_IMAGE_UNITS)
136e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul
137610d59981a9f43fefe29b34ef19c184d28e2bef5Brian Paul
1386dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/**
1396dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell * Maximum viewport/image width. Must accomodate all texture sizes too.
1406dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell */
1418533b915437464f335f52bfacf93292098f64f4dBrian Paul#define MAX_WIDTH 4096
1426dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maximum viewport/image height */
1438533b915437464f335f52bfacf93292098f64f4dBrian Paul#define MAX_HEIGHT 4096
144afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg
1456dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maxmimum size for CVA.  May be overridden by the drivers.  */
146afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define MAX_ARRAY_LOCK_SIZE 3000
147afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg
1486dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Subpixel precision for antialiasing, window coordinate snapping */
14965cd4d80c4093e44e6a340b41e7bae3489b7ea4aBrian Paul#define SUB_PIXEL_BITS 4
15065cd4d80c4093e44e6a340b41e7bae3489b7ea4aBrian Paul
1516dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Size of histogram tables */
1520771d159d59a856135e375ba89f6af2a057d4f5bBrian Paul#define HISTOGRAM_TABLE_SIZE 256
1530771d159d59a856135e375ba89f6af2a057d4f5bBrian Paul
1546dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Max convolution filter width */
155a6d46f6b9922327fe9a268b003134a27ba8b931fBrian Paul#define MAX_CONVOLUTION_WIDTH 9
1566dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Max convolution filter height */
157a6d46f6b9922327fe9a268b003134a27ba8b931fBrian Paul#define MAX_CONVOLUTION_HEIGHT 9
158afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg
15984b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul/** For GL_ARB_texture_compression */
1601207bf057aeea3376e5e0f03f789a5d67ed4d29dBrian Paul#define MAX_COMPRESSED_TEXTURE_FORMATS 25
1611207bf057aeea3376e5e0f03f789a5d67ed4d29dBrian Paul
16284b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul/** For GL_EXT_texture_filter_anisotropic */
1632c3d34c905fa6b831a066afae83b938de05eb241Gareth Hughes#define MAX_TEXTURE_MAX_ANISOTROPY 16.0
1642c3d34c905fa6b831a066afae83b938de05eb241Gareth Hughes
1657a5eb9a7606bd951cb9cba56b0ff96c121084d44Brian Paul/** For GL_EXT_texture_lod_bias (typically MAX_TEXTURE_LEVELS - 1) */
16688b702e8c47c8930940c396132b2a191d4a3e7caRobert Ellison#define MAX_TEXTURE_LOD_BIAS 12.0
16787c964d3885d84959f86d5d7d9c4358240b6da3cBrian Paul
16884b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul/** For GL_ARB_vertex_program */
16984b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul/*@{*/
170451f31093e950e2c76e8d7dee3cb097049a906b5Brian Paul#define MAX_VERTEX_PROGRAM_ADDRESS_REGS 1
1719bc3753a513f2045f3613389c2ddb604df8693e7Karl Rasche#define MAX_VERTEX_PROGRAM_ATTRIBS     16
17284b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul/*@}*/
173451f31093e950e2c76e8d7dee3cb097049a906b5Brian Paul
17484b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul/** For GL_ARB_fragment_program */
17584b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul/*@{*/
17605051037101dfa053798cf5ad91d1975fd1aa6a7Brian Paul#define MAX_FRAGMENT_PROGRAM_ADDRESS_REGS 0
17784b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul/*@}*/
1781207bf057aeea3376e5e0f03f789a5d67ed4d29dBrian Paul
17984b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul/** For any program target/extension */
18084b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul/*@{*/
181f51cca72d31aacbae815c70071d2d3a04d55025aBrian Paul#define MAX_PROGRAM_INSTRUCTIONS  (16 * 1024)
182432e9fa85233f28ce42c2bcc94053a2deb45dad9Brian Paul#define MAX_PROGRAM_LOCAL_PARAMS 256 /**< per-program constants (power of two) */
183b7aeac0de1c9c533f78c5d6acf358bdc206161abBrian#define MAX_PROGRAM_ENV_PARAMS 128
184edd677454dc38a590bd6fc1cd3e2759d2a4d55e3Brian Paul#define MAX_PROGRAM_MATRICES 8
185edd677454dc38a590bd6fc1cd3e2759d2a4d55e3Brian Paul#define MAX_PROGRAM_MATRIX_STACK_DEPTH 4
1863dedeaa0557f17770f6ab7f163dcdde8e93609b8Brian Paul#define MAX_PROGRAM_CALL_DEPTH 8
187a90046f1097ad95de2aa95ca65741dff5cddced9Brian#define MAX_PROGRAM_TEMPS 128
188b85d4d61a7f93a9f2d58a1d701808584e0fce8c7Brian#define MAX_PROGRAM_ADDRESS_REGS 2
1895b2f8dc01300058d43d8043aa897722f39657e93Brian Paul#define MAX_UNIFORMS 1024  /**< number of vec4 uniforms */
19051654783ef0aa48560f70cd3944128a94a87d86bBrian Paul#define MAX_VARYING 8      /**< number of float[4] vectors */
191e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul#define MAX_SAMPLERS MAX_TEXTURE_IMAGE_UNITS
192b730d0d3e9b202b17a0815cb820fc9905f35cb98Brian Paul#define MAX_PROGRAM_INPUTS 32
193b730d0d3e9b202b17a0815cb820fc9905f35cb98Brian Paul#define MAX_PROGRAM_OUTPUTS 32
194efb41b07ff213735e8ea08f38a7799f9d80459fcBrian Paul/*@}*/
195efb41b07ff213735e8ea08f38a7799f9d80459fcBrian Paul
19686a4810b09097714942bf2b889e6c62357bba931Roland Scheidegger/** For GL_NV_vertex_program */
19786a4810b09097714942bf2b889e6c62357bba931Roland Scheidegger/*@{*/
19886a4810b09097714942bf2b889e6c62357bba931Roland Scheidegger#define MAX_NV_VERTEX_PROGRAM_INSTRUCTIONS 128
19986a4810b09097714942bf2b889e6c62357bba931Roland Scheidegger#define MAX_NV_VERTEX_PROGRAM_TEMPS         12
20086a4810b09097714942bf2b889e6c62357bba931Roland Scheidegger#define MAX_NV_VERTEX_PROGRAM_PARAMS        MAX_PROGRAM_ENV_PARAMS
20186a4810b09097714942bf2b889e6c62357bba931Roland Scheidegger#define MAX_NV_VERTEX_PROGRAM_INPUTS        16
20286a4810b09097714942bf2b889e6c62357bba931Roland Scheidegger#define MAX_NV_VERTEX_PROGRAM_OUTPUTS       15
20386a4810b09097714942bf2b889e6c62357bba931Roland Scheidegger/*@}*/
20486a4810b09097714942bf2b889e6c62357bba931Roland Scheidegger
20586a4810b09097714942bf2b889e6c62357bba931Roland Scheidegger/** For GL_NV_fragment_program */
20686a4810b09097714942bf2b889e6c62357bba931Roland Scheidegger/*@{*/
20786a4810b09097714942bf2b889e6c62357bba931Roland Scheidegger#define MAX_NV_FRAGMENT_PROGRAM_INSTRUCTIONS 1024 /* 72 for GL_ARB_f_p */
20886a4810b09097714942bf2b889e6c62357bba931Roland Scheidegger#define MAX_NV_FRAGMENT_PROGRAM_TEMPS         96
20986a4810b09097714942bf2b889e6c62357bba931Roland Scheidegger#define MAX_NV_FRAGMENT_PROGRAM_PARAMS        64
21086a4810b09097714942bf2b889e6c62357bba931Roland Scheidegger#define MAX_NV_FRAGMENT_PROGRAM_INPUTS        12
21186a4810b09097714942bf2b889e6c62357bba931Roland Scheidegger#define MAX_NV_FRAGMENT_PROGRAM_OUTPUTS        3
21286a4810b09097714942bf2b889e6c62357bba931Roland Scheidegger#define MAX_NV_FRAGMENT_PROGRAM_WRITE_ONLYS    2
21386a4810b09097714942bf2b889e6c62357bba931Roland Scheidegger/*@}*/
21486a4810b09097714942bf2b889e6c62357bba931Roland Scheidegger
21586a4810b09097714942bf2b889e6c62357bba931Roland Scheidegger
216efb41b07ff213735e8ea08f38a7799f9d80459fcBrian Paul/** For GL_ARB_vertex_shader */
217efb41b07ff213735e8ea08f38a7799f9d80459fcBrian Paul/*@{*/
218ae76be49eb4954a691b765077fc77875964b37e1Michal Krol#define MAX_VERTEX_ATTRIBS 16
219e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul#define MAX_VERTEX_TEXTURE_IMAGE_UNITS MAX_TEXTURE_IMAGE_UNITS
220e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul#define MAX_COMBINED_TEXTURE_IMAGE_UNITS MAX_TEXTURE_IMAGE_UNITS
22184b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul/*@}*/
222edd677454dc38a590bd6fc1cd3e2759d2a4d55e3Brian Paul
223edd677454dc38a590bd6fc1cd3e2759d2a4d55e3Brian Paul
22453f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul/** For GL_ARB_draw_buffers */
22553f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul/*@{*/
2261c09bcfdda4083636a3ac27d804a34ef87875ce7Brian#define MAX_DRAW_BUFFERS 4
22753f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul/*@}*/
22853f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul
22953f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul
2303deaa01c2bd576ae81fc6d3ea67c583cb3c22159Brian Paul/** For GL_EXT_framebuffer_object */
2313deaa01c2bd576ae81fc6d3ea67c583cb3c22159Brian Paul/*@{*/
232e4b2356c07d31fbeeabb13b2fb47db703b473080Brian Paul#define MAX_COLOR_ATTACHMENTS 8
2333deaa01c2bd576ae81fc6d3ea67c583cb3c22159Brian Paul/*@}*/
2343deaa01c2bd576ae81fc6d3ea67c583cb3c22159Brian Paul
235114152e068ec919feb0a57a1259c2ada970b9f02Roland Scheidegger/** For GL_ATI_envmap_bump - support bump mapping on first 8 units */
236114152e068ec919feb0a57a1259c2ada970b9f02Roland Scheidegger#define SUPPORTED_ATI_BUMP_UNITS 0xff
23753f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul
2386dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/**
2396dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell * \name Mesa-specific parameters
240afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg */
2416dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/*@{*/
242afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg
243afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg
2446dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/**
24584b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul * If non-zero use GLdouble for walking triangle edges, for better accuracy.
24684b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul */
24784b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul#define TRIANGLE_WALK_DOUBLE 0
24884b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul
249afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg
2506dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/**
251009ddb4e509f7dd39a17408332c6b0eff47a16feBrian * Bits per depth buffer value (max is 32).
252fbd8f212c3866ec98c1d8c9d3db3ddb7e7c479a5Brian Paul */
253a1503b00f863a48a517939a42d512f9cfe77f79cBrian Paul#ifndef DEFAULT_SOFTWARE_DEPTH_BITS
254ed30dfa1264ec8875a3162c3c8778bc703bf11d5Brian Paul#define DEFAULT_SOFTWARE_DEPTH_BITS 16
255a1503b00f863a48a517939a42d512f9cfe77f79cBrian Paul#endif
2566dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Depth buffer data type */
25766202b75d561b2275022bea8b5936a7482c1c315Brian Paul#if DEFAULT_SOFTWARE_DEPTH_BITS <= 16
258ed30dfa1264ec8875a3162c3c8778bc703bf11d5Brian Paul#define DEFAULT_SOFTWARE_DEPTH_TYPE GLushort
25966202b75d561b2275022bea8b5936a7482c1c315Brian Paul#else
26066202b75d561b2275022bea8b5936a7482c1c315Brian Paul#define DEFAULT_SOFTWARE_DEPTH_TYPE GLuint
26166202b75d561b2275022bea8b5936a7482c1c315Brian Paul#endif
262ed30dfa1264ec8875a3162c3c8778bc703bf11d5Brian Paul
263afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg
2646dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/**
2656dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell * Bits per stencil value: 8
266afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg */
267afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define STENCIL_BITS 8
268afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg
269afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg
2706dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/**
271d8af040f5eb2dd2e40339b83a02f4a42b64619adBrian Paul * Bits per color channel:  8, 16 or 32
272afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg */
273785c3469f45ef4b96f2622cd1575229a1fd9d250Brian Paul#ifndef CHAN_BITS
274afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define CHAN_BITS 8
275785c3469f45ef4b96f2622cd1575229a1fd9d250Brian Paul#endif
276afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg
277afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg
278afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg/*
279afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * Color channel component order
2806dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell *
2816dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell * \note Changes will almost certainly cause problems at this time.
282afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg */
283afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define RCOMP 0
284afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define GCOMP 1
285afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define BCOMP 2
286afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define ACOMP 3
287afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg
2888dfc5b9863f08a713177fd92847573e17febbac9Brian Paul
28953f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul/**
29053f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul * Maximum number of temporary vertices required for clipping.
29153f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul *
29253f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul * Used in array_cache and tnl modules.
29353f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul */
29453f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul#define MAX_CLIPPED_VERTICES ((2 * (6 + MAX_CLIP_PLANES))+1)
29553f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul
29653f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul
297d00ef005fedb21a1b42c0a12264433089b7a10c5Brian Paul#endif /* MESA_CONFIG_H_INCLUDED */
298