brw_defines.h

Go to the documentation of this file.
00001 /*
00002  Copyright (C) Intel Corp.  2006.  All Rights Reserved.
00003  Intel funded Tungsten Graphics (http://www.tungstengraphics.com) to
00004  develop this 3D driver.
00005 
00006  Permission is hereby granted, free of charge, to any person obtaining
00007  a copy of this software and associated documentation files (the
00008  "Software"), to deal in the Software without restriction, including
00009  without limitation the rights to use, copy, modify, merge, publish,
00010  distribute, sublicense, and/or sell copies of the Software, and to
00011  permit persons to whom the Software is furnished to do so, subject to
00012  the following conditions:
00013 
00014  The above copyright notice and this permission notice (including the
00015  next paragraph) shall be included in all copies or substantial
00016  portions of the Software.
00017 
00018  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
00019  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
00020  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
00021  IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE
00022  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
00023  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
00024  WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00025 
00026  **********************************************************************/
00027  /*
00028   * Authors:
00029   *   Keith Whitwell <keith@tungstengraphics.com>
00030   */
00031 
00032 
00033 #ifndef BRW_DEFINES_H
00034 #define BRW_DEFINES_H
00035 
00036 /*
00037  */
00038 #define MI_NOOP                              0x00
00039 #define MI_USER_INTERRUPT                    0x02
00040 #define MI_WAIT_FOR_EVENT                    0x03
00041 #define MI_FLUSH                             0x04
00042 #define MI_REPORT_HEAD                       0x07
00043 #define MI_ARB_ON_OFF                        0x08
00044 #define MI_BATCH_BUFFER_END                  0x0A
00045 #define MI_OVERLAY_FLIP                      0x11
00046 #define MI_LOAD_SCAN_LINES_INCL              0x12
00047 #define MI_LOAD_SCAN_LINES_EXCL              0x13
00048 #define MI_DISPLAY_BUFFER_INFO               0x14
00049 #define MI_SET_CONTEXT                       0x18
00050 #define MI_STORE_DATA_IMM                    0x20
00051 #define MI_STORE_DATA_INDEX                  0x21
00052 #define MI_LOAD_REGISTER_IMM                 0x22
00053 #define MI_STORE_REGISTER_MEM                0x24
00054 #define MI_BATCH_BUFFER_START                0x31
00055 
00056 #define MI_SYNCHRONOUS_FLIP                  0x0
00057 #define MI_ASYNCHRONOUS_FLIP                 0x1
00058 
00059 #define MI_BUFFER_SECURE                     0x0
00060 #define MI_BUFFER_NONSECURE                  0x1
00061 
00062 #define MI_ARBITRATE_AT_CHAIN_POINTS         0x0
00063 #define MI_ARBITRATE_BETWEEN_INSTS           0x1
00064 #define MI_NO_ARBITRATION                    0x3
00065 
00066 #define MI_CONDITION_CODE_WAIT_DISABLED      0x0
00067 #define MI_CONDITION_CODE_WAIT_0             0x1
00068 #define MI_CONDITION_CODE_WAIT_1             0x2
00069 #define MI_CONDITION_CODE_WAIT_2             0x3
00070 #define MI_CONDITION_CODE_WAIT_3             0x4
00071 #define MI_CONDITION_CODE_WAIT_4             0x5
00072 
00073 #define MI_DISPLAY_PIPE_A                    0x0
00074 #define MI_DISPLAY_PIPE_B                    0x1
00075 
00076 #define MI_DISPLAY_PLANE_A                   0x0
00077 #define MI_DISPLAY_PLANE_B                   0x1
00078 #define MI_DISPLAY_PLANE_C                   0x2
00079 
00080 #define MI_STANDARD_FLIP                                 0x0
00081 #define MI_ENQUEUE_FLIP_PERFORM_BASE_FRAME_NUMBER_LOAD   0x1
00082 #define MI_ENQUEUE_FLIP_TARGET_FRAME_NUMBER_RELATIVE     0x2
00083 #define MI_ENQUEUE_FLIP_ABSOLUTE_TARGET_FRAME_NUMBER     0x3
00084 
00085 #define MI_PHYSICAL_ADDRESS                  0x0
00086 #define MI_VIRTUAL_ADDRESS                   0x1
00087 
00088 #define MI_BUFFER_MEMORY_MAIN                0x0
00089 #define MI_BUFFER_MEMORY_GTT                 0x2
00090 #define MI_BUFFER_MEMORY_PER_PROCESS_GTT     0x3
00091 
00092 #define MI_FLIP_CONTINUE                     0x0
00093 #define MI_FLIP_ON                           0x1
00094 #define MI_FLIP_OFF                          0x2
00095 
00096 #define MI_UNTRUSTED_REGISTER_SPACE          0x0
00097 #define MI_TRUSTED_REGISTER_SPACE            0x1
00098 
00099 /* 3D state:
00100  */
00101 #define _3DOP_3DSTATE_PIPELINED       0x0
00102 #define _3DOP_3DSTATE_NONPIPELINED    0x1
00103 #define _3DOP_3DCONTROL               0x2
00104 #define _3DOP_3DPRIMITIVE             0x3
00105 
00106 #define _3DSTATE_PIPELINED_POINTERS       0x00
00107 #define _3DSTATE_BINDING_TABLE_POINTERS   0x01
00108 #define _3DSTATE_VERTEX_BUFFERS           0x08
00109 #define _3DSTATE_VERTEX_ELEMENTS          0x09
00110 #define _3DSTATE_INDEX_BUFFER             0x0A
00111 #define _3DSTATE_VF_STATISTICS            0x0B
00112 #define _3DSTATE_DRAWING_RECTANGLE            0x00
00113 #define _3DSTATE_CONSTANT_COLOR               0x01
00114 #define _3DSTATE_SAMPLER_PALETTE_LOAD         0x02
00115 #define _3DSTATE_CHROMA_KEY                   0x04
00116 #define _3DSTATE_DEPTH_BUFFER                 0x05
00117 #define _3DSTATE_POLY_STIPPLE_OFFSET          0x06
00118 #define _3DSTATE_POLY_STIPPLE_PATTERN         0x07
00119 #define _3DSTATE_LINE_STIPPLE                 0x08
00120 #define _3DSTATE_GLOBAL_DEPTH_OFFSET_CLAMP    0x09
00121 #define _3DCONTROL    0x00
00122 #define _3DPRIMITIVE  0x00
00123 
00124 #define PIPE_CONTROL_NOWRITE          0x00
00125 #define PIPE_CONTROL_WRITEIMMEDIATE   0x01
00126 #define PIPE_CONTROL_WRITEDEPTH       0x02
00127 #define PIPE_CONTROL_WRITETIMESTAMP   0x03
00128 
00129 #define PIPE_CONTROL_GTTWRITE_PROCESS_LOCAL 0x00
00130 #define PIPE_CONTROL_GTTWRITE_GLOBAL        0x01
00131 
00132 #define _3DPRIM_POINTLIST         0x01
00133 #define _3DPRIM_LINELIST          0x02
00134 #define _3DPRIM_LINESTRIP         0x03
00135 #define _3DPRIM_TRILIST           0x04
00136 #define _3DPRIM_TRISTRIP          0x05
00137 #define _3DPRIM_TRIFAN            0x06
00138 #define _3DPRIM_QUADLIST          0x07
00139 #define _3DPRIM_QUADSTRIP         0x08
00140 #define _3DPRIM_LINELIST_ADJ      0x09
00141 #define _3DPRIM_LINESTRIP_ADJ     0x0A
00142 #define _3DPRIM_TRILIST_ADJ       0x0B
00143 #define _3DPRIM_TRISTRIP_ADJ      0x0C
00144 #define _3DPRIM_TRISTRIP_REVERSE  0x0D
00145 #define _3DPRIM_POLYGON           0x0E
00146 #define _3DPRIM_RECTLIST          0x0F
00147 #define _3DPRIM_LINELOOP          0x10
00148 #define _3DPRIM_POINTLIST_BF      0x11
00149 #define _3DPRIM_LINESTRIP_CONT    0x12
00150 #define _3DPRIM_LINESTRIP_BF      0x13
00151 #define _3DPRIM_LINESTRIP_CONT_BF 0x14
00152 #define _3DPRIM_TRIFAN_NOSTIPPLE  0x15
00153 
00154 #define _3DPRIM_VERTEXBUFFER_ACCESS_SEQUENTIAL 0
00155 #define _3DPRIM_VERTEXBUFFER_ACCESS_RANDOM     1
00156 
00157 #define BRW_ANISORATIO_2     0
00158 #define BRW_ANISORATIO_4     1
00159 #define BRW_ANISORATIO_6     2
00160 #define BRW_ANISORATIO_8     3
00161 #define BRW_ANISORATIO_10    4
00162 #define BRW_ANISORATIO_12    5
00163 #define BRW_ANISORATIO_14    6
00164 #define BRW_ANISORATIO_16    7
00165 
00166 #define BRW_BLENDFACTOR_ONE                 0x1
00167 #define BRW_BLENDFACTOR_SRC_COLOR           0x2
00168 #define BRW_BLENDFACTOR_SRC_ALPHA           0x3
00169 #define BRW_BLENDFACTOR_DST_ALPHA           0x4
00170 #define BRW_BLENDFACTOR_DST_COLOR           0x5
00171 #define BRW_BLENDFACTOR_SRC_ALPHA_SATURATE  0x6
00172 #define BRW_BLENDFACTOR_CONST_COLOR         0x7
00173 #define BRW_BLENDFACTOR_CONST_ALPHA         0x8
00174 #define BRW_BLENDFACTOR_SRC1_COLOR          0x9
00175 #define BRW_BLENDFACTOR_SRC1_ALPHA          0x0A
00176 #define BRW_BLENDFACTOR_ZERO                0x11
00177 #define BRW_BLENDFACTOR_INV_SRC_COLOR       0x12
00178 #define BRW_BLENDFACTOR_INV_SRC_ALPHA       0x13
00179 #define BRW_BLENDFACTOR_INV_DST_ALPHA       0x14
00180 #define BRW_BLENDFACTOR_INV_DST_COLOR       0x15
00181 #define BRW_BLENDFACTOR_INV_CONST_COLOR     0x17
00182 #define BRW_BLENDFACTOR_INV_CONST_ALPHA     0x18
00183 #define BRW_BLENDFACTOR_INV_SRC1_COLOR      0x19
00184 #define BRW_BLENDFACTOR_INV_SRC1_ALPHA      0x1A
00185 
00186 #define BRW_BLENDFUNCTION_ADD               0
00187 #define BRW_BLENDFUNCTION_SUBTRACT          1
00188 #define BRW_BLENDFUNCTION_REVERSE_SUBTRACT  2
00189 #define BRW_BLENDFUNCTION_MIN               3
00190 #define BRW_BLENDFUNCTION_MAX               4
00191 
00192 #define BRW_ALPHATEST_FORMAT_UNORM8         0
00193 #define BRW_ALPHATEST_FORMAT_FLOAT32        1
00194 
00195 #define BRW_CHROMAKEY_KILL_ON_ANY_MATCH  0
00196 #define BRW_CHROMAKEY_REPLACE_BLACK      1
00197 
00198 #define BRW_CLIP_API_OGL     0
00199 #define BRW_CLIP_API_DX      1
00200 
00201 #define BRW_CLIPMODE_NORMAL              0
00202 #define BRW_CLIPMODE_CLIP_ALL            1
00203 #define BRW_CLIPMODE_CLIP_NON_REJECTED   2
00204 #define BRW_CLIPMODE_REJECT_ALL          3
00205 #define BRW_CLIPMODE_ACCEPT_ALL          4
00206 
00207 #define BRW_CLIP_NDCSPACE     0
00208 #define BRW_CLIP_SCREENSPACE  1
00209 
00210 #define BRW_COMPAREFUNCTION_ALWAYS       0
00211 #define BRW_COMPAREFUNCTION_NEVER        1
00212 #define BRW_COMPAREFUNCTION_LESS         2
00213 #define BRW_COMPAREFUNCTION_EQUAL        3
00214 #define BRW_COMPAREFUNCTION_LEQUAL       4
00215 #define BRW_COMPAREFUNCTION_GREATER      5
00216 #define BRW_COMPAREFUNCTION_NOTEQUAL     6
00217 #define BRW_COMPAREFUNCTION_GEQUAL       7
00218 
00219 #define BRW_COVERAGE_PIXELS_HALF     0
00220 #define BRW_COVERAGE_PIXELS_1        1
00221 #define BRW_COVERAGE_PIXELS_2        2
00222 #define BRW_COVERAGE_PIXELS_4        3
00223 
00224 #define BRW_CULLMODE_BOTH        0
00225 #define BRW_CULLMODE_NONE        1
00226 #define BRW_CULLMODE_FRONT       2
00227 #define BRW_CULLMODE_BACK        3
00228 
00229 #define BRW_DEFAULTCOLOR_R8G8B8A8_UNORM      0
00230 #define BRW_DEFAULTCOLOR_R32G32B32A32_FLOAT  1
00231 
00232 #define BRW_DEPTHFORMAT_D32_FLOAT_S8X24_UINT     0
00233 #define BRW_DEPTHFORMAT_D32_FLOAT                1
00234 #define BRW_DEPTHFORMAT_D24_UNORM_S8_UINT        2
00235 #define BRW_DEPTHFORMAT_D16_UNORM                5
00236 
00237 #define BRW_FLOATING_POINT_IEEE_754        0
00238 #define BRW_FLOATING_POINT_NON_IEEE_754    1
00239 
00240 #define BRW_FRONTWINDING_CW      0
00241 #define BRW_FRONTWINDING_CCW     1
00242 
00243 #define BRW_SPRITE_POINT_ENABLE  16
00244 
00245 #define BRW_INDEX_BYTE     0
00246 #define BRW_INDEX_WORD     1
00247 #define BRW_INDEX_DWORD    2
00248 
00249 #define BRW_LOGICOPFUNCTION_CLEAR            0
00250 #define BRW_LOGICOPFUNCTION_NOR              1
00251 #define BRW_LOGICOPFUNCTION_AND_INVERTED     2
00252 #define BRW_LOGICOPFUNCTION_COPY_INVERTED    3
00253 #define BRW_LOGICOPFUNCTION_AND_REVERSE      4
00254 #define BRW_LOGICOPFUNCTION_INVERT           5
00255 #define BRW_LOGICOPFUNCTION_XOR              6
00256 #define BRW_LOGICOPFUNCTION_NAND             7
00257 #define BRW_LOGICOPFUNCTION_AND              8
00258 #define BRW_LOGICOPFUNCTION_EQUIV            9
00259 #define BRW_LOGICOPFUNCTION_NOOP             10
00260 #define BRW_LOGICOPFUNCTION_OR_INVERTED      11
00261 #define BRW_LOGICOPFUNCTION_COPY             12
00262 #define BRW_LOGICOPFUNCTION_OR_REVERSE       13
00263 #define BRW_LOGICOPFUNCTION_OR               14
00264 #define BRW_LOGICOPFUNCTION_SET              15
00265 
00266 #define BRW_MAPFILTER_NEAREST        0x0
00267 #define BRW_MAPFILTER_LINEAR         0x1
00268 #define BRW_MAPFILTER_ANISOTROPIC    0x2
00269 
00270 #define BRW_MIPFILTER_NONE        0
00271 #define BRW_MIPFILTER_NEAREST     1
00272 #define BRW_MIPFILTER_LINEAR      3
00273 
00274 #define BRW_POLYGON_FRONT_FACING     0
00275 #define BRW_POLYGON_BACK_FACING      1
00276 
00277 #define BRW_PREFILTER_ALWAYS     0x0
00278 #define BRW_PREFILTER_NEVER      0x1
00279 #define BRW_PREFILTER_LESS       0x2
00280 #define BRW_PREFILTER_EQUAL      0x3
00281 #define BRW_PREFILTER_LEQUAL     0x4
00282 #define BRW_PREFILTER_GREATER    0x5
00283 #define BRW_PREFILTER_NOTEQUAL   0x6
00284 #define BRW_PREFILTER_GEQUAL     0x7
00285 
00286 #define BRW_PROVOKING_VERTEX_0    0
00287 #define BRW_PROVOKING_VERTEX_1    1
00288 #define BRW_PROVOKING_VERTEX_2    2
00289 
00290 #define BRW_RASTRULE_UPPER_LEFT  0
00291 #define BRW_RASTRULE_UPPER_RIGHT 1
00292 
00293 #define BRW_RENDERTARGET_CLAMPRANGE_UNORM    0
00294 #define BRW_RENDERTARGET_CLAMPRANGE_SNORM    1
00295 #define BRW_RENDERTARGET_CLAMPRANGE_FORMAT   2
00296 
00297 #define BRW_STENCILOP_KEEP               0
00298 #define BRW_STENCILOP_ZERO               1
00299 #define BRW_STENCILOP_REPLACE            2
00300 #define BRW_STENCILOP_INCRSAT            3
00301 #define BRW_STENCILOP_DECRSAT            4
00302 #define BRW_STENCILOP_INCR               5
00303 #define BRW_STENCILOP_DECR               6
00304 #define BRW_STENCILOP_INVERT             7
00305 
00306 #define BRW_SURFACE_MIPMAPLAYOUT_BELOW   0
00307 #define BRW_SURFACE_MIPMAPLAYOUT_RIGHT   1
00308 
00309 #define BRW_SURFACEFORMAT_R32G32B32A32_FLOAT             0x000
00310 #define BRW_SURFACEFORMAT_R32G32B32A32_SINT              0x001
00311 #define BRW_SURFACEFORMAT_R32G32B32A32_UINT              0x002
00312 #define BRW_SURFACEFORMAT_R32G32B32A32_UNORM             0x003
00313 #define BRW_SURFACEFORMAT_R32G32B32A32_SNORM             0x004
00314 #define BRW_SURFACEFORMAT_R64G64_FLOAT                   0x005
00315 #define BRW_SURFACEFORMAT_R32G32B32X32_FLOAT             0x006
00316 #define BRW_SURFACEFORMAT_R32G32B32A32_SSCALED           0x007
00317 #define BRW_SURFACEFORMAT_R32G32B32A32_USCALED           0x008
00318 #define BRW_SURFACEFORMAT_R32G32B32_FLOAT                0x040
00319 #define BRW_SURFACEFORMAT_R32G32B32_SINT                 0x041
00320 #define BRW_SURFACEFORMAT_R32G32B32_UINT                 0x042
00321 #define BRW_SURFACEFORMAT_R32G32B32_UNORM                0x043
00322 #define BRW_SURFACEFORMAT_R32G32B32_SNORM                0x044
00323 #define BRW_SURFACEFORMAT_R32G32B32_SSCALED              0x045
00324 #define BRW_SURFACEFORMAT_R32G32B32_USCALED              0x046
00325 #define BRW_SURFACEFORMAT_R16G16B16A16_UNORM             0x080
00326 #define BRW_SURFACEFORMAT_R16G16B16A16_SNORM             0x081
00327 #define BRW_SURFACEFORMAT_R16G16B16A16_SINT              0x082
00328 #define BRW_SURFACEFORMAT_R16G16B16A16_UINT              0x083
00329 #define BRW_SURFACEFORMAT_R16G16B16A16_FLOAT             0x084
00330 #define BRW_SURFACEFORMAT_R32G32_FLOAT                   0x085
00331 #define BRW_SURFACEFORMAT_R32G32_SINT                    0x086
00332 #define BRW_SURFACEFORMAT_R32G32_UINT                    0x087
00333 #define BRW_SURFACEFORMAT_R32_FLOAT_X8X24_TYPELESS       0x088
00334 #define BRW_SURFACEFORMAT_X32_TYPELESS_G8X24_UINT        0x089
00335 #define BRW_SURFACEFORMAT_L32A32_FLOAT                   0x08A
00336 #define BRW_SURFACEFORMAT_R32G32_UNORM                   0x08B
00337 #define BRW_SURFACEFORMAT_R32G32_SNORM                   0x08C
00338 #define BRW_SURFACEFORMAT_R64_FLOAT                      0x08D
00339 #define BRW_SURFACEFORMAT_R16G16B16X16_UNORM             0x08E
00340 #define BRW_SURFACEFORMAT_R16G16B16X16_FLOAT             0x08F
00341 #define BRW_SURFACEFORMAT_A32X32_FLOAT                   0x090
00342 #define BRW_SURFACEFORMAT_L32X32_FLOAT                   0x091
00343 #define BRW_SURFACEFORMAT_I32X32_FLOAT                   0x092
00344 #define BRW_SURFACEFORMAT_R16G16B16A16_SSCALED           0x093
00345 #define BRW_SURFACEFORMAT_R16G16B16A16_USCALED           0x094
00346 #define BRW_SURFACEFORMAT_R32G32_SSCALED                 0x095
00347 #define BRW_SURFACEFORMAT_R32G32_USCALED                 0x096
00348 #define BRW_SURFACEFORMAT_B8G8R8A8_UNORM                 0x0C0
00349 #define BRW_SURFACEFORMAT_B8G8R8A8_UNORM_SRGB            0x0C1
00350 #define BRW_SURFACEFORMAT_R10G10B10A2_UNORM              0x0C2
00351 #define BRW_SURFACEFORMAT_R10G10B10A2_UNORM_SRGB         0x0C3
00352 #define BRW_SURFACEFORMAT_R10G10B10A2_UINT               0x0C4
00353 #define BRW_SURFACEFORMAT_R10G10B10_SNORM_A2_UNORM       0x0C5
00354 #define BRW_SURFACEFORMAT_R8G8B8A8_UNORM                 0x0C7
00355 #define BRW_SURFACEFORMAT_R8G8B8A8_UNORM_SRGB            0x0C8
00356 #define BRW_SURFACEFORMAT_R8G8B8A8_SNORM                 0x0C9
00357 #define BRW_SURFACEFORMAT_R8G8B8A8_SINT                  0x0CA
00358 #define BRW_SURFACEFORMAT_R8G8B8A8_UINT                  0x0CB
00359 #define BRW_SURFACEFORMAT_R16G16_UNORM                   0x0CC
00360 #define BRW_SURFACEFORMAT_R16G16_SNORM                   0x0CD
00361 #define BRW_SURFACEFORMAT_R16G16_SINT                    0x0CE
00362 #define BRW_SURFACEFORMAT_R16G16_UINT                    0x0CF
00363 #define BRW_SURFACEFORMAT_R16G16_FLOAT                   0x0D0
00364 #define BRW_SURFACEFORMAT_B10G10R10A2_UNORM              0x0D1
00365 #define BRW_SURFACEFORMAT_B10G10R10A2_UNORM_SRGB         0x0D2
00366 #define BRW_SURFACEFORMAT_R11G11B10_FLOAT                0x0D3
00367 #define BRW_SURFACEFORMAT_R32_SINT                       0x0D6
00368 #define BRW_SURFACEFORMAT_R32_UINT                       0x0D7
00369 #define BRW_SURFACEFORMAT_R32_FLOAT                      0x0D8
00370 #define BRW_SURFACEFORMAT_R24_UNORM_X8_TYPELESS          0x0D9
00371 #define BRW_SURFACEFORMAT_X24_TYPELESS_G8_UINT           0x0DA
00372 #define BRW_SURFACEFORMAT_L16A16_UNORM                   0x0DF
00373 #define BRW_SURFACEFORMAT_I24X8_UNORM                    0x0E0
00374 #define BRW_SURFACEFORMAT_L24X8_UNORM                    0x0E1
00375 #define BRW_SURFACEFORMAT_A24X8_UNORM                    0x0E2
00376 #define BRW_SURFACEFORMAT_I32_FLOAT                      0x0E3
00377 #define BRW_SURFACEFORMAT_L32_FLOAT                      0x0E4
00378 #define BRW_SURFACEFORMAT_A32_FLOAT                      0x0E5
00379 #define BRW_SURFACEFORMAT_B8G8R8X8_UNORM                 0x0E9
00380 #define BRW_SURFACEFORMAT_B8G8R8X8_UNORM_SRGB            0x0EA
00381 #define BRW_SURFACEFORMAT_R8G8B8X8_UNORM                 0x0EB
00382 #define BRW_SURFACEFORMAT_R8G8B8X8_UNORM_SRGB            0x0EC
00383 #define BRW_SURFACEFORMAT_R9G9B9E5_SHAREDEXP             0x0ED
00384 #define BRW_SURFACEFORMAT_B10G10R10X2_UNORM              0x0EE
00385 #define BRW_SURFACEFORMAT_L16A16_FLOAT                   0x0F0
00386 #define BRW_SURFACEFORMAT_R32_UNORM                      0x0F1
00387 #define BRW_SURFACEFORMAT_R32_SNORM                      0x0F2
00388 #define BRW_SURFACEFORMAT_R10G10B10X2_USCALED            0x0F3
00389 #define BRW_SURFACEFORMAT_R8G8B8A8_SSCALED               0x0F4
00390 #define BRW_SURFACEFORMAT_R8G8B8A8_USCALED               0x0F5
00391 #define BRW_SURFACEFORMAT_R16G16_SSCALED                 0x0F6
00392 #define BRW_SURFACEFORMAT_R16G16_USCALED                 0x0F7
00393 #define BRW_SURFACEFORMAT_R32_SSCALED                    0x0F8
00394 #define BRW_SURFACEFORMAT_R32_USCALED                    0x0F9
00395 #define BRW_SURFACEFORMAT_B5G6R5_UNORM                   0x100
00396 #define BRW_SURFACEFORMAT_B5G6R5_UNORM_SRGB              0x101
00397 #define BRW_SURFACEFORMAT_B5G5R5A1_UNORM                 0x102
00398 #define BRW_SURFACEFORMAT_B5G5R5A1_UNORM_SRGB            0x103
00399 #define BRW_SURFACEFORMAT_B4G4R4A4_UNORM                 0x104
00400 #define BRW_SURFACEFORMAT_B4G4R4A4_UNORM_SRGB            0x105
00401 #define BRW_SURFACEFORMAT_R8G8_UNORM                     0x106
00402 #define BRW_SURFACEFORMAT_R8G8_SNORM                     0x107
00403 #define BRW_SURFACEFORMAT_R8G8_SINT                      0x108
00404 #define BRW_SURFACEFORMAT_R8G8_UINT                      0x109
00405 #define BRW_SURFACEFORMAT_R16_UNORM                      0x10A
00406 #define BRW_SURFACEFORMAT_R16_SNORM                      0x10B
00407 #define BRW_SURFACEFORMAT_R16_SINT                       0x10C
00408 #define BRW_SURFACEFORMAT_R16_UINT                       0x10D
00409 #define BRW_SURFACEFORMAT_R16_FLOAT                      0x10E
00410 #define BRW_SURFACEFORMAT_I16_UNORM                      0x111
00411 #define BRW_SURFACEFORMAT_L16_UNORM                      0x112
00412 #define BRW_SURFACEFORMAT_A16_UNORM                      0x113
00413 #define BRW_SURFACEFORMAT_L8A8_UNORM                     0x114
00414 #define BRW_SURFACEFORMAT_I16_FLOAT                      0x115
00415 #define BRW_SURFACEFORMAT_L16_FLOAT                      0x116
00416 #define BRW_SURFACEFORMAT_A16_FLOAT                      0x117
00417 #define BRW_SURFACEFORMAT_R5G5_SNORM_B6_UNORM            0x119
00418 #define BRW_SURFACEFORMAT_B5G5R5X1_UNORM                 0x11A
00419 #define BRW_SURFACEFORMAT_B5G5R5X1_UNORM_SRGB            0x11B
00420 #define BRW_SURFACEFORMAT_R8G8_SSCALED                   0x11C
00421 #define BRW_SURFACEFORMAT_R8G8_USCALED                   0x11D
00422 #define BRW_SURFACEFORMAT_R16_SSCALED                    0x11E
00423 #define BRW_SURFACEFORMAT_R16_USCALED                    0x11F
00424 #define BRW_SURFACEFORMAT_R8_UNORM                       0x140
00425 #define BRW_SURFACEFORMAT_R8_SNORM                       0x141
00426 #define BRW_SURFACEFORMAT_R8_SINT                        0x142
00427 #define BRW_SURFACEFORMAT_R8_UINT                        0x143
00428 #define BRW_SURFACEFORMAT_A8_UNORM                       0x144
00429 #define BRW_SURFACEFORMAT_I8_UNORM                       0x145
00430 #define BRW_SURFACEFORMAT_L8_UNORM                       0x146
00431 #define BRW_SURFACEFORMAT_P4A4_UNORM                     0x147
00432 #define BRW_SURFACEFORMAT_A4P4_UNORM                     0x148
00433 #define BRW_SURFACEFORMAT_R8_SSCALED                     0x149
00434 #define BRW_SURFACEFORMAT_R8_USCALED                     0x14A
00435 #define BRW_SURFACEFORMAT_R1_UINT                        0x181
00436 #define BRW_SURFACEFORMAT_YCRCB_NORMAL                   0x182
00437 #define BRW_SURFACEFORMAT_YCRCB_SWAPUVY                  0x183
00438 #define BRW_SURFACEFORMAT_BC1_UNORM                      0x186
00439 #define BRW_SURFACEFORMAT_BC2_UNORM                      0x187
00440 #define BRW_SURFACEFORMAT_BC3_UNORM                      0x188
00441 #define BRW_SURFACEFORMAT_BC4_UNORM                      0x189
00442 #define BRW_SURFACEFORMAT_BC5_UNORM                      0x18A
00443 #define BRW_SURFACEFORMAT_BC1_UNORM_SRGB                 0x18B
00444 #define BRW_SURFACEFORMAT_BC2_UNORM_SRGB                 0x18C
00445 #define BRW_SURFACEFORMAT_BC3_UNORM_SRGB                 0x18D
00446 #define BRW_SURFACEFORMAT_MONO8                          0x18E
00447 #define BRW_SURFACEFORMAT_YCRCB_SWAPUV                   0x18F
00448 #define BRW_SURFACEFORMAT_YCRCB_SWAPY                    0x190
00449 #define BRW_SURFACEFORMAT_DXT1_RGB                       0x191
00450 #define BRW_SURFACEFORMAT_FXT1                           0x192
00451 #define BRW_SURFACEFORMAT_R8G8B8_UNORM                   0x193
00452 #define BRW_SURFACEFORMAT_R8G8B8_SNORM                   0x194
00453 #define BRW_SURFACEFORMAT_R8G8B8_SSCALED                 0x195
00454 #define BRW_SURFACEFORMAT_R8G8B8_USCALED                 0x196
00455 #define BRW_SURFACEFORMAT_R64G64B64A64_FLOAT             0x197
00456 #define BRW_SURFACEFORMAT_R64G64B64_FLOAT                0x198
00457 #define BRW_SURFACEFORMAT_BC4_SNORM                      0x199
00458 #define BRW_SURFACEFORMAT_BC5_SNORM                      0x19A
00459 #define BRW_SURFACEFORMAT_R16G16B16_UNORM                0x19C
00460 #define BRW_SURFACEFORMAT_R16G16B16_SNORM                0x19D
00461 #define BRW_SURFACEFORMAT_R16G16B16_SSCALED              0x19E
00462 #define BRW_SURFACEFORMAT_R16G16B16_USCALED              0x19F
00463 
00464 #define BRW_SURFACERETURNFORMAT_FLOAT32  0
00465 #define BRW_SURFACERETURNFORMAT_S1       1
00466 
00467 #define BRW_SURFACE_1D      0
00468 #define BRW_SURFACE_2D      1
00469 #define BRW_SURFACE_3D      2
00470 #define BRW_SURFACE_CUBE    3
00471 #define BRW_SURFACE_BUFFER  4
00472 #define BRW_SURFACE_NULL    7
00473 
00474 #define BRW_TEXCOORDMODE_WRAP            0
00475 #define BRW_TEXCOORDMODE_MIRROR          1
00476 #define BRW_TEXCOORDMODE_CLAMP           2
00477 #define BRW_TEXCOORDMODE_CUBE            3
00478 #define BRW_TEXCOORDMODE_CLAMP_BORDER    4
00479 #define BRW_TEXCOORDMODE_MIRROR_ONCE     5
00480 
00481 #define BRW_THREAD_PRIORITY_NORMAL   0
00482 #define BRW_THREAD_PRIORITY_HIGH     1
00483 
00484 #define BRW_TILEWALK_XMAJOR                 0
00485 #define BRW_TILEWALK_YMAJOR                 1
00486 
00487 #define BRW_VERTEX_SUBPIXEL_PRECISION_8BITS  0
00488 #define BRW_VERTEX_SUBPIXEL_PRECISION_4BITS  1
00489 
00490 #define BRW_VERTEXBUFFER_ACCESS_VERTEXDATA     0
00491 #define BRW_VERTEXBUFFER_ACCESS_INSTANCEDATA   1
00492 
00493 #define BRW_VFCOMPONENT_NOSTORE      0
00494 #define BRW_VFCOMPONENT_STORE_SRC    1
00495 #define BRW_VFCOMPONENT_STORE_0      2
00496 #define BRW_VFCOMPONENT_STORE_1_FLT  3
00497 #define BRW_VFCOMPONENT_STORE_1_INT  4
00498 #define BRW_VFCOMPONENT_STORE_VID    5
00499 #define BRW_VFCOMPONENT_STORE_IID    6
00500 #define BRW_VFCOMPONENT_STORE_PID    7
00501 
00502 
00503 
00504 /* Execution Unit (EU) defines
00505  */
00506 
00507 #define BRW_ALIGN_1   0
00508 #define BRW_ALIGN_16  1
00509 
00510 #define BRW_ADDRESS_DIRECT                        0
00511 #define BRW_ADDRESS_REGISTER_INDIRECT_REGISTER    1
00512 
00513 #define BRW_CHANNEL_X     0
00514 #define BRW_CHANNEL_Y     1
00515 #define BRW_CHANNEL_Z     2
00516 #define BRW_CHANNEL_W     3
00517 
00518 #define BRW_COMPRESSION_NONE          0
00519 #define BRW_COMPRESSION_2NDHALF       1
00520 #define BRW_COMPRESSION_COMPRESSED    2
00521 
00522 #define BRW_CONDITIONAL_NONE  0
00523 #define BRW_CONDITIONAL_Z     1
00524 #define BRW_CONDITIONAL_NZ    2
00525 #define BRW_CONDITIONAL_EQ    1 /* Z */
00526 #define BRW_CONDITIONAL_NEQ   2 /* NZ */
00527 #define BRW_CONDITIONAL_G     3
00528 #define BRW_CONDITIONAL_GE    4
00529 #define BRW_CONDITIONAL_L     5
00530 #define BRW_CONDITIONAL_LE    6
00531 #define BRW_CONDITIONAL_C     7
00532 #define BRW_CONDITIONAL_O     8
00533 
00534 #define BRW_DEBUG_NONE        0
00535 #define BRW_DEBUG_BREAKPOINT  1
00536 
00537 #define BRW_DEPENDENCY_NORMAL         0
00538 #define BRW_DEPENDENCY_NOTCLEARED     1
00539 #define BRW_DEPENDENCY_NOTCHECKED     2
00540 #define BRW_DEPENDENCY_DISABLE        3
00541 
00542 #define BRW_EXECUTE_1     0
00543 #define BRW_EXECUTE_2     1
00544 #define BRW_EXECUTE_4     2
00545 #define BRW_EXECUTE_8     3
00546 #define BRW_EXECUTE_16    4
00547 #define BRW_EXECUTE_32    5
00548 
00549 #define BRW_HORIZONTAL_STRIDE_0   0
00550 #define BRW_HORIZONTAL_STRIDE_1   1
00551 #define BRW_HORIZONTAL_STRIDE_2   2
00552 #define BRW_HORIZONTAL_STRIDE_4   3
00553 
00554 #define BRW_INSTRUCTION_NORMAL    0
00555 #define BRW_INSTRUCTION_SATURATE  1
00556 
00557 #define BRW_MASK_ENABLE   0
00558 #define BRW_MASK_DISABLE  1
00559 
00560 #define BRW_OPCODE_MOV        1
00561 #define BRW_OPCODE_SEL        2
00562 #define BRW_OPCODE_NOT        4
00563 #define BRW_OPCODE_AND        5
00564 #define BRW_OPCODE_OR         6
00565 #define BRW_OPCODE_XOR        7
00566 #define BRW_OPCODE_SHR        8
00567 #define BRW_OPCODE_SHL        9
00568 #define BRW_OPCODE_RSR        10
00569 #define BRW_OPCODE_RSL        11
00570 #define BRW_OPCODE_ASR        12
00571 #define BRW_OPCODE_CMP        16
00572 #define BRW_OPCODE_JMPI       32
00573 #define BRW_OPCODE_IF         34
00574 #define BRW_OPCODE_IFF        35
00575 #define BRW_OPCODE_ELSE       36
00576 #define BRW_OPCODE_ENDIF      37
00577 #define BRW_OPCODE_DO         38
00578 #define BRW_OPCODE_WHILE      39
00579 #define BRW_OPCODE_BREAK      40
00580 #define BRW_OPCODE_CONTINUE   41
00581 #define BRW_OPCODE_HALT       42
00582 #define BRW_OPCODE_MSAVE      44
00583 #define BRW_OPCODE_MRESTORE   45
00584 #define BRW_OPCODE_PUSH       46
00585 #define BRW_OPCODE_POP        47
00586 #define BRW_OPCODE_WAIT       48
00587 #define BRW_OPCODE_SEND       49
00588 #define BRW_OPCODE_ADD        64
00589 #define BRW_OPCODE_MUL        65
00590 #define BRW_OPCODE_AVG        66
00591 #define BRW_OPCODE_FRC        67
00592 #define BRW_OPCODE_RNDU       68
00593 #define BRW_OPCODE_RNDD       69
00594 #define BRW_OPCODE_RNDE       70
00595 #define BRW_OPCODE_RNDZ       71
00596 #define BRW_OPCODE_MAC        72
00597 #define BRW_OPCODE_MACH       73
00598 #define BRW_OPCODE_LZD        74
00599 #define BRW_OPCODE_SAD2       80
00600 #define BRW_OPCODE_SADA2      81
00601 #define BRW_OPCODE_DP4        84
00602 #define BRW_OPCODE_DPH        85
00603 #define BRW_OPCODE_DP3        86
00604 #define BRW_OPCODE_DP2        87
00605 #define BRW_OPCODE_DPA2       88
00606 #define BRW_OPCODE_LINE       89
00607 #define BRW_OPCODE_NOP        126
00608 
00609 #define BRW_PREDICATE_NONE             0
00610 #define BRW_PREDICATE_NORMAL           1
00611 #define BRW_PREDICATE_ALIGN1_ANYV             2
00612 #define BRW_PREDICATE_ALIGN1_ALLV             3
00613 #define BRW_PREDICATE_ALIGN1_ANY2H            4
00614 #define BRW_PREDICATE_ALIGN1_ALL2H            5
00615 #define BRW_PREDICATE_ALIGN1_ANY4H            6
00616 #define BRW_PREDICATE_ALIGN1_ALL4H            7
00617 #define BRW_PREDICATE_ALIGN1_ANY8H            8
00618 #define BRW_PREDICATE_ALIGN1_ALL8H            9
00619 #define BRW_PREDICATE_ALIGN1_ANY16H           10
00620 #define BRW_PREDICATE_ALIGN1_ALL16H           11
00621 #define BRW_PREDICATE_ALIGN16_REPLICATE_X     2
00622 #define BRW_PREDICATE_ALIGN16_REPLICATE_Y     3
00623 #define BRW_PREDICATE_ALIGN16_REPLICATE_Z     4
00624 #define BRW_PREDICATE_ALIGN16_REPLICATE_W     5
00625 #define BRW_PREDICATE_ALIGN16_ANY4H           6
00626 #define BRW_PREDICATE_ALIGN16_ALL4H           7
00627 
00628 #define BRW_ARCHITECTURE_REGISTER_FILE    0
00629 #define BRW_GENERAL_REGISTER_FILE         1
00630 #define BRW_MESSAGE_REGISTER_FILE         2
00631 #define BRW_IMMEDIATE_VALUE               3
00632 
00633 #define BRW_REGISTER_TYPE_UD  0
00634 #define BRW_REGISTER_TYPE_D   1
00635 #define BRW_REGISTER_TYPE_UW  2
00636 #define BRW_REGISTER_TYPE_W   3
00637 #define BRW_REGISTER_TYPE_UB  4
00638 #define BRW_REGISTER_TYPE_B   5
00639 #define BRW_REGISTER_TYPE_VF  5 /* packed float vector, immediates only? */
00640 #define BRW_REGISTER_TYPE_HF  6
00641 #define BRW_REGISTER_TYPE_V   6 /* packed int vector, immediates only, uword dest only */
00642 #define BRW_REGISTER_TYPE_F   7
00643 
00644 #define BRW_ARF_NULL                  0x00
00645 #define BRW_ARF_ADDRESS               0x10
00646 #define BRW_ARF_ACCUMULATOR           0x20
00647 #define BRW_ARF_FLAG                  0x30
00648 #define BRW_ARF_MASK                  0x40
00649 #define BRW_ARF_MASK_STACK            0x50
00650 #define BRW_ARF_MASK_STACK_DEPTH      0x60
00651 #define BRW_ARF_STATE                 0x70
00652 #define BRW_ARF_CONTROL               0x80
00653 #define BRW_ARF_NOTIFICATION_COUNT    0x90
00654 #define BRW_ARF_IP                    0xA0
00655 
00656 #define BRW_AMASK   0
00657 #define BRW_IMASK   1
00658 #define BRW_LMASK   2
00659 #define BRW_CMASK   3
00660 
00661 
00662 
00663 #define BRW_THREAD_NORMAL     0
00664 #define BRW_THREAD_ATOMIC     1
00665 #define BRW_THREAD_SWITCH     2
00666 
00667 #define BRW_VERTICAL_STRIDE_0                 0
00668 #define BRW_VERTICAL_STRIDE_1                 1
00669 #define BRW_VERTICAL_STRIDE_2                 2
00670 #define BRW_VERTICAL_STRIDE_4                 3
00671 #define BRW_VERTICAL_STRIDE_8                 4
00672 #define BRW_VERTICAL_STRIDE_16                5
00673 #define BRW_VERTICAL_STRIDE_32                6
00674 #define BRW_VERTICAL_STRIDE_64                7
00675 #define BRW_VERTICAL_STRIDE_128               8
00676 #define BRW_VERTICAL_STRIDE_256               9
00677 #define BRW_VERTICAL_STRIDE_ONE_DIMENSIONAL   0xF
00678 
00679 #define BRW_WIDTH_1       0
00680 #define BRW_WIDTH_2       1
00681 #define BRW_WIDTH_4       2
00682 #define BRW_WIDTH_8       3
00683 #define BRW_WIDTH_16      4
00684 
00685 #define BRW_STATELESS_BUFFER_BOUNDARY_1K      0
00686 #define BRW_STATELESS_BUFFER_BOUNDARY_2K      1
00687 #define BRW_STATELESS_BUFFER_BOUNDARY_4K      2
00688 #define BRW_STATELESS_BUFFER_BOUNDARY_8K      3
00689 #define BRW_STATELESS_BUFFER_BOUNDARY_16K     4
00690 #define BRW_STATELESS_BUFFER_BOUNDARY_32K     5
00691 #define BRW_STATELESS_BUFFER_BOUNDARY_64K     6
00692 #define BRW_STATELESS_BUFFER_BOUNDARY_128K    7
00693 #define BRW_STATELESS_BUFFER_BOUNDARY_256K    8
00694 #define BRW_STATELESS_BUFFER_BOUNDARY_512K    9
00695 #define BRW_STATELESS_BUFFER_BOUNDARY_1M      10
00696 #define BRW_STATELESS_BUFFER_BOUNDARY_2M      11
00697 
00698 #define BRW_POLYGON_FACING_FRONT      0
00699 #define BRW_POLYGON_FACING_BACK       1
00700 
00701 #define BRW_MESSAGE_TARGET_NULL               0
00702 #define BRW_MESSAGE_TARGET_MATH               1
00703 #define BRW_MESSAGE_TARGET_SAMPLER            2
00704 #define BRW_MESSAGE_TARGET_GATEWAY            3
00705 #define BRW_MESSAGE_TARGET_DATAPORT_READ      4
00706 #define BRW_MESSAGE_TARGET_DATAPORT_WRITE     5
00707 #define BRW_MESSAGE_TARGET_URB                6
00708 #define BRW_MESSAGE_TARGET_THREAD_SPAWNER     7
00709 
00710 #define BRW_SAMPLER_RETURN_FORMAT_FLOAT32     0
00711 #define BRW_SAMPLER_RETURN_FORMAT_UINT32      2
00712 #define BRW_SAMPLER_RETURN_FORMAT_SINT32      3
00713 
00714 #define BRW_SAMPLER_MESSAGE_SIMD8_SAMPLE              0
00715 #define BRW_SAMPLER_MESSAGE_SIMD16_SAMPLE             0
00716 #define BRW_SAMPLER_MESSAGE_SIMD16_SAMPLE_BIAS        0
00717 #define BRW_SAMPLER_MESSAGE_SIMD8_KILLPIX             1
00718 #define BRW_SAMPLER_MESSAGE_SIMD4X2_SAMPLE_LOD        1
00719 #define BRW_SAMPLER_MESSAGE_SIMD16_SAMPLE_LOD         1
00720 #define BRW_SAMPLER_MESSAGE_SIMD4X2_SAMPLE_GRADIENTS  2
00721 #define BRW_SAMPLER_MESSAGE_SIMD8_SAMPLE_GRADIENTS    2
00722 #define BRW_SAMPLER_MESSAGE_SIMD4X2_SAMPLE_COMPARE    0
00723 #define BRW_SAMPLER_MESSAGE_SIMD16_SAMPLE_COMPARE     2
00724 #define BRW_SAMPLER_MESSAGE_SIMD4X2_RESINFO           2
00725 #define BRW_SAMPLER_MESSAGE_SIMD8_RESINFO             2
00726 #define BRW_SAMPLER_MESSAGE_SIMD16_RESINFO            2
00727 #define BRW_SAMPLER_MESSAGE_SIMD4X2_LD                3
00728 #define BRW_SAMPLER_MESSAGE_SIMD8_LD                  3
00729 #define BRW_SAMPLER_MESSAGE_SIMD16_LD                 3
00730 
00731 #define BRW_DATAPORT_OWORD_BLOCK_1_OWORDLOW   0
00732 #define BRW_DATAPORT_OWORD_BLOCK_1_OWORDHIGH  1
00733 #define BRW_DATAPORT_OWORD_BLOCK_2_OWORDS     2
00734 #define BRW_DATAPORT_OWORD_BLOCK_4_OWORDS     3
00735 #define BRW_DATAPORT_OWORD_BLOCK_8_OWORDS     4
00736 
00737 #define BRW_DATAPORT_OWORD_DUAL_BLOCK_1OWORD     0
00738 #define BRW_DATAPORT_OWORD_DUAL_BLOCK_4OWORDS    2
00739 
00740 #define BRW_DATAPORT_DWORD_SCATTERED_BLOCK_8DWORDS   2
00741 #define BRW_DATAPORT_DWORD_SCATTERED_BLOCK_16DWORDS  3
00742 
00743 #define BRW_DATAPORT_READ_MESSAGE_OWORD_BLOCK_READ          0
00744 #define BRW_DATAPORT_READ_MESSAGE_OWORD_DUAL_BLOCK_READ     1
00745 #define BRW_DATAPORT_READ_MESSAGE_DWORD_BLOCK_READ          2
00746 #define BRW_DATAPORT_READ_MESSAGE_DWORD_SCATTERED_READ      3
00747 
00748 #define BRW_DATAPORT_READ_TARGET_DATA_CACHE      0
00749 #define BRW_DATAPORT_READ_TARGET_RENDER_CACHE    1
00750 #define BRW_DATAPORT_READ_TARGET_SAMPLER_CACHE   2
00751 
00752 #define BRW_DATAPORT_RENDER_TARGET_WRITE_SIMD16_SINGLE_SOURCE                0
00753 #define BRW_DATAPORT_RENDER_TARGET_WRITE_SIMD16_SINGLE_SOURCE_REPLICATED     1
00754 #define BRW_DATAPORT_RENDER_TARGET_WRITE_SIMD8_DUAL_SOURCE_SUBSPAN01         2
00755 #define BRW_DATAPORT_RENDER_TARGET_WRITE_SIMD8_DUAL_SOURCE_SUBSPAN23         3
00756 #define BRW_DATAPORT_RENDER_TARGET_WRITE_SIMD8_SINGLE_SOURCE_SUBSPAN01       4
00757 
00758 #define BRW_DATAPORT_WRITE_MESSAGE_OWORD_BLOCK_WRITE                0
00759 #define BRW_DATAPORT_WRITE_MESSAGE_OWORD_DUAL_BLOCK_WRITE           1
00760 #define BRW_DATAPORT_WRITE_MESSAGE_DWORD_BLOCK_WRITE                2
00761 #define BRW_DATAPORT_WRITE_MESSAGE_DWORD_SCATTERED_WRITE            3
00762 #define BRW_DATAPORT_WRITE_MESSAGE_RENDER_TARGET_WRITE              4
00763 #define BRW_DATAPORT_WRITE_MESSAGE_STREAMED_VERTEX_BUFFER_WRITE     5
00764 #define BRW_DATAPORT_WRITE_MESSAGE_FLUSH_RENDER_CACHE               7
00765 
00766 #define BRW_MATH_FUNCTION_INV                              1
00767 #define BRW_MATH_FUNCTION_LOG                              2
00768 #define BRW_MATH_FUNCTION_EXP                              3
00769 #define BRW_MATH_FUNCTION_SQRT                             4
00770 #define BRW_MATH_FUNCTION_RSQ                              5
00771 #define BRW_MATH_FUNCTION_SIN                              6 /* was 7 */
00772 #define BRW_MATH_FUNCTION_COS                              7 /* was 8 */
00773 #define BRW_MATH_FUNCTION_SINCOS                           8 /* was 6 */
00774 #define BRW_MATH_FUNCTION_TAN                              9
00775 #define BRW_MATH_FUNCTION_POW                              10
00776 #define BRW_MATH_FUNCTION_INT_DIV_QUOTIENT_AND_REMAINDER   11
00777 #define BRW_MATH_FUNCTION_INT_DIV_QUOTIENT                 12
00778 #define BRW_MATH_FUNCTION_INT_DIV_REMAINDER                13
00779 
00780 #define BRW_MATH_INTEGER_UNSIGNED     0
00781 #define BRW_MATH_INTEGER_SIGNED       1
00782 
00783 #define BRW_MATH_PRECISION_FULL        0
00784 #define BRW_MATH_PRECISION_PARTIAL     1
00785 
00786 #define BRW_MATH_SATURATE_NONE         0
00787 #define BRW_MATH_SATURATE_SATURATE     1
00788 
00789 #define BRW_MATH_DATA_VECTOR  0
00790 #define BRW_MATH_DATA_SCALAR  1
00791 
00792 #define BRW_URB_OPCODE_WRITE  0
00793 
00794 #define BRW_URB_SWIZZLE_NONE          0
00795 #define BRW_URB_SWIZZLE_INTERLEAVE    1
00796 #define BRW_URB_SWIZZLE_TRANSPOSE     2
00797 
00798 #define BRW_SCRATCH_SPACE_SIZE_1K     0
00799 #define BRW_SCRATCH_SPACE_SIZE_2K     1
00800 #define BRW_SCRATCH_SPACE_SIZE_4K     2
00801 #define BRW_SCRATCH_SPACE_SIZE_8K     3
00802 #define BRW_SCRATCH_SPACE_SIZE_16K    4
00803 #define BRW_SCRATCH_SPACE_SIZE_32K    5
00804 #define BRW_SCRATCH_SPACE_SIZE_64K    6
00805 #define BRW_SCRATCH_SPACE_SIZE_128K   7
00806 #define BRW_SCRATCH_SPACE_SIZE_256K   8
00807 #define BRW_SCRATCH_SPACE_SIZE_512K   9
00808 #define BRW_SCRATCH_SPACE_SIZE_1M     10
00809 #define BRW_SCRATCH_SPACE_SIZE_2M     11
00810 
00811 
00812 
00813 
00814 #define CMD_URB_FENCE                 0x6000
00815 #define CMD_CONST_BUFFER_STATE        0x6001
00816 #define CMD_CONST_BUFFER              0x6002
00817 
00818 #define CMD_STATE_BASE_ADDRESS        0x6101
00819 #define CMD_STATE_INSN_POINTER        0x6102
00820 #define CMD_PIPELINE_SELECT           0x6104
00821 
00822 #define CMD_PIPELINED_STATE_POINTERS  0x7800
00823 #define CMD_BINDING_TABLE_PTRS        0x7801
00824 #define CMD_VERTEX_BUFFER             0x7808
00825 #define CMD_VERTEX_ELEMENT            0x7809
00826 #define CMD_INDEX_BUFFER              0x780a
00827 #define CMD_VF_STATISTICS             0x780b
00828 
00829 #define CMD_DRAW_RECT                 0x7900
00830 #define CMD_BLEND_CONSTANT_COLOR      0x7901
00831 #define CMD_CHROMA_KEY                0x7904
00832 #define CMD_DEPTH_BUFFER              0x7905
00833 #define CMD_POLY_STIPPLE_OFFSET       0x7906
00834 #define CMD_POLY_STIPPLE_PATTERN      0x7907
00835 #define CMD_LINE_STIPPLE_PATTERN      0x7908
00836 #define CMD_GLOBAL_DEPTH_OFFSET_CLAMP 0x7909
00837 
00838 #define CMD_PIPE_CONTROL              0x7a00
00839 
00840 #define CMD_3D_PRIM                   0x7b00
00841 
00842 #define CMD_MI_FLUSH                  0x0200
00843 
00844 
00845 /* Various values from the R0 vertex header:
00846  */
00847 #define R02_PRIM_END    0x1
00848 #define R02_PRIM_START  0x2
00849 
00850 
00851 
00852 #endif

Generated on Tue Sep 29 06:25:16 2009 for Gallium3D by  doxygen 1.5.4