Home | History | Annotate | Download | only in nv50
      1 #ifndef G80_TEXTURE_XML
      2 #define G80_TEXTURE_XML
      3 
      4 /* Autogenerated file, DO NOT EDIT manually!
      5 
      6 This file was generated by the rules-ng-ng headergen tool in this git repository:
      7 http://github.com/envytools/envytools/
      8 git clone https://github.com/envytools/envytools.git
      9 
     10 The rules-ng-ng source files this header was generated from are:
     11 - /home/skeggsb/git/envytools/rnndb/../rnndb/graph/g80_texture.xml (  18837 bytes, from 2016-01-14 23:54:22)
     12 - /home/skeggsb/git/envytools/rnndb/copyright.xml                  (   6456 bytes, from 2015-09-10 02:57:40)
     13 - /home/skeggsb/git/envytools/rnndb/nvchipsets.xml                 (   2908 bytes, from 2016-02-02 23:45:00)
     14 - /home/skeggsb/git/envytools/rnndb/g80_defs.xml                   (  21739 bytes, from 2016-02-04 00:29:42)
     15 - /home/skeggsb/git/envytools/rnndb/nv_defs.xml                    (   5388 bytes, from 2016-01-14 23:54:22)
     16 
     17 Copyright (C) 2006-2016 by the following authors:
     18 - Artur Huillet <arthur.huillet (at) free.fr> (ahuillet)
     19 - Ben Skeggs (darktama, darktama_)
     20 - B. R. <koala_br (at) users.sourceforge.net> (koala_br)
     21 - Carlos Martin <carlosmn (at) users.sf.net> (carlosmn)
     22 - Christoph Bumiller <e0425955 (at) student.tuwien.ac.at> (calim, chrisbmr)
     23 - Dawid Gajownik <gajownik (at) users.sf.net> (gajownik)
     24 - Dmitry Baryshkov
     25 - Dmitry Eremin-Solenikov <lumag (at) users.sf.net> (lumag)
     26 - EdB <edb_ (at) users.sf.net> (edb_)
     27 - Erik Waling <erikwailing (at) users.sf.net> (erikwaling)
     28 - Francisco Jerez <currojerez (at) riseup.net> (curro)
     29 - Ilia Mirkin <imirkin (at) alum.mit.edu> (imirkin)
     30 - jb17bsome <jb17bsome (at) bellsouth.net> (jb17bsome)
     31 - Jeremy Kolb <kjeremy (at) users.sf.net> (kjeremy)
     32 - Laurent Carlier <lordheavym (at) gmail.com> (lordheavy)
     33 - Luca Barbieri <luca (at) luca-barbieri.com> (lb, lb1)
     34 - Maarten Maathuis <madman2003 (at) gmail.com> (stillunknown)
     35 - Marcin Kocielnicki <koriakin (at) 0x04.net> (mwk, koriakin)
     36 - Mark Carey <mark.carey (at) gmail.com> (careym)
     37 - Matthieu Castet <matthieu.castet (at) parrot.com> (mat-c)
     38 - nvidiaman <nvidiaman (at) users.sf.net> (nvidiaman)
     39 - Patrice Mandin <patmandin (at) gmail.com> (pmandin, pmdata)
     40 - Pekka Paalanen <pq (at) iki.fi> (pq, ppaalanen)
     41 - Peter Popov <ironpeter (at) users.sf.net> (ironpeter)
     42 - Richard Hughes <hughsient (at) users.sf.net> (hughsient)
     43 - Rudi Cilibrasi <cilibrar (at) users.sf.net> (cilibrar)
     44 - Serge Martin
     45 - Simon Raffeiner
     46 - Stephane Loeuillet <leroutier (at) users.sf.net> (leroutier)
     47 - Stephane Marchesin <stephane.marchesin (at) gmail.com> (marcheu)
     48 - sturmflut <sturmflut (at) users.sf.net> (sturmflut)
     49 - Sylvain Munaut <tnt (at) 246tNt.com>
     50 - Victor Stinner <victor.stinner (at) haypocalc.com> (haypo)
     51 - Wladmir van der Laan <laanwj (at) gmail.com> (miathan6)
     52 - Younes Manton <younes.m (at) gmail.com> (ymanton)
     53 
     54 Permission is hereby granted, free of charge, to any person obtaining
     55 a copy of this software and associated documentation files (the
     56 "Software"), to deal in the Software without restriction, including
     57 without limitation the rights to use, copy, modify, merge, publish,
     58 distribute, sublicense, and/or sell copies of the Software, and to
     59 permit persons to whom the Software is furnished to do so, subject to
     60 the following conditions:
     61 
     62 The above copyright notice and this permission notice (including the
     63 next paragraph) shall be included in all copies or substantial
     64 portions of the Software.
     65 
     66 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
     67 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
     68 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
     69 IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE
     70 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
     71 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
     72 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
     73 */
     74 
     75 
     76 #define G80_TSC_WRAP_WRAP					0x00000000
     77 #define G80_TSC_WRAP_MIRROR					0x00000001
     78 #define G80_TSC_WRAP_CLAMP_TO_EDGE				0x00000002
     79 #define G80_TSC_WRAP_BORDER					0x00000003
     80 #define G80_TSC_WRAP_CLAMP_OGL					0x00000004
     81 #define G80_TSC_WRAP_MIRROR_ONCE_CLAMP_TO_EDGE			0x00000005
     82 #define G80_TSC_WRAP_MIRROR_ONCE_BORDER				0x00000006
     83 #define G80_TSC_WRAP_MIRROR_ONCE_CLAMP_OGL			0x00000007
     84 #define G80_TIC__SIZE						0x00000020
     85 #define G80_TIC_0						0x00000000
     86 #define GK20A_TIC_0_USE_COMPONENT_SIZES_EXTENDED__MASK		0x80000000
     87 #define GK20A_TIC_0_USE_COMPONENT_SIZES_EXTENDED__SHIFT		31
     88 #define GK20A_TIC_0_USE_COMPONENT_SIZES_EXTENDED_NO		0x00000000
     89 #define GK20A_TIC_0_USE_COMPONENT_SIZES_EXTENDED_YES		0x80000000
     90 #define G84_TIC_0_PACK_COMPONENTS				0x40000000
     91 #define G80_TIC_0_W_SOURCE__MASK				0x38000000
     92 #define G80_TIC_0_W_SOURCE__SHIFT				27
     93 #define G80_TIC_0_Z_SOURCE__MASK				0x07000000
     94 #define G80_TIC_0_Z_SOURCE__SHIFT				24
     95 #define G80_TIC_0_Y_SOURCE__MASK				0x00e00000
     96 #define G80_TIC_0_Y_SOURCE__SHIFT				21
     97 #define G80_TIC_0_X_SOURCE__MASK				0x001c0000
     98 #define G80_TIC_0_X_SOURCE__SHIFT				18
     99 #define G80_TIC_0_A_DATA_TYPE__MASK				0x00038000
    100 #define G80_TIC_0_A_DATA_TYPE__SHIFT				15
    101 #define G80_TIC_0_B_DATA_TYPE__MASK				0x00007000
    102 #define G80_TIC_0_B_DATA_TYPE__SHIFT				12
    103 #define G80_TIC_0_G_DATA_TYPE__MASK				0x00000e00
    104 #define G80_TIC_0_G_DATA_TYPE__SHIFT				9
    105 #define G80_TIC_0_R_DATA_TYPE__MASK				0x000001c0
    106 #define G80_TIC_0_R_DATA_TYPE__SHIFT				6
    107 #define G80_TIC_0_COMPONENTS_SIZES__MASK			0x0000003f
    108 #define G80_TIC_0_COMPONENTS_SIZES__SHIFT			0
    109 #define G80_TIC_0_COMPONENTS_SIZES_R32_G32_B32_A32		0x00000001
    110 #define GF100_TIC_0_COMPONENTS_SIZES_R32_G32_B32		0x00000002
    111 #define G80_TIC_0_COMPONENTS_SIZES_R16_G16_B16_A16		0x00000003
    112 #define G80_TIC_0_COMPONENTS_SIZES_R32_G32			0x00000004
    113 #define G80_TIC_0_COMPONENTS_SIZES_R32_B24G8			0x00000005
    114 #define G80_TIC_0_COMPONENTS_SIZES_X8B8G8R8			0x00000007
    115 #define G80_TIC_0_COMPONENTS_SIZES_A8B8G8R8			0x00000008
    116 #define G80_TIC_0_COMPONENTS_SIZES_A2B10G10R10			0x00000009
    117 #define G80_TIC_0_COMPONENTS_SIZES_R16_G16			0x0000000c
    118 #define G80_TIC_0_COMPONENTS_SIZES_G8R24			0x0000000d
    119 #define G80_TIC_0_COMPONENTS_SIZES_G24R8			0x0000000e
    120 #define G80_TIC_0_COMPONENTS_SIZES_R32				0x0000000f
    121 #define G80_TIC_0_COMPONENTS_SIZES_A4B4G4R4			0x00000012
    122 #define G80_TIC_0_COMPONENTS_SIZES_A5B5G5R1			0x00000013
    123 #define G80_TIC_0_COMPONENTS_SIZES_A1B5G5R5			0x00000014
    124 #define G80_TIC_0_COMPONENTS_SIZES_B5G6R5			0x00000015
    125 #define G80_TIC_0_COMPONENTS_SIZES_B6G5R5			0x00000016
    126 #define G80_TIC_0_COMPONENTS_SIZES_G8R8				0x00000018
    127 #define G80_TIC_0_COMPONENTS_SIZES_R16				0x0000001b
    128 #define G80_TIC_0_COMPONENTS_SIZES_Y8_VIDEO			0x0000001c
    129 #define G80_TIC_0_COMPONENTS_SIZES_R8				0x0000001d
    130 #define G80_TIC_0_COMPONENTS_SIZES_G4R4				0x0000001e
    131 #define G80_TIC_0_COMPONENTS_SIZES_R1				0x0000001f
    132 #define G80_TIC_0_COMPONENTS_SIZES_E5B9G9R9_SHAREDEXP		0x00000020
    133 #define G80_TIC_0_COMPONENTS_SIZES_BF10GF11RF11			0x00000021
    134 #define G80_TIC_0_COMPONENTS_SIZES_G8B8G8R8			0x00000022
    135 #define G80_TIC_0_COMPONENTS_SIZES_B8G8R8G8			0x00000023
    136 #define G80_TIC_0_COMPONENTS_SIZES_DXT1				0x00000024
    137 #define G80_TIC_0_COMPONENTS_SIZES_DXT23			0x00000025
    138 #define G80_TIC_0_COMPONENTS_SIZES_DXT45			0x00000026
    139 #define G80_TIC_0_COMPONENTS_SIZES_DXN1				0x00000027
    140 #define G80_TIC_0_COMPONENTS_SIZES_DXN2				0x00000028
    141 #define GF100_TIC_0_COMPONENTS_SIZES_BC6H_SF16			0x00000010
    142 #define GF100_TIC_0_COMPONENTS_SIZES_BC6H_UF16			0x00000011
    143 #define GF100_TIC_0_COMPONENTS_SIZES_BC7U			0x00000017
    144 #define GK20A_TIC_0_COMPONENTS_SIZES_ETC2_RGB			0x00000006
    145 #define GK20A_TIC_0_COMPONENTS_SIZES_ETC2_RGB_PTA		0x0000000a
    146 #define GK20A_TIC_0_COMPONENTS_SIZES_ETC2_RGBA			0x0000000b
    147 #define GK20A_TIC_0_COMPONENTS_SIZES_EAC			0x00000019
    148 #define GK20A_TIC_0_COMPONENTS_SIZES_EACX2			0x0000001a
    149 #define G80_TIC_0_COMPONENTS_SIZES_Z24S8			0x00000029
    150 #define G80_TIC_0_COMPONENTS_SIZES_X8Z24			0x0000002a
    151 #define G80_TIC_0_COMPONENTS_SIZES_S8Z24			0x0000002b
    152 #define G80_TIC_0_COMPONENTS_SIZES_X4V4Z24__COV4R4V		0x0000002c
    153 #define G80_TIC_0_COMPONENTS_SIZES_X4V4Z24__COV8R8V		0x0000002d
    154 #define G80_TIC_0_COMPONENTS_SIZES_V8Z24__COV4R12V		0x0000002e
    155 #define G80_TIC_0_COMPONENTS_SIZES_ZF32				0x0000002f
    156 #define G80_TIC_0_COMPONENTS_SIZES_ZF32_X24S8			0x00000030
    157 #define G80_TIC_0_COMPONENTS_SIZES_X8Z24_X20V4S8__COV4R4V	0x00000031
    158 #define G80_TIC_0_COMPONENTS_SIZES_X8Z24_X20V4S8__COV8R8V	0x00000032
    159 #define G80_TIC_0_COMPONENTS_SIZES_ZF32_X20V4X8__COV4R4V	0x00000033
    160 #define G80_TIC_0_COMPONENTS_SIZES_ZF32_X20V4X8__COV8R8V	0x00000034
    161 #define G80_TIC_0_COMPONENTS_SIZES_ZF32_X20V4S8__COV4R4V	0x00000035
    162 #define G80_TIC_0_COMPONENTS_SIZES_ZF32_X20V4S8__COV8R8V	0x00000036
    163 #define G80_TIC_0_COMPONENTS_SIZES_X8Z24_X16V8S8__COV4R12V	0x00000037
    164 #define G80_TIC_0_COMPONENTS_SIZES_ZF32_X16V8X8__COV4R12V	0x00000038
    165 #define G80_TIC_0_COMPONENTS_SIZES_ZF32_X16V8S8__COV4R12V	0x00000039
    166 #define G200_TIC_0_COMPONENTS_SIZES_Z16				0x0000003a
    167 #define G200_TIC_0_COMPONENTS_SIZES_V8Z24__COV8R24V		0x0000003b
    168 #define G200_TIC_0_COMPONENTS_SIZES_X8Z24_X16V8S8__COV8R24V	0x0000003c
    169 #define G200_TIC_0_COMPONENTS_SIZES_ZF32_X16V8X8__COV8R24V	0x0000003d
    170 #define G200_TIC_0_COMPONENTS_SIZES_ZF32_X16V8S8__COV8R24V	0x0000003e
    171 #define G80_TIC_0_COMPONENTS_SIZES__MASK			0x0000003f
    172 #define G80_TIC_0_COMPONENTS_SIZES__SHIFT			0
    173 #define GK20A_TIC_0_COMPONENTS_SIZES_ASTC_2D_4X4		0x00000000
    174 #define GK20A_TIC_0_COMPONENTS_SIZES_ASTC_2D_5X4		0x00000010
    175 #define GK20A_TIC_0_COMPONENTS_SIZES_ASTC_2D_5X5		0x00000001
    176 #define GK20A_TIC_0_COMPONENTS_SIZES_ASTC_2D_6X5		0x00000011
    177 #define GK20A_TIC_0_COMPONENTS_SIZES_ASTC_2D_6X6		0x00000002
    178 #define GK20A_TIC_0_COMPONENTS_SIZES_ASTC_2D_8X5		0x00000015
    179 #define GK20A_TIC_0_COMPONENTS_SIZES_ASTC_2D_8X6		0x00000012
    180 #define GK20A_TIC_0_COMPONENTS_SIZES_ASTC_2D_8X8		0x00000004
    181 #define GK20A_TIC_0_COMPONENTS_SIZES_ASTC_2D_10X5		0x00000016
    182 #define GK20A_TIC_0_COMPONENTS_SIZES_ASTC_2D_10X6		0x00000017
    183 #define GK20A_TIC_0_COMPONENTS_SIZES_ASTC_2D_10X8		0x00000013
    184 #define GK20A_TIC_0_COMPONENTS_SIZES_ASTC_2D_10X10		0x00000005
    185 #define GK20A_TIC_0_COMPONENTS_SIZES_ASTC_2D_12X10		0x00000014
    186 #define GK20A_TIC_0_COMPONENTS_SIZES_ASTC_2D_12X12		0x00000006
    187 
    188 #define G80_TIC_1						0x00000004
    189 #define G80_TIC_1_OFFSET_LOWER__MASK				0xffffffff
    190 #define G80_TIC_1_OFFSET_LOWER__SHIFT				0
    191 
    192 #define G80_TIC_2						0x00000008
    193 #define G80_TIC_2_OFFSET_UPPER__MASK				0x000000ff
    194 #define G80_TIC_2_OFFSET_UPPER__SHIFT				0
    195 #define G84_TIC_2_ANISO_SPREAD_MAX_LOG2_LSB__MASK		0x00000300
    196 #define G84_TIC_2_ANISO_SPREAD_MAX_LOG2_LSB__SHIFT		8
    197 #define G80_TIC_2_SRGB_CONVERSION				0x00000400
    198 #define G84_TIC_2_ANISO_SPREAD_MAX_LOG2_MSB			0x00000800
    199 #define G80_TIC_2_LOD_ANISO_QUALITY_2				0x00001000
    200 #define G80_TIC_2_COLOR_KEY_OP					0x00002000
    201 #define G80_TIC_2_TEXTURE_TYPE__MASK				0x0003c000
    202 #define G80_TIC_2_TEXTURE_TYPE__SHIFT				14
    203 #define G80_TIC_2_TEXTURE_TYPE_ONE_D				0x00000000
    204 #define G80_TIC_2_TEXTURE_TYPE_TWO_D				0x00004000
    205 #define G80_TIC_2_TEXTURE_TYPE_THREE_D				0x00008000
    206 #define G80_TIC_2_TEXTURE_TYPE_CUBEMAP				0x0000c000
    207 #define G80_TIC_2_TEXTURE_TYPE_ONE_D_ARRAY			0x00010000
    208 #define G80_TIC_2_TEXTURE_TYPE_TWO_D_ARRAY			0x00014000
    209 #define G80_TIC_2_TEXTURE_TYPE_ONE_D_BUFFER			0x00018000
    210 #define G80_TIC_2_TEXTURE_TYPE_TWO_D_NO_MIPMAP			0x0001c000
    211 #define G80_TIC_2_TEXTURE_TYPE_CUBE_ARRAY			0x00020000
    212 #define G80_TIC_2_LAYOUT__MASK					0x00040000
    213 #define G80_TIC_2_LAYOUT__SHIFT					18
    214 #define G80_TIC_2_LAYOUT_BLOCKLINEAR				0x00000000
    215 #define G80_TIC_2_LAYOUT_PITCH					0x00040000
    216 #define G80_TIC_2_GOBS_PER_BLOCK_WIDTH__MASK			0x00380000
    217 #define G80_TIC_2_GOBS_PER_BLOCK_WIDTH__SHIFT			19
    218 #define G80_TIC_2_GOBS_PER_BLOCK_WIDTH__MIN			0x00000000
    219 #define G80_TIC_2_GOBS_PER_BLOCK_WIDTH__MAX			0x00000000
    220 #define G80_TIC_2_GOBS_PER_BLOCK_WIDTH_ONE			0x00000000
    221 #define G80_TIC_2_GOBS_PER_BLOCK_WIDTH_TWO			0x00080000
    222 #define G80_TIC_2_GOBS_PER_BLOCK_WIDTH_FOUR			0x00100000
    223 #define G80_TIC_2_GOBS_PER_BLOCK_WIDTH_EIGHT			0x00180000
    224 #define G80_TIC_2_GOBS_PER_BLOCK_WIDTH_SIXTEEN			0x00200000
    225 #define G80_TIC_2_GOBS_PER_BLOCK_WIDTH_THIRTYTWO		0x00280000
    226 #define G80_TIC_2_GOBS_PER_BLOCK_HEIGHT__MASK			0x01c00000
    227 #define G80_TIC_2_GOBS_PER_BLOCK_HEIGHT__SHIFT			22
    228 #define G80_TIC_2_GOBS_PER_BLOCK_HEIGHT_ONE			0x00000000
    229 #define G80_TIC_2_GOBS_PER_BLOCK_HEIGHT_TWO			0x00400000
    230 #define G80_TIC_2_GOBS_PER_BLOCK_HEIGHT_FOUR			0x00800000
    231 #define G80_TIC_2_GOBS_PER_BLOCK_HEIGHT_EIGHT			0x00c00000
    232 #define G80_TIC_2_GOBS_PER_BLOCK_HEIGHT_SIXTEEN			0x01000000
    233 #define G80_TIC_2_GOBS_PER_BLOCK_HEIGHT_THIRTYTWO		0x01400000
    234 #define G80_TIC_2_GOBS_PER_BLOCK_DEPTH__MASK			0x0e000000
    235 #define G80_TIC_2_GOBS_PER_BLOCK_DEPTH__SHIFT			25
    236 #define G80_TIC_2_GOBS_PER_BLOCK_DEPTH_ONE			0x00000000
    237 #define G80_TIC_2_GOBS_PER_BLOCK_DEPTH_TWO			0x02000000
    238 #define G80_TIC_2_GOBS_PER_BLOCK_DEPTH_FOUR			0x04000000
    239 #define G80_TIC_2_GOBS_PER_BLOCK_DEPTH_EIGHT			0x06000000
    240 #define G80_TIC_2_GOBS_PER_BLOCK_DEPTH_SIXTEEN			0x08000000
    241 #define G80_TIC_2_GOBS_PER_BLOCK_DEPTH_THIRTYTWO		0x0a000000
    242 #define G80_TIC_2_SECTOR_PROMOTION__MASK			0x30000000
    243 #define G80_TIC_2_SECTOR_PROMOTION__SHIFT			28
    244 #define G80_TIC_2_SECTOR_PROMOTION_NO_PROMOTION			0x00000000
    245 #define G80_TIC_2_SECTOR_PROMOTION_PROMOTE_TO_2_V		0x10000000
    246 #define G80_TIC_2_SECTOR_PROMOTION_PROMOTE_TO_2_H		0x20000000
    247 #define G80_TIC_2_SECTOR_PROMOTION_PROMOTE_TO_4			0x30000000
    248 #define G80_TIC_2_BORDER_SOURCE__MASK				0x40000000
    249 #define G80_TIC_2_BORDER_SOURCE__SHIFT				30
    250 #define G80_TIC_2_BORDER_SOURCE_TEXTURE				0x00000000
    251 #define G80_TIC_2_BORDER_SOURCE_COLOR				0x40000000
    252 #define G80_TIC_2_NORMALIZED_COORDS				0x80000000
    253 
    254 #define G80_TIC_3						0x0000000c
    255 #define G80_TIC_3_PITCH__MASK					0x000fffff
    256 #define G80_TIC_3_PITCH__SHIFT					0
    257 #define G80_TIC_3_LOD_ANISO_QUALITY__MASK			0x00100000
    258 #define G80_TIC_3_LOD_ANISO_QUALITY__SHIFT			20
    259 #define G80_TIC_3_LOD_ANISO_QUALITY_LOW				0x00000000
    260 #define G80_TIC_3_LOD_ANISO_QUALITY_HIGH			0x00100000
    261 #define G80_TIC_3_LOD_ISO_QUALITY__MASK				0x00200000
    262 #define G80_TIC_3_LOD_ISO_QUALITY__SHIFT			21
    263 #define G80_TIC_3_LOD_ISO_QUALITY_LOW				0x00000000
    264 #define G80_TIC_3_LOD_ISO_QUALITY_HIGH				0x00200000
    265 #define G80_TIC_3_ANISO_COARSE_SPREAD_MODIFIER__MASK		0x00c00000
    266 #define G80_TIC_3_ANISO_COARSE_SPREAD_MODIFIER__SHIFT		22
    267 #define G80_TIC_3_ANISO_COARSE_SPREAD_MODIFIER_NONE		0x00000000
    268 #define G80_TIC_3_ANISO_COARSE_SPREAD_MODIFIER_CONST_ONE	0x00400000
    269 #define G80_TIC_3_ANISO_COARSE_SPREAD_MODIFIER_CONST_TWO	0x00800000
    270 #define G80_TIC_3_ANISO_COARSE_SPREAD_MODIFIER_SQRT		0x00c00000
    271 #define G80_TIC_3_ANISO_SPREAD_SCALE__MASK			0x1f000000
    272 #define G80_TIC_3_ANISO_SPREAD_SCALE__SHIFT			24
    273 #define G80_TIC_3_USE_HEADER_OPT_CONTROL			0x20000000
    274 #define G84_TIC_3_ANISO_CLAMP_AT_MAX_LOD			0x40000000
    275 #define G84_TIC_3_ANISO_POW2					0x80000000
    276 
    277 #define G80_TIC_4						0x00000010
    278 #define G80_TIC_4_WIDTH__MASK					0x3fffffff
    279 #define G80_TIC_4_WIDTH__SHIFT					0
    280 #define G80_TIC_4_DEPTH_TEXTURE					0x40000000
    281 #define G84_TIC_4_USE_TEXTURE_HEADER_V2				0x80000000
    282 
    283 #define G80_TIC_5						0x00000014
    284 #define G80_TIC_5_MAP_MIP_LEVEL__MASK				0xf0000000
    285 #define G80_TIC_5_MAP_MIP_LEVEL__SHIFT				28
    286 #define G80_TIC_5_DEPTH__MASK					0x0fff0000
    287 #define G80_TIC_5_DEPTH__SHIFT					16
    288 #define G80_TIC_5_HEIGHT__MASK					0x0000ffff
    289 #define G80_TIC_5_HEIGHT__SHIFT					0
    290 
    291 #define G80_TIC_6						0x00000018
    292 #define G80_TIC_6_TRILIN_OPT__MASK				0x0000001f
    293 #define G80_TIC_6_TRILIN_OPT__SHIFT				0
    294 #define G80_TIC_6_MIP_LOD_BIAS__MASK				0x0003ffe0
    295 #define G80_TIC_6_MIP_LOD_BIAS__SHIFT				5
    296 #define G80_TIC_6_MIP_LOD_BIAS__RADIX				0x00000008
    297 #define G80_TIC_6_ANISO_BIAS__MASK				0x00780000
    298 #define G80_TIC_6_ANISO_BIAS__SHIFT				19
    299 #define G80_TIC_6_ANISO_BIAS__RADIX				0x00000004
    300 #define G80_TIC_6_ANISO_FINE_SPREAD_FUNC__MASK			0x01800000
    301 #define G80_TIC_6_ANISO_FINE_SPREAD_FUNC__SHIFT			23
    302 #define G80_TIC_6_ANISO_FINE_SPREAD_FUNC_HALF			0x00000000
    303 #define G80_TIC_6_ANISO_FINE_SPREAD_FUNC_ONE			0x00800000
    304 #define G80_TIC_6_ANISO_FINE_SPREAD_FUNC_TWO			0x01000000
    305 #define G80_TIC_6_ANISO_FINE_SPREAD_FUNC_MAX			0x01800000
    306 #define G80_TIC_6_ANISO_COARSE_SPREAD_FUNC__MASK		0x06000000
    307 #define G80_TIC_6_ANISO_COARSE_SPREAD_FUNC__SHIFT		25
    308 #define G80_TIC_6_ANISO_COARSE_SPREAD_FUNC_HALF			0x00000000
    309 #define G80_TIC_6_ANISO_COARSE_SPREAD_FUNC_ONE			0x02000000
    310 #define G80_TIC_6_ANISO_COARSE_SPREAD_FUNC_TWO			0x04000000
    311 #define G80_TIC_6_ANISO_COARSE_SPREAD_FUNC_MAX			0x06000000
    312 #define G80_TIC_6_MAX_ANISOTROPY__MASK				0x38000000
    313 #define G80_TIC_6_MAX_ANISOTROPY__SHIFT				27
    314 #define G80_TIC_6_MAX_ANISOTROPY_1_TO_1				0x00000000
    315 #define G80_TIC_6_MAX_ANISOTROPY_2_TO_1				0x08000000
    316 #define G80_TIC_6_MAX_ANISOTROPY_4_TO_1				0x10000000
    317 #define G80_TIC_6_MAX_ANISOTROPY_6_TO_1				0x18000000
    318 #define G80_TIC_6_MAX_ANISOTROPY_8_TO_1				0x20000000
    319 #define G80_TIC_6_MAX_ANISOTROPY_10_TO_1			0x28000000
    320 #define G80_TIC_6_MAX_ANISOTROPY_12_TO_1			0x30000000
    321 #define G80_TIC_6_MAX_ANISOTROPY_16_TO_1			0x38000000
    322 #define G80_TIC_6_ANISO_FINE_SPREAD_MODIFIER__MASK		0xc0000000
    323 #define G80_TIC_6_ANISO_FINE_SPREAD_MODIFIER__SHIFT		30
    324 #define G80_TIC_6_ANISO_FINE_SPREAD_MODIFIER_NONE		0x00000000
    325 #define G80_TIC_6_ANISO_FINE_SPREAD_MODIFIER_CONST_ONE		0x40000000
    326 #define G80_TIC_6_ANISO_FINE_SPREAD_MODIFIER_CONST_TWO		0x80000000
    327 #define G80_TIC_6_ANISO_FINE_SPREAD_MODIFIER_SQRT		0xc0000000
    328 
    329 #define G80_TIC_7						0x0000001c
    330 #define G80_TIC_7_COLOR_KEY_VALUE__MASK				0xffffffff
    331 #define G80_TIC_7_COLOR_KEY_VALUE__SHIFT			0
    332 
    333 #define G84_TIC_7						0x0000001c
    334 #define G84_TIC_7_RES_VIEW_MIN_MIP_LEVEL__MASK			0x0000000f
    335 #define G84_TIC_7_RES_VIEW_MIN_MIP_LEVEL__SHIFT			0
    336 #define G84_TIC_7_RES_VIEW_MAX_MIP_LEVEL__MASK			0x000000f0
    337 #define G84_TIC_7_RES_VIEW_MAX_MIP_LEVEL__SHIFT			4
    338 #define G84_TIC_7_HEIGHT_MSB					0x00000100
    339 #define G84_TIC_7_MULTI_SAMPLE_COUNT__MASK			0x0000f000
    340 #define G84_TIC_7_MULTI_SAMPLE_COUNT__SHIFT			12
    341 #define G84_TIC_7_MULTI_SAMPLE_COUNT_1X1			0x00000000
    342 #define G84_TIC_7_MULTI_SAMPLE_COUNT_2X1			0x00001000
    343 #define G84_TIC_7_MULTI_SAMPLE_COUNT_2X2			0x00002000
    344 #define G84_TIC_7_MULTI_SAMPLE_COUNT_4X2			0x00003000
    345 #define GT215_TIC_7_MULTI_SAMPLE_COUNT_4X2_D3D			0x00004000
    346 #define GT215_TIC_7_MULTI_SAMPLE_COUNT_2X1_D3D			0x00005000
    347 #define GF100_TIC_7_MULTI_SAMPLE_COUNT_4X4			0x00006000
    348 #define G84_TIC_7_MULTI_SAMPLE_COUNT_2X2_VC_4			0x00008000
    349 #define G84_TIC_7_MULTI_SAMPLE_COUNT_2X2_VC_12			0x00009000
    350 #define G84_TIC_7_MULTI_SAMPLE_COUNT_4X2_VC_8			0x0000a000
    351 #define GF100_TIC_7_MULTI_SAMPLE_COUNT_4X2_VC_24		0x0000b000
    352 #define G84_TIC_7_MIN_LOD_CLAMP__MASK				0x0fff0000
    353 #define G84_TIC_7_MIN_LOD_CLAMP__SHIFT				16
    354 #define G84_TIC_7_MIN_LOD_CLAMP__RADIX				0x00000008
    355 #define G84_TIC_7_DEPTH_MSB__MASK				0x70000000
    356 #define G84_TIC_7_DEPTH_MSB__SHIFT				28
    357 
    358 #define G80_TSC__SIZE						0x00000020
    359 #define G80_TSC_0						0x00000000
    360 #define G80_TSC_0_ADDRESS_U__MASK				0x00000007
    361 #define G80_TSC_0_ADDRESS_U__SHIFT				0
    362 #define G80_TSC_0_ADDRESS_V__MASK				0x00000038
    363 #define G80_TSC_0_ADDRESS_V__SHIFT				3
    364 #define G80_TSC_0_ADDRESS_P__MASK				0x000001c0
    365 #define G80_TSC_0_ADDRESS_P__SHIFT				6
    366 #define G80_TSC_0_DEPTH_COMPARE					0x00000200
    367 #define G80_TSC_0_DEPTH_COMPARE_FUNC__MASK			0x00001c00
    368 #define G80_TSC_0_DEPTH_COMPARE_FUNC__SHIFT			10
    369 #define G80_TSC_0_DEPTH_COMPARE_FUNC_NEVER			0x00000000
    370 #define G80_TSC_0_DEPTH_COMPARE_FUNC_LESS			0x00000400
    371 #define G80_TSC_0_DEPTH_COMPARE_FUNC_EQUAL			0x00000800
    372 #define G80_TSC_0_DEPTH_COMPARE_FUNC_LEQUAL			0x00000c00
    373 #define G80_TSC_0_DEPTH_COMPARE_FUNC_GREATER			0x00001000
    374 #define G80_TSC_0_DEPTH_COMPARE_FUNC_NOTEQUAL			0x00001400
    375 #define G80_TSC_0_DEPTH_COMPARE_FUNC_GEQUAL			0x00001800
    376 #define G80_TSC_0_DEPTH_COMPARE_FUNC_ALWAYS			0x00001c00
    377 #define G80_TSC_0_SRGB_CONVERSION				0x00002000
    378 #define G80_TSC_0_FONT_FILTER_WIDTH__MASK			0x0001c000
    379 #define G80_TSC_0_FONT_FILTER_WIDTH__SHIFT			14
    380 #define G80_TSC_0_FONT_FILTER_HEIGHT__MASK			0x000e0000
    381 #define G80_TSC_0_FONT_FILTER_HEIGHT__SHIFT			17
    382 #define G80_TSC_0_MAX_ANISOTROPY__MASK				0x00700000
    383 #define G80_TSC_0_MAX_ANISOTROPY__SHIFT				20
    384 #define G80_TSC_0_MAX_ANISOTROPY_1_TO_1				0x00000000
    385 #define G80_TSC_0_MAX_ANISOTROPY_2_TO_1				0x00100000
    386 #define G80_TSC_0_MAX_ANISOTROPY_4_TO_1				0x00200000
    387 #define G80_TSC_0_MAX_ANISOTROPY_6_TO_1				0x00300000
    388 #define G80_TSC_0_MAX_ANISOTROPY_8_TO_1				0x00400000
    389 #define G80_TSC_0_MAX_ANISOTROPY_10_TO_1			0x00500000
    390 #define G80_TSC_0_MAX_ANISOTROPY_12_TO_1			0x00600000
    391 #define G80_TSC_0_MAX_ANISOTROPY_16_TO_1			0x00700000
    392 
    393 #define G80_TSC_1						0x00000004
    394 #define G80_TSC_1_MAG_FILTER__MASK				0x00000003
    395 #define G80_TSC_1_MAG_FILTER__SHIFT				0
    396 #define G80_TSC_1_MAG_FILTER_NEAREST				0x00000001
    397 #define G80_TSC_1_MAG_FILTER_LINEAR				0x00000002
    398 #define G80_TSC_1_MIN_FILTER__MASK				0x00000030
    399 #define G80_TSC_1_MIN_FILTER__SHIFT				4
    400 #define G80_TSC_1_MIN_FILTER_NEAREST				0x00000010
    401 #define G80_TSC_1_MIN_FILTER_LINEAR				0x00000020
    402 #define G80_TSC_1_MIP_FILTER__MASK				0x000000c0
    403 #define G80_TSC_1_MIP_FILTER__SHIFT				6
    404 #define G80_TSC_1_MIP_FILTER_NONE				0x00000040
    405 #define G80_TSC_1_MIP_FILTER_NEAREST				0x00000080
    406 #define G80_TSC_1_MIP_FILTER_LINEAR				0x000000c0
    407 #define GK104_TSC_1_CUBEMAP_INTERFACE_FILTERING			0x00000200
    408 #define G80_TSC_1_MIP_LOD_BIAS__MASK				0x01fff000
    409 #define G80_TSC_1_MIP_LOD_BIAS__SHIFT				12
    410 #define G80_TSC_1_MIP_LOD_BIAS__RADIX				0x00000008
    411 #define GK104_TSC_1_FLOAT_COORD_NORMALIZATION__MASK		0x02000000
    412 #define GK104_TSC_1_FLOAT_COORD_NORMALIZATION__SHIFT		25
    413 #define GK104_TSC_1_FLOAT_COORD_NORMALIZATION_USE_HEADER_SETTING	0x00000000
    414 #define GK104_TSC_1_FLOAT_COORD_NORMALIZATION_FORCE_UNNORMALIZED_COORDS	0x02000000
    415 #define G80_TSC_1_TRILIN_OPT__MASK				0x7c000000
    416 #define G80_TSC_1_TRILIN_OPT__SHIFT				26
    417 
    418 #define G80_TSC_2						0x00000008
    419 #define G80_TSC_2_MIN_LOD_CLAMP__MASK				0x00000fff
    420 #define G80_TSC_2_MIN_LOD_CLAMP__SHIFT				0
    421 #define G80_TSC_2_MIN_LOD_CLAMP__RADIX				0x00000008
    422 #define G80_TSC_2_MAX_LOD_CLAMP__MASK				0x00fff000
    423 #define G80_TSC_2_MAX_LOD_CLAMP__SHIFT				12
    424 #define G80_TSC_2_MAX_LOD_CLAMP__RADIX				0x00000008
    425 #define G80_TSC_2_SRGB_BORDER_COLOR_R__MASK			0xff000000
    426 #define G80_TSC_2_SRGB_BORDER_COLOR_R__SHIFT			24
    427 
    428 #define G80_TSC_3						0x0000000c
    429 #define G80_TSC_3_SRGB_BORDER_COLOR_G__MASK			0x000ff000
    430 #define G80_TSC_3_SRGB_BORDER_COLOR_G__SHIFT			12
    431 #define G80_TSC_3_SRGB_BORDER_COLOR_B__MASK			0x0ff00000
    432 #define G80_TSC_3_SRGB_BORDER_COLOR_B__SHIFT			20
    433 
    434 #define G80_TSC_4						0x00000010
    435 #define G80_TSC_4_BORDER_COLOR_R__MASK				0xffffffff
    436 #define G80_TSC_4_BORDER_COLOR_R__SHIFT				0
    437 
    438 #define G80_TSC_5						0x00000014
    439 #define G80_TSC_5_BORDER_COLOR_G__MASK				0xffffffff
    440 #define G80_TSC_5_BORDER_COLOR_G__SHIFT				0
    441 
    442 #define G80_TSC_6						0x00000018
    443 #define G80_TSC_6_BORDER_COLOR_B__MASK				0xffffffff
    444 #define G80_TSC_6_BORDER_COLOR_B__SHIFT				0
    445 
    446 #define G80_TSC_7						0x0000001c
    447 #define G80_TSC_7_BORDER_COLOR_A__MASK				0xffffffff
    448 #define G80_TSC_7_BORDER_COLOR_A__SHIFT				0
    449 
    450 
    451 #endif /* G80_TEXTURE_XML */
    452