config.h revision efb41b07ff213735e8ea08f38a7799f9d80459fc
16dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** 26dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell * \file config.h 36dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell * Tunable configuration parameters. 46dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell */ 56dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell 6afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg/* 7afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * Mesa 3-D graphics library 884b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul * Version: 6.1 922144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * 108533b915437464f335f52bfacf93292098f64f4dBrian Paul * Copyright (C) 1999-2004 Brian Paul All Rights Reserved. 1122144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * 12afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * Permission is hereby granted, free of charge, to any person obtaining a 13afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * copy of this software and associated documentation files (the "Software"), 14afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * to deal in the Software without restriction, including without limitation 15afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * the rights to use, copy, modify, merge, publish, distribute, sublicense, 16afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * and/or sell copies of the Software, and to permit persons to whom the 17afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * Software is furnished to do so, subject to the following conditions: 1822144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * 19afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * The above copyright notice and this permission notice shall be included 20afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * in all copies or substantial portions of the Software. 2122144ab7552f0799bcfca506bf4ffa7f70a06649Gareth Hughes * 22afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 23afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 24afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 25afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 26afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 27afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 28afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg */ 29afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 30afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 31afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#ifndef CONFIG_H 32afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define CONFIG_H 33afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 34afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#ifdef HAVE_CONFIG_H 35afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#include "conf.h" 36afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#endif 37afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 38fbd8f212c3866ec98c1d8c9d3db3ddb7e7c479a5Brian Paul 396dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** 406dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell * \name OpenGL implementation limits 41afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg */ 426dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/*@{*/ 43afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 446dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maximum modelview matrix stack depth */ 45afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define MAX_MODELVIEW_STACK_DEPTH 32 46afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 476dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maximum projection matrix stack depth */ 48afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define MAX_PROJECTION_STACK_DEPTH 32 49afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 506dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maximum texture matrix stack depth */ 51afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define MAX_TEXTURE_STACK_DEPTH 10 52afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 536dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maximum color matrix stack depth */ 54250069dbb443f26f4dcc409c9c873019a5f50f9dBrian Paul#define MAX_COLOR_STACK_DEPTH 4 55250069dbb443f26f4dcc409c9c873019a5f50f9dBrian Paul 566dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maximum attribute stack depth */ 57afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define MAX_ATTRIB_STACK_DEPTH 16 58afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 596dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maximum client attribute stack depth */ 60afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define MAX_CLIENT_ATTRIB_STACK_DEPTH 16 61afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 626dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maximum recursion depth of display list calls */ 63afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define MAX_LIST_NESTING 64 64afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 656dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maximum number of lights */ 66afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define MAX_LIGHTS 8 67afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 686dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maximum user-defined clipping planes */ 69afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define MAX_CLIP_PLANES 6 70afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 716dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maximum pixel map lookup table size */ 72afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define MAX_PIXEL_MAP_TABLE 256 73afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 74894844a8d956a0ee5f95836331dc318f49fdb845Brian Paul/** Maximum Number of auxillary color buffers */ 75894844a8d956a0ee5f95836331dc318f49fdb845Brian Paul#define MAX_AUX_BUFFERS 4 76afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 776dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maximum order (degree) of curves */ 78afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#ifdef AMIGA 79afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg# define MAX_EVAL_ORDER 12 80afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#else 81afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg# define MAX_EVAL_ORDER 30 82afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#endif 83afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 846dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maximum Name stack depth */ 85afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define MAX_NAME_STACK_DEPTH 64 86afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 876dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Minimum point size */ 88afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define MIN_POINT_SIZE 1.0 896dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maximum point size */ 906c408b46678637959dba04663fbc34eb9c4bc397Brian Paul#define MAX_POINT_SIZE 20.0 916dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Point size granularity */ 92afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define POINT_SIZE_GRANULARITY 0.1 93afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 946dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Minimum line width */ 95afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define MIN_LINE_WIDTH 1.0 966dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maximum line width */ 97afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define MAX_LINE_WIDTH 10.0 986dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Line width granularity */ 9965cd4d80c4093e44e6a340b41e7bae3489b7ea4aBrian Paul#define LINE_WIDTH_GRANULARITY 0.1 100afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 1016dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Max texture palette / color table size */ 10213811376c99addb0616c9397cc7d5715befcd8d4Brian Paul#define MAX_COLOR_TABLE_SIZE 256 103afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 1046dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Number of 1D/2D texture mipmap levels */ 105afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define MAX_TEXTURE_LEVELS 12 106afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 1076dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Number of 3D texture mipmap levels */ 108738318bb75dea8dac4465f53850987f6062a732dBrian Paul#define MAX_3D_TEXTURE_LEVELS 9 109cd1cefae9146fc14b35ee93a04bdb1b1590fba7bBrian Paul 1106dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Number of cube texture mipmap levels - GL_ARB_texture_cube_map */ 111cd1cefae9146fc14b35ee93a04bdb1b1590fba7bBrian Paul#define MAX_CUBE_TEXTURE_LEVELS 12 112cd1cefae9146fc14b35ee93a04bdb1b1590fba7bBrian Paul 1136dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maximum rectangular texture size - GL_NV_texture_rectangle */ 1148afe7de8deaf3c9613fd68b344de8c52b02b1879Brian Paul#define MAX_TEXTURE_RECT_SIZE 2048 1158afe7de8deaf3c9613fd68b344de8c52b02b1879Brian Paul 1166dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Number of texture units - GL_ARB_multitexture */ 11788f3b89a2cb77766d2009b9868c44e03abe2dbb2Keith Whitwell#define MAX_TEXTURE_UNITS 8 118afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 119de4b3bb7766f242cd7c46841250405f5fd6bb7d3Brian Paul/*@}*/ 120de4b3bb7766f242cd7c46841250405f5fd6bb7d3Brian Paul 121de4b3bb7766f242cd7c46841250405f5fd6bb7d3Brian Paul 1226dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** 1236dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell * \name Separate numbers of texture coordinates and texture image units. 1246dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell * 125610d59981a9f43fefe29b34ef19c184d28e2bef5Brian Paul * These values will eventually replace most instances of MAX_TEXTURE_UNITS. 126610d59981a9f43fefe29b34ef19c184d28e2bef5Brian Paul * We should always have MAX_TEXTURE_COORD_UNITS <= MAX_TEXTURE_IMAGE_UNITS. 127610d59981a9f43fefe29b34ef19c184d28e2bef5Brian Paul * And, GL_MAX_TEXTURE_UNITS <= MAX_TEXTURE_COORD_UNITS. 128610d59981a9f43fefe29b34ef19c184d28e2bef5Brian Paul */ 1296dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/*@{*/ 130610d59981a9f43fefe29b34ef19c184d28e2bef5Brian Paul#define MAX_TEXTURE_COORD_UNITS 8 131610d59981a9f43fefe29b34ef19c184d28e2bef5Brian Paul#define MAX_TEXTURE_IMAGE_UNITS 8 1326dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/*@}*/ 133610d59981a9f43fefe29b34ef19c184d28e2bef5Brian Paul 1346dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** 1356dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell * Maximum viewport/image width. Must accomodate all texture sizes too. 1366dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell */ 1378533b915437464f335f52bfacf93292098f64f4dBrian Paul#define MAX_WIDTH 4096 1386dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maximum viewport/image height */ 1398533b915437464f335f52bfacf93292098f64f4dBrian Paul#define MAX_HEIGHT 4096 140afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 1416dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maxmimum size for CVA. May be overridden by the drivers. */ 142afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define MAX_ARRAY_LOCK_SIZE 3000 143afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 1446dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Subpixel precision for antialiasing, window coordinate snapping */ 14565cd4d80c4093e44e6a340b41e7bae3489b7ea4aBrian Paul#define SUB_PIXEL_BITS 4 14665cd4d80c4093e44e6a340b41e7bae3489b7ea4aBrian Paul 1476dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Size of histogram tables */ 1480771d159d59a856135e375ba89f6af2a057d4f5bBrian Paul#define HISTOGRAM_TABLE_SIZE 256 1490771d159d59a856135e375ba89f6af2a057d4f5bBrian Paul 1506dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Max convolution filter width */ 151a6d46f6b9922327fe9a268b003134a27ba8b931fBrian Paul#define MAX_CONVOLUTION_WIDTH 9 1526dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Max convolution filter height */ 153a6d46f6b9922327fe9a268b003134a27ba8b931fBrian Paul#define MAX_CONVOLUTION_HEIGHT 9 154afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 15584b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul/** For GL_ARB_texture_compression */ 1561207bf057aeea3376e5e0f03f789a5d67ed4d29dBrian Paul#define MAX_COMPRESSED_TEXTURE_FORMATS 25 1571207bf057aeea3376e5e0f03f789a5d67ed4d29dBrian Paul 15884b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul/** For GL_EXT_texture_filter_anisotropic */ 1592c3d34c905fa6b831a066afae83b938de05eb241Gareth Hughes#define MAX_TEXTURE_MAX_ANISOTROPY 16.0 1602c3d34c905fa6b831a066afae83b938de05eb241Gareth Hughes 1617a5eb9a7606bd951cb9cba56b0ff96c121084d44Brian Paul/** For GL_EXT_texture_lod_bias (typically MAX_TEXTURE_LEVELS - 1) */ 1627a5eb9a7606bd951cb9cba56b0ff96c121084d44Brian Paul#define MAX_TEXTURE_LOD_BIAS 11.0 16387c964d3885d84959f86d5d7d9c4358240b6da3cBrian Paul 16484b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul/** For GL_NV_vertex_program */ 16584b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul/*@{*/ 166610d59981a9f43fefe29b34ef19c184d28e2bef5Brian Paul#define MAX_NV_VERTEX_PROGRAM_INSTRUCTIONS 128 167610d59981a9f43fefe29b34ef19c184d28e2bef5Brian Paul#define MAX_NV_VERTEX_PROGRAM_TEMPS 12 168610d59981a9f43fefe29b34ef19c184d28e2bef5Brian Paul#define MAX_NV_VERTEX_PROGRAM_PARAMS 96 169610d59981a9f43fefe29b34ef19c184d28e2bef5Brian Paul#define MAX_NV_VERTEX_PROGRAM_INPUTS 16 170610d59981a9f43fefe29b34ef19c184d28e2bef5Brian Paul#define MAX_NV_VERTEX_PROGRAM_OUTPUTS 15 17184b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul/*@}*/ 172610d59981a9f43fefe29b34ef19c184d28e2bef5Brian Paul 17384b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul/** For GL_NV_fragment_program */ 17484b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul/*@{*/ 175610d59981a9f43fefe29b34ef19c184d28e2bef5Brian Paul#define MAX_NV_FRAGMENT_PROGRAM_INSTRUCTIONS 128 176610d59981a9f43fefe29b34ef19c184d28e2bef5Brian Paul#define MAX_NV_FRAGMENT_PROGRAM_TEMPS 96 177610d59981a9f43fefe29b34ef19c184d28e2bef5Brian Paul#define MAX_NV_FRAGMENT_PROGRAM_PARAMS 64 178610d59981a9f43fefe29b34ef19c184d28e2bef5Brian Paul#define MAX_NV_FRAGMENT_PROGRAM_INPUTS 12 1799f4d812aa70bfd9a4507d52b994e55f25e2d2c3dBrian Paul#define MAX_NV_FRAGMENT_PROGRAM_OUTPUTS 3 180610d59981a9f43fefe29b34ef19c184d28e2bef5Brian Paul#define MAX_NV_FRAGMENT_PROGRAM_WRITE_ONLYS 2 18184b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul/*@}*/ 182610d59981a9f43fefe29b34ef19c184d28e2bef5Brian Paul 18384b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul/** For GL_ARB_vertex_program */ 18484b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul/*@{*/ 185451f31093e950e2c76e8d7dee3cb097049a906b5Brian Paul#define MAX_VERTEX_PROGRAM_ADDRESS_REGS 1 1869bc3753a513f2045f3613389c2ddb604df8693e7Karl Rasche#define MAX_VERTEX_PROGRAM_ATTRIBS 16 18784b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul/*@}*/ 188451f31093e950e2c76e8d7dee3cb097049a906b5Brian Paul 18984b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul/** For GL_ARB_fragment_program */ 19084b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul/*@{*/ 191451f31093e950e2c76e8d7dee3cb097049a906b5Brian Paul#define MAX_FRAGMENT_PROGRAM_ADDRESS_REGS 1 192451f31093e950e2c76e8d7dee3cb097049a906b5Brian Paul#define MAX_FRAGMENT_PROGRAM_ALU_INSTRUCTIONS 48 193451f31093e950e2c76e8d7dee3cb097049a906b5Brian Paul#define MAX_FRAGMENT_PROGRAM_TEX_INSTRUCTIONS 24 194451f31093e950e2c76e8d7dee3cb097049a906b5Brian Paul#define MAX_FRAGMENT_PROGRAM_TEX_INDIRECTIONS 4 19584b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul/*@}*/ 1961207bf057aeea3376e5e0f03f789a5d67ed4d29dBrian Paul 19784b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul/** For any program target/extension */ 19884b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul/*@{*/ 199edd677454dc38a590bd6fc1cd3e2759d2a4d55e3Brian Paul#define MAX_PROGRAM_LOCAL_PARAMS 96 200edd677454dc38a590bd6fc1cd3e2759d2a4d55e3Brian Paul#define MAX_PROGRAM_MATRICES 8 201edd677454dc38a590bd6fc1cd3e2759d2a4d55e3Brian Paul#define MAX_PROGRAM_MATRIX_STACK_DEPTH 4 202efb41b07ff213735e8ea08f38a7799f9d80459fcBrian Paul/*@}*/ 203efb41b07ff213735e8ea08f38a7799f9d80459fcBrian Paul 204efb41b07ff213735e8ea08f38a7799f9d80459fcBrian Paul/** For GL_ARB_fragment_shader */ 205efb41b07ff213735e8ea08f38a7799f9d80459fcBrian Paul/*@{*/ 206efb41b07ff213735e8ea08f38a7799f9d80459fcBrian Paul#define MAX_FRAGMENT_UNIFORM_COMPONENTS 64 207efb41b07ff213735e8ea08f38a7799f9d80459fcBrian Paul/*@}*/ 208efb41b07ff213735e8ea08f38a7799f9d80459fcBrian Paul 209efb41b07ff213735e8ea08f38a7799f9d80459fcBrian Paul/** For GL_ARB_vertex_shader */ 210efb41b07ff213735e8ea08f38a7799f9d80459fcBrian Paul/*@{*/ 211efb41b07ff213735e8ea08f38a7799f9d80459fcBrian Paul#define MAX_VERTEX_UNIFORM_COMPONENTS 512 212efb41b07ff213735e8ea08f38a7799f9d80459fcBrian Paul#define MAX_VARYING_FLOATS 32 213efb41b07ff213735e8ea08f38a7799f9d80459fcBrian Paul#define MAX_VERTEX_TEXTURE_IMAGE_UNITS 0 214efb41b07ff213735e8ea08f38a7799f9d80459fcBrian Paul#define MAX_COMBINED_TEXTURE_IMAGE_UNITS (MAX_TEXTURE_IMAGE_UNITS + MAX_VERTEX_TEXTURE_IMAGE_UNITS) 21584b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul/*@}*/ 216edd677454dc38a590bd6fc1cd3e2759d2a4d55e3Brian Paul 217edd677454dc38a590bd6fc1cd3e2759d2a4d55e3Brian Paul 21853f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul/** For GL_ARB_draw_buffers */ 21953f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul/*@{*/ 22053f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul#define MAX_DRAW_BUFFERS 1 22153f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul/*@}*/ 22253f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul 22353f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul 2243deaa01c2bd576ae81fc6d3ea67c583cb3c22159Brian Paul/** For GL_EXT_framebuffer_object */ 2253deaa01c2bd576ae81fc6d3ea67c583cb3c22159Brian Paul/*@{*/ 2263deaa01c2bd576ae81fc6d3ea67c583cb3c22159Brian Paul#define MAX_COLOR_ATTACHMENTS 4 2273deaa01c2bd576ae81fc6d3ea67c583cb3c22159Brian Paul/*@}*/ 2283deaa01c2bd576ae81fc6d3ea67c583cb3c22159Brian Paul 2293deaa01c2bd576ae81fc6d3ea67c583cb3c22159Brian Paul 23053f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul 2316dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** 2326dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell * \name Mesa-specific parameters 233afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg */ 2346dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/*@{*/ 235afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 236afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 2376dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** 23884b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul * If non-zero use GLdouble for walking triangle edges, for better accuracy. 23984b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul */ 24084b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul#define TRIANGLE_WALK_DOUBLE 0 24184b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul 24284b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul/** 243f431a3fb4dc1bf860203d79e54657e3a62bc50dfBrian Paul * Bits per accumulation buffer color component: 8, 16 or 32 244afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg */ 2454b334b2db68b1f448165c37fe756cc0aa80b56c5Brian Paul#define ACCUM_BITS 16 246afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 2476dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** 2486dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell * Bits per depth buffer value. 2496dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell * 2506dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell * Any reasonable value up to 31 will work. 32 doesn't work because of integer 2516dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell * overflow problems in the rasterizer code. 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 2898dfc5b9863f08a713177fd92847573e17febbac9Brian Paul/* 2908dfc5b9863f08a713177fd92847573e17febbac9Brian Paul * Enable/disable features (blocks of code) by setting FEATURE_xyz to 0 or 1. 2918dfc5b9863f08a713177fd92847573e17febbac9Brian Paul */ 2926dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell#ifndef _HAVE_FULL_GL 2936dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell#define _HAVE_FULL_GL 1 2946dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell#endif 2956dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell 296978646d86fd19c0f564b01a469ffe0432fc5ab98Brian Paul#define FEATURE_ARB_vertex_buffer_object _HAVE_FULL_GL 297978646d86fd19c0f564b01a469ffe0432fc5ab98Brian Paul#define FEATURE_ARB_vertex_program _HAVE_FULL_GL 298978646d86fd19c0f564b01a469ffe0432fc5ab98Brian Paul#define FEATURE_ARB_fragment_program _HAVE_FULL_GL 299978646d86fd19c0f564b01a469ffe0432fc5ab98Brian Paul#define FEATURE_ARB_occlusion_query _HAVE_FULL_GL 3007a6b71ef2944bae1718e8167b2faaceb8422071cBrian Paul#define FEATURE_EXT_pixel_buffer_object _HAVE_FULL_GL 301978646d86fd19c0f564b01a469ffe0432fc5ab98Brian Paul#define FEATURE_MESA_program_debug _HAVE_FULL_GL 302978646d86fd19c0f564b01a469ffe0432fc5ab98Brian Paul#define FEATURE_NV_fence _HAVE_FULL_GL 303978646d86fd19c0f564b01a469ffe0432fc5ab98Brian Paul#define FEATURE_NV_fragment_program _HAVE_FULL_GL 304978646d86fd19c0f564b01a469ffe0432fc5ab98Brian Paul#define FEATURE_NV_vertex_program _HAVE_FULL_GL 305978646d86fd19c0f564b01a469ffe0432fc5ab98Brian Paul#define FEATURE_userclip _HAVE_FULL_GL 306978646d86fd19c0f564b01a469ffe0432fc5ab98Brian Paul#define FEATURE_texgen _HAVE_FULL_GL 307978646d86fd19c0f564b01a469ffe0432fc5ab98Brian Paul#define FEATURE_windowpos _HAVE_FULL_GL 3082f11cbd15bed4422d96b3c6809f7bb13c670d043Michal Krol#define FEATURE_ARB_vertex_shader _HAVE_FULL_GL 3092f11cbd15bed4422d96b3c6809f7bb13c670d043Michal Krol#define FEATURE_ARB_fragment_shader _HAVE_FULL_GL 310efb41b07ff213735e8ea08f38a7799f9d80459fcBrian Paul#define FEATURE_ARB_shader_objects (FEATURE_ARB_vertex_shader || FEATURE_ARB_fragment_shader) 3115c968cbc5e1d355a362018defde7ebe926dd1f65Michal Krol#define FEATURE_ARB_shading_language_100 FEATURE_ARB_shader_objects 3127f752fed993e5e9423abac200dd59141edbada56Dave Airlie#define FEATURE_ATI_fragment_shader _HAVE_FULL_GL 313ddc82eefca591f0ee93d3a77e1268571629a6d5cBrian Paul#define FEATURE_EXT_framebuffer_object _HAVE_FULL_GL 314978646d86fd19c0f564b01a469ffe0432fc5ab98Brian Paul/*@}*/ 315978646d86fd19c0f564b01a469ffe0432fc5ab98Brian Paul 3166dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell 31753f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul/** 31853f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul * Maximum number of temporary vertices required for clipping. 31953f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul * 32053f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul * Used in array_cache and tnl modules. 32153f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul */ 32253f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul#define MAX_CLIPPED_VERTICES ((2 * (6 + MAX_CLIP_PLANES))+1) 32353f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul 32453f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul 3250ab16e01348a8feceda9ee55f14b035e400d3c01Brian Paul#endif /* CONFIG_H */ 326