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 attribute stack depth */ 50afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define MAX_ATTRIB_STACK_DEPTH 16 51afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 526dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maximum client attribute stack depth */ 53afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define MAX_CLIENT_ATTRIB_STACK_DEPTH 16 54afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 556dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maximum recursion depth of display list calls */ 56afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define MAX_LIST_NESTING 64 57afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 586dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maximum number of lights */ 59afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define MAX_LIGHTS 8 60afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 6161b2d01101ee6d42c11a2547909460a5c21588a0Paul Berry/** 6261b2d01101ee6d42c11a2547909460a5c21588a0Paul Berry * Maximum number of user-defined clipping planes supported by any driver in 6361b2d01101ee6d42c11a2547909460a5c21588a0Paul Berry * Mesa. This is used to size arrays. 6461b2d01101ee6d42c11a2547909460a5c21588a0Paul Berry */ 6561b2d01101ee6d42c11a2547909460a5c21588a0Paul Berry#define MAX_CLIP_PLANES 8 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 */ 74b5d096ac1ac075380d597133a484446afaa3571bBrian Paul#define MAX_EVAL_ORDER 30 75afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 766dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maximum Name stack depth */ 77afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define MAX_NAME_STACK_DEPTH 64 78afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 796dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Minimum point size */ 80afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define MIN_POINT_SIZE 1.0 816dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maximum point size */ 821a55e97c9c1734f0808e4ed570be3826dba24417Brian#define MAX_POINT_SIZE 60.0 836dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Point size granularity */ 84afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define POINT_SIZE_GRANULARITY 0.1 85afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 866dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Minimum line width */ 87afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define MIN_LINE_WIDTH 1.0 886dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maximum line width */ 89afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define MAX_LINE_WIDTH 10.0 906dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Line width granularity */ 9165cd4d80c4093e44e6a340b41e7bae3489b7ea4aBrian Paul#define LINE_WIDTH_GRANULARITY 0.1 92afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 936dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Max texture palette / color table size */ 9413811376c99addb0616c9397cc7d5715befcd8d4Brian Paul#define MAX_COLOR_TABLE_SIZE 256 95afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 964b08f35487fa439fd9ca4d653d3a146c3dc09c1cBrian Paul/** Max memory to allow for a single texture image (in megabytes) */ 974b08f35487fa439fd9ca4d653d3a146c3dc09c1cBrian Paul#define MAX_TEXTURE_MBYTES 1024 984b08f35487fa439fd9ca4d653d3a146c3dc09c1cBrian Paul 996dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Number of 1D/2D texture mipmap levels */ 1004b08f35487fa439fd9ca4d653d3a146c3dc09c1cBrian Paul#define MAX_TEXTURE_LEVELS 15 101afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 1026dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Number of 3D texture mipmap levels */ 1034b08f35487fa439fd9ca4d653d3a146c3dc09c1cBrian Paul#define MAX_3D_TEXTURE_LEVELS 15 104cd1cefae9146fc14b35ee93a04bdb1b1590fba7bBrian Paul 1056dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Number of cube texture mipmap levels - GL_ARB_texture_cube_map */ 1064b08f35487fa439fd9ca4d653d3a146c3dc09c1cBrian Paul#define MAX_CUBE_TEXTURE_LEVELS 15 107cd1cefae9146fc14b35ee93a04bdb1b1590fba7bBrian Paul 1086dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maximum rectangular texture size - GL_NV_texture_rectangle */ 1094b08f35487fa439fd9ca4d653d3a146c3dc09c1cBrian Paul#define MAX_TEXTURE_RECT_SIZE 16384 1108afe7de8deaf3c9613fd68b344de8c52b02b1879Brian Paul 111cfecffeedcd1a361499e74bec7ca61790db0036cBrian Paul/** 112cfecffeedcd1a361499e74bec7ca61790db0036cBrian Paul * Maximum number of layers in a 1D or 2D array texture - GL_MESA_texture_array 113cfecffeedcd1a361499e74bec7ca61790db0036cBrian Paul */ 114bb372f1c9bc08e8b0dca983cb4ba36b2f2f039fbIan Romanick#define MAX_ARRAY_TEXTURE_LAYERS 64 115bb372f1c9bc08e8b0dca983cb4ba36b2f2f039fbIan Romanick 116e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul/** 117e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul * Max number of texture coordinate units. This mainly just applies to 118e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul * the fixed-function vertex code. This will be difficult to raise above 119e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul * eight because of various vertex attribute bitvectors. 120e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul */ 121e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul#define MAX_TEXTURE_COORD_UNITS 8 122de4b3bb7766f242cd7c46841250405f5fd6bb7d3Brian Paul 123e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul/** 124e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul * Max number of texture image units. Also determines number of texture 125e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul * samplers in shaders. 126e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul */ 127e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul#define MAX_TEXTURE_IMAGE_UNITS 16 128de4b3bb7766f242cd7c46841250405f5fd6bb7d3Brian Paul 1296dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** 130e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul * Larger of MAX_TEXTURE_COORD_UNITS and MAX_TEXTURE_IMAGE_UNITS. 131e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul * This value is only used for dimensioning arrays. 132e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul * Either MAX_TEXTURE_COORD_UNITS or MAX_TEXTURE_IMAGE_UNITS (or the 133e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul * corresponding ctx->Const.MaxTextureCoord/ImageUnits fields) should be 134e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul * used almost everywhere else. 135610d59981a9f43fefe29b34ef19c184d28e2bef5Brian Paul */ 136e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul#define MAX_TEXTURE_UNITS ((MAX_TEXTURE_COORD_UNITS > MAX_TEXTURE_IMAGE_UNITS) ? MAX_TEXTURE_COORD_UNITS : MAX_TEXTURE_IMAGE_UNITS) 137e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul 138610d59981a9f43fefe29b34ef19c184d28e2bef5Brian Paul 139630ab0d27ba693602205479ea481c5b2a9e26346Brian Paul/** Maximum viewport size */ 140630ab0d27ba693602205479ea481c5b2a9e26346Brian Paul#define MAX_VIEWPORT_WIDTH 16384 141630ab0d27ba693602205479ea481c5b2a9e26346Brian Paul#define MAX_VIEWPORT_HEIGHT 16384 142afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 1436dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Maxmimum size for CVA. May be overridden by the drivers. */ 144afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define MAX_ARRAY_LOCK_SIZE 3000 145afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 1466dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell/** Subpixel precision for antialiasing, window coordinate snapping */ 14765cd4d80c4093e44e6a340b41e7bae3489b7ea4aBrian Paul#define SUB_PIXEL_BITS 4 14865cd4d80c4093e44e6a340b41e7bae3489b7ea4aBrian Paul 14984b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul/** For GL_ARB_texture_compression */ 1501207bf057aeea3376e5e0f03f789a5d67ed4d29dBrian Paul#define MAX_COMPRESSED_TEXTURE_FORMATS 25 1511207bf057aeea3376e5e0f03f789a5d67ed4d29dBrian Paul 15284b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul/** For GL_EXT_texture_filter_anisotropic */ 1532c3d34c905fa6b831a066afae83b938de05eb241Gareth Hughes#define MAX_TEXTURE_MAX_ANISOTROPY 16.0 1542c3d34c905fa6b831a066afae83b938de05eb241Gareth Hughes 1557a5eb9a7606bd951cb9cba56b0ff96c121084d44Brian Paul/** For GL_EXT_texture_lod_bias (typically MAX_TEXTURE_LEVELS - 1) */ 1564b08f35487fa439fd9ca4d653d3a146c3dc09c1cBrian Paul#define MAX_TEXTURE_LOD_BIAS 14.0 15787c964d3885d84959f86d5d7d9c4358240b6da3cBrian Paul 158eabe12df44a41e97fb5736959e8864ddbd01be14Ian Romanick/** For any program target/extension */ 159eabe12df44a41e97fb5736959e8864ddbd01be14Ian Romanick/*@{*/ 160eabe12df44a41e97fb5736959e8864ddbd01be14Ian Romanick#define MAX_PROGRAM_INSTRUCTIONS (16 * 1024) 161eabe12df44a41e97fb5736959e8864ddbd01be14Ian Romanick 162eabe12df44a41e97fb5736959e8864ddbd01be14Ian Romanick/** 163eabe12df44a41e97fb5736959e8864ddbd01be14Ian Romanick * Per-program constants (power of two) 164eabe12df44a41e97fb5736959e8864ddbd01be14Ian Romanick * 165b80a830cd8cbad128aad3edb2eef4cb40e7b145bBrian Paul * \c MAX_PROGRAM_LOCAL_PARAMS and \c MAX_UNIFORMS are just the assembly shader 166eabe12df44a41e97fb5736959e8864ddbd01be14Ian Romanick * and GLSL shader names for the same thing. They should \b always have the 167eabe12df44a41e97fb5736959e8864ddbd01be14Ian Romanick * same value. Each refers to the number of vec4 values supplied as 168eabe12df44a41e97fb5736959e8864ddbd01be14Ian Romanick * per-program parameters. 169eabe12df44a41e97fb5736959e8864ddbd01be14Ian Romanick */ 170eabe12df44a41e97fb5736959e8864ddbd01be14Ian Romanick/*@{*/ 17187679e2ea10836d89f47a37b8e94cce0d319622eBrian Paul#define MAX_PROGRAM_LOCAL_PARAMS 4096 17287679e2ea10836d89f47a37b8e94cce0d319622eBrian Paul#define MAX_UNIFORMS 4096 173eabe12df44a41e97fb5736959e8864ddbd01be14Ian Romanick/*@}*/ 174eabe12df44a41e97fb5736959e8864ddbd01be14Ian Romanick 175eabe12df44a41e97fb5736959e8864ddbd01be14Ian Romanick/** 176eabe12df44a41e97fb5736959e8864ddbd01be14Ian Romanick * Per-context constants (power of two) 177eabe12df44a41e97fb5736959e8864ddbd01be14Ian Romanick * 178eabe12df44a41e97fb5736959e8864ddbd01be14Ian Romanick * \note 179eabe12df44a41e97fb5736959e8864ddbd01be14Ian Romanick * This value should always be less than or equal to \c MAX_PROGRAM_LOCAL_PARAMS 180eabe12df44a41e97fb5736959e8864ddbd01be14Ian Romanick * and \c MAX_VERTEX_PROGRAM_PARAMS. Otherwise some applications will make 181eabe12df44a41e97fb5736959e8864ddbd01be14Ian Romanick * incorrect assumptions. 182eabe12df44a41e97fb5736959e8864ddbd01be14Ian Romanick */ 183eabe12df44a41e97fb5736959e8864ddbd01be14Ian Romanick#define MAX_PROGRAM_ENV_PARAMS 256 184eabe12df44a41e97fb5736959e8864ddbd01be14Ian Romanick 185eabe12df44a41e97fb5736959e8864ddbd01be14Ian Romanick#define MAX_PROGRAM_MATRICES 8 186eabe12df44a41e97fb5736959e8864ddbd01be14Ian Romanick#define MAX_PROGRAM_MATRIX_STACK_DEPTH 4 187eabe12df44a41e97fb5736959e8864ddbd01be14Ian Romanick#define MAX_PROGRAM_CALL_DEPTH 8 188eabe12df44a41e97fb5736959e8864ddbd01be14Ian Romanick#define MAX_PROGRAM_TEMPS 256 189eabe12df44a41e97fb5736959e8864ddbd01be14Ian Romanick#define MAX_PROGRAM_ADDRESS_REGS 2 1908ff8c91893cee8b1893de91e145c8496a12ab9caMarek Olšák#define MAX_VARYING 32 /**< number of float[4] vectors */ 191eabe12df44a41e97fb5736959e8864ddbd01be14Ian Romanick#define MAX_SAMPLERS MAX_TEXTURE_IMAGE_UNITS 192eabe12df44a41e97fb5736959e8864ddbd01be14Ian Romanick#define MAX_PROGRAM_INPUTS 32 1935606dfb572bf4b89b4882265924705bacc8c182bIan Romanick#define MAX_PROGRAM_OUTPUTS 64 194eabe12df44a41e97fb5736959e8864ddbd01be14Ian Romanick/*@}*/ 195eabe12df44a41e97fb5736959e8864ddbd01be14Ian Romanick 19684b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul/** For GL_ARB_vertex_program */ 19784b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul/*@{*/ 198451f31093e950e2c76e8d7dee3cb097049a906b5Brian Paul#define MAX_VERTEX_PROGRAM_ADDRESS_REGS 1 199eabe12df44a41e97fb5736959e8864ddbd01be14Ian Romanick#define MAX_VERTEX_PROGRAM_PARAMS MAX_UNIFORMS 20084b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul/*@}*/ 201451f31093e950e2c76e8d7dee3cb097049a906b5Brian Paul 20284b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul/** For GL_ARB_fragment_program */ 20384b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul/*@{*/ 20405051037101dfa053798cf5ad91d1975fd1aa6a7Brian Paul#define MAX_FRAGMENT_PROGRAM_ADDRESS_REGS 0 20584b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul/*@}*/ 2061207bf057aeea3376e5e0f03f789a5d67ed4d29dBrian Paul 20786a4810b09097714942bf2b889e6c62357bba931Roland Scheidegger/** For GL_NV_vertex_program */ 20886a4810b09097714942bf2b889e6c62357bba931Roland Scheidegger/*@{*/ 20986a4810b09097714942bf2b889e6c62357bba931Roland Scheidegger#define MAX_NV_VERTEX_PROGRAM_INSTRUCTIONS 128 21086a4810b09097714942bf2b889e6c62357bba931Roland Scheidegger#define MAX_NV_VERTEX_PROGRAM_TEMPS 12 2110bced6a326e3520d2b280b4f6cdaadf843ce1d2dBrian Paul#define MAX_NV_VERTEX_PROGRAM_PARAMS 96 21286a4810b09097714942bf2b889e6c62357bba931Roland Scheidegger#define MAX_NV_VERTEX_PROGRAM_INPUTS 16 21386a4810b09097714942bf2b889e6c62357bba931Roland Scheidegger#define MAX_NV_VERTEX_PROGRAM_OUTPUTS 15 21486a4810b09097714942bf2b889e6c62357bba931Roland Scheidegger/*@}*/ 21586a4810b09097714942bf2b889e6c62357bba931Roland Scheidegger 21686a4810b09097714942bf2b889e6c62357bba931Roland Scheidegger/** For GL_NV_fragment_program */ 21786a4810b09097714942bf2b889e6c62357bba931Roland Scheidegger/*@{*/ 21886a4810b09097714942bf2b889e6c62357bba931Roland Scheidegger#define MAX_NV_FRAGMENT_PROGRAM_INSTRUCTIONS 1024 /* 72 for GL_ARB_f_p */ 21986a4810b09097714942bf2b889e6c62357bba931Roland Scheidegger#define MAX_NV_FRAGMENT_PROGRAM_TEMPS 96 22086a4810b09097714942bf2b889e6c62357bba931Roland Scheidegger#define MAX_NV_FRAGMENT_PROGRAM_PARAMS 64 22186a4810b09097714942bf2b889e6c62357bba931Roland Scheidegger#define MAX_NV_FRAGMENT_PROGRAM_INPUTS 12 22286a4810b09097714942bf2b889e6c62357bba931Roland Scheidegger#define MAX_NV_FRAGMENT_PROGRAM_OUTPUTS 3 22386a4810b09097714942bf2b889e6c62357bba931Roland Scheidegger#define MAX_NV_FRAGMENT_PROGRAM_WRITE_ONLYS 2 22486a4810b09097714942bf2b889e6c62357bba931Roland Scheidegger/*@}*/ 22586a4810b09097714942bf2b889e6c62357bba931Roland Scheidegger 22686a4810b09097714942bf2b889e6c62357bba931Roland Scheidegger 227efb41b07ff213735e8ea08f38a7799f9d80459fcBrian Paul/** For GL_ARB_vertex_shader */ 228efb41b07ff213735e8ea08f38a7799f9d80459fcBrian Paul/*@{*/ 2294a95185c9f30c2de7a03bb1a0653f51b53b1111dBrian Paul#define MAX_VERTEX_GENERIC_ATTRIBS 16 230e9b34885b8ff2ccb67a801cd1ce07e0df1b0e397Brian Paul#define MAX_VERTEX_TEXTURE_IMAGE_UNITS MAX_TEXTURE_IMAGE_UNITS 231cb640c8d40c4ee34160a14d646c244f44a5013f6Eric Anholt#define MAX_COMBINED_TEXTURE_IMAGE_UNITS (MAX_VERTEX_TEXTURE_IMAGE_UNITS + \ 232cb640c8d40c4ee34160a14d646c244f44a5013f6Eric Anholt MAX_TEXTURE_IMAGE_UNITS) 23384b4a3a087a1475d4e9bd713e4bae91ba6363a50Brian Paul/*@}*/ 234edd677454dc38a590bd6fc1cd3e2759d2a4d55e3Brian Paul 235edd677454dc38a590bd6fc1cd3e2759d2a4d55e3Brian Paul 23653f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul/** For GL_ARB_draw_buffers */ 23753f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul/*@{*/ 238e2ea69afef2eeeb31b73772c3bf8ef696dadbc17Brian Paul#define MAX_DRAW_BUFFERS 8 23953f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul/*@}*/ 24053f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul 24153f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul 2423deaa01c2bd576ae81fc6d3ea67c583cb3c22159Brian Paul/** For GL_EXT_framebuffer_object */ 2433deaa01c2bd576ae81fc6d3ea67c583cb3c22159Brian Paul/*@{*/ 244e4b2356c07d31fbeeabb13b2fb47db703b473080Brian Paul#define MAX_COLOR_ATTACHMENTS 8 245630ab0d27ba693602205479ea481c5b2a9e26346Brian Paul#define MAX_RENDERBUFFER_SIZE 16384 2463deaa01c2bd576ae81fc6d3ea67c583cb3c22159Brian Paul/*@}*/ 2473deaa01c2bd576ae81fc6d3ea67c583cb3c22159Brian Paul 248114152e068ec919feb0a57a1259c2ada970b9f02Roland Scheidegger/** For GL_ATI_envmap_bump - support bump mapping on first 8 units */ 249114152e068ec919feb0a57a1259c2ada970b9f02Roland Scheidegger#define SUPPORTED_ATI_BUMP_UNITS 0xff 25053f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul 251066f0097959fe705c57556b658a09af0ba6be8fbBrian Paul/** For GL_EXT_transform_feedback */ 25215ac66e331abdab12e882d80a6b4f647bc905298Marek Olšák#define MAX_FEEDBACK_BUFFERS 4 253066f0097959fe705c57556b658a09af0ba6be8fbBrian Paul#define MAX_FEEDBACK_ATTRIBS 32 254066f0097959fe705c57556b658a09af0ba6be8fbBrian Paul 255da7bd6a90e1fee5c16327338fd251c0f6be34e36Zack Rusin/** For GL_ARB_geometry_shader4 */ 256da7bd6a90e1fee5c16327338fd251c0f6be34e36Zack Rusin/*@{*/ 257da7bd6a90e1fee5c16327338fd251c0f6be34e36Zack Rusin#define MAX_GEOMETRY_TEXTURE_IMAGE_UNITS 8 258da7bd6a90e1fee5c16327338fd251c0f6be34e36Zack Rusin#define MAX_GEOMETRY_VARYING_COMPONENTS 32 259da7bd6a90e1fee5c16327338fd251c0f6be34e36Zack Rusin#define MAX_VERTEX_VARYING_COMPONENTS 32 260da7bd6a90e1fee5c16327338fd251c0f6be34e36Zack Rusin#define MAX_GEOMETRY_UNIFORM_COMPONENTS 512 261da7bd6a90e1fee5c16327338fd251c0f6be34e36Zack Rusin#define MAX_GEOMETRY_OUTPUT_VERTICES 256 262da7bd6a90e1fee5c16327338fd251c0f6be34e36Zack Rusin#define MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS 1024 263da7bd6a90e1fee5c16327338fd251c0f6be34e36Zack Rusin/*@}*/ 264066f0097959fe705c57556b658a09af0ba6be8fbBrian Paul 265ed087ee49808a692ce8a0389fcf6c9da27f99d8enobled/** For GL_ARB_debug_output */ 266ed087ee49808a692ce8a0389fcf6c9da27f99d8enobled/*@{*/ 267ed087ee49808a692ce8a0389fcf6c9da27f99d8enobled#define MAX_DEBUG_LOGGED_MESSAGES 10 268ed087ee49808a692ce8a0389fcf6c9da27f99d8enobled#define MAX_DEBUG_MESSAGE_LENGTH 4096 269ed087ee49808a692ce8a0389fcf6c9da27f99d8enobled/*@}*/ 270ed087ee49808a692ce8a0389fcf6c9da27f99d8enobled 271066f0097959fe705c57556b658a09af0ba6be8fbBrian Paul 272afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg/* 273afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg * Color channel component order 2746dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell * 2756dc85575000127630489b407c50a4b3ea87c9acbKeith Whitwell * \note Changes will almost certainly cause problems at this time. 276afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg */ 277afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define RCOMP 0 278afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define GCOMP 1 279afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define BCOMP 2 280afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg#define ACOMP 3 281afb833d4e89c312460a4ab9ed6a7a8ca4ebbfe1cjtg 2828dfc5b9863f08a713177fd92847573e17febbac9Brian Paul 28353f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul/** 28453f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul * Maximum number of temporary vertices required for clipping. 28553f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul * 28653f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul * Used in array_cache and tnl modules. 28753f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul */ 28853f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul#define MAX_CLIPPED_VERTICES ((2 * (6 + MAX_CLIP_PLANES))+1) 28953f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul 29053f82c5aadbb15585754bfacf3237093eccdb2ceBrian Paul 291d00ef005fedb21a1b42c0a12264433089b7a10c5Brian Paul#endif /* MESA_CONFIG_H_INCLUDED */ 292