Debian Codegraph @

xvmc/i830_reg.h

raw symbols SCIP
1 /**************************************************************************
2 *
3 * Copyright 2003 Tungsten Graphics, Inc., Cedar Park, Texas.
4 * All Rights Reserved.
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the
8 * "Software"), to deal in the Software without restriction, including
9 * without limitation the rights to use, copy, modify, merge, publish,
10 * distribute, sub license, and/or sell copies of the Software, and to
11 * permit persons to whom the Software is furnished to do so, subject to
12 * the following conditions:
13 *
14 * The above copyright notice and this permission notice (including the
15 * next paragraph) shall be included in all copies or substantial portions
16 * of the Software.
17 *
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
19 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
21 * IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR
22 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
23 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
24 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 *
26 **************************************************************************/
27
28 #ifndef _I830_REG_H_
29 #define _I830_REG_H_cxx . . $ `xvmc/i830_reg.h:29:9`!
30
31 #define I830_SET_FIELDcxx . . $ `xvmc/i830_reg.h:31:9`!( var, mask, value ) (var &= ~(mask), var |= value)
32
33 /* Flush */
34 #define MI_FLUSHcxx . . $ `xvmc/i830_reg.h:34:9`! (0x04<<23)
35 #define MI_FLUSH_DWcxx . . $ `xvmc/i830_reg.h:35:9`! (0x26<<23)
36
37 #define MI_WRITE_DIRTY_STATEcxx . . $ `xvmc/i830_reg.h:37:9`! (1<<4)
38 #define MI_END_SCENEcxx . . $ `xvmc/i830_reg.h:38:9`! (1<<3)
39 #define MI_GLOBAL_SNAPSHOT_COUNT_RESETcxx . . $ `xvmc/i830_reg.h:39:9`! (1<<3)
40 #define MI_INHIBIT_RENDER_CACHE_FLUSHcxx . . $ `xvmc/i830_reg.h:40:9`! (1<<2)
41 #define MI_STATE_INSTRUCTION_CACHE_FLUSHcxx . . $ `xvmc/i830_reg.h:41:9`! (1<<1)
42 #define MI_INVALIDATE_MAP_CACHEcxx . . $ `xvmc/i830_reg.h:42:9`! (1<<0)
43 /* broadwater flush bits */
44 #define BRW_MI_GLOBAL_SNAPSHOT_RESETcxx . . $ `xvmc/i830_reg.h:44:9`! (1 << 3)
45
46 #define MI_BATCH_BUFFER_ENDcxx . . $ `xvmc/i830_reg.h:46:9`! (0xA << 23)
47
48 /* Noop */
49 #define MI_NOOPcxx . . $ `xvmc/i830_reg.h:49:9`! 0x00
50 #define MI_NOOP_WRITE_IDcxx . . $ `xvmc/i830_reg.h:50:9`! (1<<22)
51 #define MI_NOOP_ID_MASKcxx . . $ `xvmc/i830_reg.h:51:9`! (1<<22 - 1)
52
53 /* Wait for Events */
54 #define MI_WAIT_FOR_EVENTcxx . . $ `xvmc/i830_reg.h:54:9`! (0x03<<23)
55 #define MI_WAIT_FOR_PIPEB_SVBLANKcxx . . $ `xvmc/i830_reg.h:55:9`! (1<<18)
56 #define MI_WAIT_FOR_PIPEA_SVBLANKcxx . . $ `xvmc/i830_reg.h:56:9`! (1<<17)
57 #define MI_WAIT_FOR_OVERLAY_FLIPcxx . . $ `xvmc/i830_reg.h:57:9`! (1<<16)
58 #define MI_WAIT_FOR_PIPEB_VBLANKcxx . . $ `xvmc/i830_reg.h:58:9`! (1<<7)
59 #define MI_WAIT_FOR_PIPEB_SCAN_LINE_WINDOWcxx . . $ `xvmc/i830_reg.h:59:9`! (1<<5)
60 #define MI_WAIT_FOR_PIPEA_VBLANKcxx . . $ `xvmc/i830_reg.h:60:9`! (1<<3)
61 #define MI_WAIT_FOR_PIPEA_SCAN_LINE_WINDOWcxx . . $ `xvmc/i830_reg.h:61:9`! (1<<1)
62
63 /* Set the scan line for MI_WAIT_FOR_PIPE?_SCAN_LINE_WINDOW */
64 #define MI_LOAD_SCAN_LINES_INCLcxx . . $ `xvmc/i830_reg.h:64:9`! (0x12<<23)
65 #define MI_LOAD_SCAN_LINES_DISPLAY_PIPEAcxx . . $ `xvmc/i830_reg.h:65:9`! (0)
66 #define MI_LOAD_SCAN_LINES_DISPLAY_PIPEBcxx . . $ `xvmc/i830_reg.h:66:9`! (0x1<<20)
67
68 /* BLT commands */
69 #define COLOR_BLT_CMDcxx . . $ `xvmc/i830_reg.h:69:9`! ((2<<29)|(0x40<<22)|(0x3))
70 #define COLOR_BLT_WRITE_ALPHAcxx . . $ `xvmc/i830_reg.h:70:9`! (1<<21)
71 #define COLOR_BLT_WRITE_RGBcxx . . $ `xvmc/i830_reg.h:71:9`! (1<<20)
72
73 #define XY_COLOR_BLT_CMDcxx . . $ `xvmc/i830_reg.h:73:9`! ((2<<29)|(0x50<<22)|(0x4))
74 #define XY_COLOR_BLT_WRITE_ALPHAcxx . . $ `xvmc/i830_reg.h:74:9`! (1<<21)
75 #define XY_COLOR_BLT_WRITE_RGBcxx . . $ `xvmc/i830_reg.h:75:9`! (1<<20)
76 #define XY_COLOR_BLT_TILEDcxx . . $ `xvmc/i830_reg.h:76:9`! (1<<11)
77
78 #define XY_SETUP_CLIP_BLT_CMDcxx . . $ `xvmc/i830_reg.h:78:9`! ((2<<29)|(3<<22)|1)
79
80 #define XY_SRC_COPY_BLT_CMDcxx . . $ `xvmc/i830_reg.h:80:9`! ((2<<29)|(0x53<<22)|6)
81 #define XY_SRC_COPY_BLT_WRITE_ALPHAcxx . . $ `xvmc/i830_reg.h:81:9`! (1<<21)
82 #define XY_SRC_COPY_BLT_WRITE_RGBcxx . . $ `xvmc/i830_reg.h:82:9`! (1<<20)
83 #define XY_SRC_COPY_BLT_SRC_TILEDcxx . . $ `xvmc/i830_reg.h:83:9`! (1<<15)
84 #define XY_SRC_COPY_BLT_DST_TILEDcxx . . $ `xvmc/i830_reg.h:84:9`! (1<<11)
85
86 #define SRC_COPY_BLT_CMDcxx . . $ `xvmc/i830_reg.h:86:9`! ((2<<29)|(0x43<<22)|0x4)
87 #define SRC_COPY_BLT_WRITE_ALPHAcxx . . $ `xvmc/i830_reg.h:87:9`! (1<<21)
88 #define SRC_COPY_BLT_WRITE_RGBcxx . . $ `xvmc/i830_reg.h:88:9`! (1<<20)
89
90 #define XY_PAT_BLT_IMMEDIATEcxx . . $ `xvmc/i830_reg.h:90:9`! ((2<<29)|(0x72<<22))
91
92 #define XY_MONO_PAT_BLT_CMDcxx . . $ `xvmc/i830_reg.h:92:9`! ((0x2<<29)|(0x52<<22)|0x7)
93 #define XY_MONO_PAT_VERT_SEEDcxx . . $ `xvmc/i830_reg.h:93:9`! ((1<<10)|(1<<9)|(1<<8))
94 #define XY_MONO_PAT_HORT_SEEDcxx . . $ `xvmc/i830_reg.h:94:9`! ((1<<14)|(1<<13)|(1<<12))
95 #define XY_MONO_PAT_BLT_WRITE_ALPHAcxx . . $ `xvmc/i830_reg.h:95:9`! (1<<21)
96 #define XY_MONO_PAT_BLT_WRITE_RGBcxx . . $ `xvmc/i830_reg.h:96:9`! (1<<20)
97
98 #define XY_MONO_SRC_BLT_CMDcxx . . $ `xvmc/i830_reg.h:98:9`! ((0x2<<29)|(0x54<<22)|(0x6))
99 #define XY_MONO_SRC_BLT_WRITE_ALPHAcxx . . $ `xvmc/i830_reg.h:99:9`! (1<<21)
100 #define XY_MONO_SRC_BLT_WRITE_RGBcxx . . $ `xvmc/i830_reg.h:100:9`! (1<<20)
101
102 #define CMD_3Dcxx . . $ `xvmc/i830_reg.h:102:9`! (0x3<<29)
103
104 #define PRIM3D_INLINEcxx . . $ `xvmc/i830_reg.h:104:9`! (CMD_3D | (0x1f<<24))
105 #define PRIM3D_TRILISTcxx . . $ `xvmc/i830_reg.h:105:9`! (0x0<<18)
106 #define PRIM3D_TRISTRIPcxx . . $ `xvmc/i830_reg.h:106:9`! (0x1<<18)
107 #define PRIM3D_TRISTRIP_RVRSEcxx . . $ `xvmc/i830_reg.h:107:9`! (0x2<<18)
108 #define PRIM3D_TRIFANcxx . . $ `xvmc/i830_reg.h:108:9`! (0x3<<18)
109 #define PRIM3D_POLYcxx . . $ `xvmc/i830_reg.h:109:9`! (0x4<<18)
110 #define PRIM3D_LINELISTcxx . . $ `xvmc/i830_reg.h:110:9`! (0x5<<18)
111 #define PRIM3D_LINESTRIPcxx . . $ `xvmc/i830_reg.h:111:9`! (0x6<<18)
112 #define PRIM3D_RECTLISTcxx . . $ `xvmc/i830_reg.h:112:9`! (0x7<<18)
113 #define PRIM3D_POINTLISTcxx . . $ `xvmc/i830_reg.h:113:9`! (0x8<<18)
114 #define PRIM3D_DIBcxx . . $ `xvmc/i830_reg.h:114:9`! (0x9<<18)
115 #define PRIM3D_CLEAR_RECTcxx . . $ `xvmc/i830_reg.h:115:9`! (0xa<<18)
116 #define PRIM3D_ZONE_INITcxx . . $ `xvmc/i830_reg.h:116:9`! (0xd<<18)
117 #define PRIM3D_MASKcxx . . $ `xvmc/i830_reg.h:117:9`! (0x1f<<18)
118
119 #define _3DSTATE_AA_CMDcxx . . $ `xvmc/i830_reg.h:119:9`! (CMD_3D | (0x06<<24))
120 #define AA_LINE_ECAAR_WIDTH_ENABLEcxx . . $ `xvmc/i830_reg.h:120:9`! (1<<16)
121 #define AA_LINE_ECAAR_WIDTH_0_5cxx . . $ `xvmc/i830_reg.h:121:9`! 0
122 #define AA_LINE_ECAAR_WIDTH_1_0cxx . . $ `xvmc/i830_reg.h:122:9`! (1<<14)
123 #define AA_LINE_ECAAR_WIDTH_2_0cxx . . $ `xvmc/i830_reg.h:123:9`! (2<<14)
124 #define AA_LINE_ECAAR_WIDTH_4_0cxx . . $ `xvmc/i830_reg.h:124:9`! (3<<14)
125 #define AA_LINE_REGION_WIDTH_ENABLEcxx . . $ `xvmc/i830_reg.h:125:9`! (1<<8)
126 #define AA_LINE_REGION_WIDTH_0_5cxx . . $ `xvmc/i830_reg.h:126:9`! 0
127 #define AA_LINE_REGION_WIDTH_1_0cxx . . $ `xvmc/i830_reg.h:127:9`! (1<<6)
128 #define AA_LINE_REGION_WIDTH_2_0cxx . . $ `xvmc/i830_reg.h:128:9`! (2<<6)
129 #define AA_LINE_REGION_WIDTH_4_0cxx . . $ `xvmc/i830_reg.h:129:9`! (3<<6)
130 #define AA_LINE_ENABLEcxx . . $ `xvmc/i830_reg.h:130:9`! ((1<<1) | 1)
131 #define AA_LINE_DISABLEcxx . . $ `xvmc/i830_reg.h:131:9`! (1<<1)
132
133 #define _3DSTATE_BUF_INFO_CMDcxx . . $ `xvmc/i830_reg.h:133:9`! (CMD_3D | (0x1d<<24) | (0x8e<<16) | 1)
134 /* Dword 1 */
135 #define BUF_3D_ID_COLOR_BACKcxx . . $ `xvmc/i830_reg.h:135:9`! (0x3<<24)
136 #define BUF_3D_ID_DEPTHcxx . . $ `xvmc/i830_reg.h:136:9`! (0x7<<24)
137 #define BUF_3D_USE_FENCEcxx . . $ `xvmc/i830_reg.h:137:9`! (1<<23)
138 #define BUF_3D_TILED_SURFACEcxx . . $ `xvmc/i830_reg.h:138:9`! (1<<22)
139 #define BUF_3D_TILE_WALK_Xcxx . . $ `xvmc/i830_reg.h:139:9`! 0
140 #define BUF_3D_TILE_WALK_Ycxx . . $ `xvmc/i830_reg.h:140:9`! (1<<21)
141 #define BUF_3D_PITCHcxx . . $ `xvmc/i830_reg.h:141:9`!(x) (((x)/4)<<2)
142 /* Dword 2 */
143 #define BUF_3D_ADDRcxx . . $ `xvmc/i830_reg.h:143:9`!(x) ((x) & ~0x3)
144
145 #define _3DSTATE_COLOR_FACTOR_CMDcxx . . $ `xvmc/i830_reg.h:145:9`! (CMD_3D | (0x1d<<24) | (0x1<<16))
146
147 #define _3DSTATE_COLOR_FACTOR_N_CMDcxx . . $ `xvmc/i830_reg.h:147:9`!(stage) (CMD_3D | (0x1d<<24) | \
148 ((0x90+(stage))<<16))
149
150 #define _3DSTATE_CONST_BLEND_COLOR_CMDcxx . . $ `xvmc/i830_reg.h:150:9`! (CMD_3D | (0x1d<<24) | (0x88<<16))
151
152 #define _3DSTATE_DFLT_DIFFUSE_CMDcxx . . $ `xvmc/i830_reg.h:152:9`! (CMD_3D | (0x1d<<24) | (0x99<<16))
153
154 #define _3DSTATE_DFLT_SPEC_CMDcxx . . $ `xvmc/i830_reg.h:154:9`! (CMD_3D | (0x1d<<24) | (0x9a<<16))
155
156 #define _3DSTATE_DFLT_Z_CMDcxx . . $ `xvmc/i830_reg.h:156:9`! (CMD_3D | (0x1d<<24) | (0x98<<16))
157
158 #define _3DSTATE_DST_BUF_VARS_CMDcxx . . $ `xvmc/i830_reg.h:158:9`! (CMD_3D | (0x1d<<24) | (0x85<<16))
159 /* Dword 1 */
160 #define DSTORG_HORT_BIAScxx . . $ `xvmc/i830_reg.h:160:9`!(x) ((x)<<20)
161 #define DSTORG_VERT_BIAScxx . . $ `xvmc/i830_reg.h:161:9`!(x) ((x)<<16)
162 #define COLOR_4_2_2_CHNL_WRT_ALLcxx . . $ `xvmc/i830_reg.h:162:9`! 0
163 #define COLOR_4_2_2_CHNL_WRT_Ycxx . . $ `xvmc/i830_reg.h:163:9`! (1<<12)
164 #define COLOR_4_2_2_CHNL_WRT_CRcxx . . $ `xvmc/i830_reg.h:164:9`! (2<<12)
165 #define COLOR_4_2_2_CHNL_WRT_CBcxx . . $ `xvmc/i830_reg.h:165:9`! (3<<12)
166 #define COLOR_4_2_2_CHNL_WRT_CRCBcxx . . $ `xvmc/i830_reg.h:166:9`! (4<<12)
167 #define COLR_BUF_8BITcxx . . $ `xvmc/i830_reg.h:167:9`! 0
168 #define COLR_BUF_RGB555cxx . . $ `xvmc/i830_reg.h:168:9`! (1<<8)
169 #define COLR_BUF_RGB565cxx . . $ `xvmc/i830_reg.h:169:9`! (2<<8)
170 #define COLR_BUF_ARGB8888cxx . . $ `xvmc/i830_reg.h:170:9`! (3<<8)
171 #define COLR_BUF_ARGB4444cxx . . $ `xvmc/i830_reg.h:171:9`! (8<<8)
172 #define COLR_BUF_ARGB1555cxx . . $ `xvmc/i830_reg.h:172:9`! (9<<8)
173 #define DEPTH_IS_Zcxx . . $ `xvmc/i830_reg.h:173:9`! 0
174 #define DEPTH_IS_Wcxx . . $ `xvmc/i830_reg.h:174:9`! (1<<6)
175 #define DEPTH_FRMT_16_FIXEDcxx . . $ `xvmc/i830_reg.h:175:9`! 0
176 #define DEPTH_FRMT_16_FLOATcxx . . $ `xvmc/i830_reg.h:176:9`! (1<<2)
177 #define DEPTH_FRMT_24_FIXED_8_OTHERcxx . . $ `xvmc/i830_reg.h:177:9`! (2<<2)
178 #define DEPTH_FRMT_24_FLOAT_8_OTHERcxx . . $ `xvmc/i830_reg.h:178:9`! (3<<2)
179 #define VERT_LINE_STRIDE_1cxx . . $ `xvmc/i830_reg.h:179:9`! (1<<1)
180 #define VERT_LINE_STRIDE_0cxx . . $ `xvmc/i830_reg.h:180:9`! 0
181 #define VERT_LINE_STRIDE_OFS_1cxx . . $ `xvmc/i830_reg.h:181:9`! 1
182 #define VERT_LINE_STRIDE_OFS_0cxx . . $ `xvmc/i830_reg.h:182:9`! 0
183
184 #define _3DSTATE_DRAW_RECT_CMDcxx . . $ `xvmc/i830_reg.h:184:9`! (CMD_3D|(0x1d<<24)|(0x80<<16)|3)
185 /* Dword 1 */
186 #define DRAW_RECT_DIS_DEPTH_OFScxx . . $ `xvmc/i830_reg.h:186:9`! (1<<30)
187 #define DRAW_DITHER_OFS_Xcxx . . $ `xvmc/i830_reg.h:187:9`!(x) ((x)<<26)
188 #define DRAW_DITHER_OFS_Ycxx . . $ `xvmc/i830_reg.h:188:9`!(x) ((x)<<24)
189 /* Dword 2 */
190 #define DRAW_YMINcxx . . $ `xvmc/i830_reg.h:190:9`!(x) ((x)<<16)
191 #define DRAW_XMINcxx . . $ `xvmc/i830_reg.h:191:9`!(x) (x)
192 /* Dword 3 */
193 #define DRAW_YMAXcxx . . $ `xvmc/i830_reg.h:193:9`!(x) ((x)<<16)
194 #define DRAW_XMAXcxx . . $ `xvmc/i830_reg.h:194:9`!(x) (x)
195 /* Dword 4 */
196 #define DRAW_YORGcxx . . $ `xvmc/i830_reg.h:196:9`!(x) ((x)<<16)
197 #define DRAW_XORGcxx . . $ `xvmc/i830_reg.h:197:9`!(x) (x)
198
199 #define _3DSTATE_ENABLES_1_CMDcxx . . $ `xvmc/i830_reg.h:199:9`! (CMD_3D|(0x3<<24))
200 #define ENABLE_LOGIC_OP_MASKcxx . . $ `xvmc/i830_reg.h:200:9`! ((1<<23)|(1<<22))
201 #define ENABLE_LOGIC_OPcxx . . $ `xvmc/i830_reg.h:201:9`! ((1<<23)|(1<<22))
202 #define DISABLE_LOGIC_OPcxx . . $ `xvmc/i830_reg.h:202:9`! (1<<23)
203 #define ENABLE_STENCIL_TESTcxx . . $ `xvmc/i830_reg.h:203:9`! ((1<<21)|(1<<20))
204 #define DISABLE_STENCIL_TESTcxx . . $ `xvmc/i830_reg.h:204:9`! (1<<21)
205 #define ENABLE_DEPTH_BIAScxx . . $ `xvmc/i830_reg.h:205:9`! ((1<<11)|(1<<10))
206 #define DISABLE_DEPTH_BIAScxx . . $ `xvmc/i830_reg.h:206:9`! (1<<11)
207 #define ENABLE_SPEC_ADD_MASKcxx . . $ `xvmc/i830_reg.h:207:9`! ((1<<9)|(1<<8))
208 #define ENABLE_SPEC_ADDcxx . . $ `xvmc/i830_reg.h:208:9`! ((1<<9)|(1<<8))
209 #define DISABLE_SPEC_ADDcxx . . $ `xvmc/i830_reg.h:209:9`! (1<<9)
210 #define ENABLE_DIS_FOG_MASKcxx . . $ `xvmc/i830_reg.h:210:9`! ((1<<7)|(1<<6))
211 #define ENABLE_FOGcxx . . $ `xvmc/i830_reg.h:211:9`! ((1<<7)|(1<<6))
212 #define DISABLE_FOGcxx . . $ `xvmc/i830_reg.h:212:9`! (1<<7)
213 #define ENABLE_DIS_ALPHA_TEST_MASKcxx . . $ `xvmc/i830_reg.h:213:9`! ((1<<5)|(1<<4))
214 #define ENABLE_ALPHA_TESTcxx . . $ `xvmc/i830_reg.h:214:9`! ((1<<5)|(1<<4))
215 #define DISABLE_ALPHA_TESTcxx . . $ `xvmc/i830_reg.h:215:9`! (1<<5)
216 #define ENABLE_DIS_CBLEND_MASKcxx . . $ `xvmc/i830_reg.h:216:9`! ((1<<3)|(1<<2))
217 #define ENABLE_COLOR_BLENDcxx . . $ `xvmc/i830_reg.h:217:9`! ((1<<3)|(1<<2))
218 #define DISABLE_COLOR_BLENDcxx . . $ `xvmc/i830_reg.h:218:9`! (1<<3)
219 #define ENABLE_DIS_DEPTH_TEST_MASKcxx . . $ `xvmc/i830_reg.h:219:9`! ((1<<1)|1)
220 #define ENABLE_DEPTH_TESTcxx . . $ `xvmc/i830_reg.h:220:9`! ((1<<1)|1)
221 #define DISABLE_DEPTH_TESTcxx . . $ `xvmc/i830_reg.h:221:9`! (1<<1)
222
223 /* _3DSTATE_ENABLES_2, p138 */
224 #define _3DSTATE_ENABLES_2_CMDcxx . . $ `xvmc/i830_reg.h:224:9`! (CMD_3D|(0x4<<24))
225 #define ENABLE_STENCIL_WRITEcxx . . $ `xvmc/i830_reg.h:225:9`! ((1<<21)|(1<<20))
226 #define DISABLE_STENCIL_WRITEcxx . . $ `xvmc/i830_reg.h:226:9`! (1<<21)
227 #define ENABLE_TEX_CACHEcxx . . $ `xvmc/i830_reg.h:227:9`! ((1<<17)|(1<<16))
228 #define DISABLE_TEX_CACHEcxx . . $ `xvmc/i830_reg.h:228:9`! (1<<17)
229 #define ENABLE_DITHERcxx . . $ `xvmc/i830_reg.h:229:9`! ((1<<9)|(1<<8))
230 #define DISABLE_DITHERcxx . . $ `xvmc/i830_reg.h:230:9`! (1<<9)
231 #define ENABLE_COLOR_MASKcxx . . $ `xvmc/i830_reg.h:231:9`! (1<<10)
232 #define WRITEMASK_ALPHAcxx . . $ `xvmc/i830_reg.h:232:9`! (1<<7)
233 #define WRITEMASK_ALPHA_SHIFTcxx . . $ `xvmc/i830_reg.h:233:9`! 7
234 #define WRITEMASK_REDcxx . . $ `xvmc/i830_reg.h:234:9`! (1<<6)
235 #define WRITEMASK_RED_SHIFTcxx . . $ `xvmc/i830_reg.h:235:9`! 6
236 #define WRITEMASK_GREENcxx . . $ `xvmc/i830_reg.h:236:9`! (1<<5)
237 #define WRITEMASK_GREEN_SHIFTcxx . . $ `xvmc/i830_reg.h:237:9`! 5
238 #define WRITEMASK_BLUEcxx . . $ `xvmc/i830_reg.h:238:9`! (1<<4)
239 #define WRITEMASK_BLUE_SHIFTcxx . . $ `xvmc/i830_reg.h:239:9`! 4
240 #define WRITEMASK_MASKcxx . . $ `xvmc/i830_reg.h:240:9`! ((1<<4)|(1<<5)|(1<<6)|(1<<7))
241 #define ENABLE_COLOR_WRITEcxx . . $ `xvmc/i830_reg.h:241:9`! ((1<<3)|(1<<2))
242 #define DISABLE_COLOR_WRITEcxx . . $ `xvmc/i830_reg.h:242:9`! (1<<3)
243 #define ENABLE_DIS_DEPTH_WRITE_MASKcxx . . $ `xvmc/i830_reg.h:243:9`! 0x3
244 #define ENABLE_DEPTH_WRITEcxx . . $ `xvmc/i830_reg.h:244:9`! ((1<<1)|1)
245 #define DISABLE_DEPTH_WRITEcxx . . $ `xvmc/i830_reg.h:245:9`! (1<<1)
246
247 /* _3DSTATE_FOG_COLOR, p139 */
248 #define _3DSTATE_FOG_COLOR_CMDcxx . . $ `xvmc/i830_reg.h:248:9`! (CMD_3D|(0x15<<24))
249 #define FOG_COLOR_REDcxx . . $ `xvmc/i830_reg.h:249:9`!(x) ((x)<<16)
250 #define FOG_COLOR_GREENcxx . . $ `xvmc/i830_reg.h:250:9`!(x) ((x)<<8)
251 #define FOG_COLOR_BLUEcxx . . $ `xvmc/i830_reg.h:251:9`!(x) (x)
252
253 /* _3DSTATE_FOG_MODE, p140 */
254 #define _3DSTATE_FOG_MODE_CMDcxx . . $ `xvmc/i830_reg.h:254:9`! (CMD_3D|(0x1d<<24)|(0x89<<16)|2)
255 /* Dword 1 */
256 #define FOGFUNC_ENABLEcxx . . $ `xvmc/i830_reg.h:256:9`! (1<<31)
257 #define FOGFUNC_VERTEXcxx . . $ `xvmc/i830_reg.h:257:9`! 0
258 #define FOGFUNC_PIXEL_EXPcxx . . $ `xvmc/i830_reg.h:258:9`! (1<<28)
259 #define FOGFUNC_PIXEL_EXP2cxx . . $ `xvmc/i830_reg.h:259:9`! (2<<28)
260 #define FOGFUNC_PIXEL_LINEARcxx . . $ `xvmc/i830_reg.h:260:9`! (3<<28)
261 #define FOGSRC_INDEX_Zcxx . . $ `xvmc/i830_reg.h:261:9`! (1<<27)
262 #define FOGSRC_INDEX_Wcxx . . $ `xvmc/i830_reg.h:262:9`! ((1<<27)|(1<<25))
263 #define FOG_LINEAR_CONSTcxx . . $ `xvmc/i830_reg.h:263:9`! (1<<24)
264 #define FOG_CONST_1cxx . . $ `xvmc/i830_reg.h:264:9`!(x) ((x)<<4)
265 #define ENABLE_FOG_DENSITYcxx . . $ `xvmc/i830_reg.h:265:9`! (1<<23)
266 /* Dword 2 */
267 #define FOG_CONST_2cxx . . $ `xvmc/i830_reg.h:267:9`!(x) (x)
268 /* Dword 3 */
269 #define FOG_DENSITYcxx . . $ `xvmc/i830_reg.h:269:9`!(x) (x)
270
271 /* _3DSTATE_INDEPENDENT_ALPHA_BLEND, p142 */
272 #define _3DSTATE_INDPT_ALPHA_BLEND_CMDcxx . . $ `xvmc/i830_reg.h:272:9`! (CMD_3D|(0x0b<<24))
273 #define ENABLE_INDPT_ALPHA_BLENDcxx . . $ `xvmc/i830_reg.h:273:9`! ((1<<23)|(1<<22))
274 #define DISABLE_INDPT_ALPHA_BLENDcxx . . $ `xvmc/i830_reg.h:274:9`! (1<<23)
275 #define ALPHA_BLENDFUNC_MASKcxx . . $ `xvmc/i830_reg.h:275:9`! 0x3f0000
276 #define ENABLE_ALPHA_BLENDFUNCcxx . . $ `xvmc/i830_reg.h:276:9`! (1<<21)
277 #define ABLENDFUNC_ADDcxx . . $ `xvmc/i830_reg.h:277:9`! 0
278 #define ABLENDFUNC_SUBcxx . . $ `xvmc/i830_reg.h:278:9`! (1<<16)
279 #define ABLENDFUNC_RVSE_SUBcxx . . $ `xvmc/i830_reg.h:279:9`! (2<<16)
280 #define ABLENDFUNC_MINcxx . . $ `xvmc/i830_reg.h:280:9`! (3<<16)
281 #define ABLENDFUNC_MAXcxx . . $ `xvmc/i830_reg.h:281:9`! (4<<16)
282 #define SRC_DST_ABLEND_MASKcxx . . $ `xvmc/i830_reg.h:282:9`! 0xfff
283 #define ENABLE_SRC_ABLEND_FACTORcxx . . $ `xvmc/i830_reg.h:283:9`! (1<<11)
284 #define SRC_ABLEND_FACTcxx . . $ `xvmc/i830_reg.h:284:9`!(x) ((x)<<6)
285 #define ENABLE_DST_ABLEND_FACTORcxx . . $ `xvmc/i830_reg.h:285:9`! (1<<5)
286 #define DST_ABLEND_FACTcxx . . $ `xvmc/i830_reg.h:286:9`!(x) (x)
287
288 #define BLENDFACTOR_ZEROcxx . . $ `xvmc/i830_reg.h:288:9`! 0x01
289 #define BLENDFACTOR_ONEcxx . . $ `xvmc/i830_reg.h:289:9`! 0x02
290 #define BLENDFACTOR_SRC_COLRcxx . . $ `xvmc/i830_reg.h:290:9`! 0x03
291 #define BLENDFACTOR_INV_SRC_COLRcxx . . $ `xvmc/i830_reg.h:291:9`! 0x04
292 #define BLENDFACTOR_SRC_ALPHAcxx . . $ `xvmc/i830_reg.h:292:9`! 0x05
293 #define BLENDFACTOR_INV_SRC_ALPHAcxx . . $ `xvmc/i830_reg.h:293:9`! 0x06
294 #define BLENDFACTOR_DST_ALPHAcxx . . $ `xvmc/i830_reg.h:294:9`! 0x07
295 #define BLENDFACTOR_INV_DST_ALPHAcxx . . $ `xvmc/i830_reg.h:295:9`! 0x08
296 #define BLENDFACTOR_DST_COLRcxx . . $ `xvmc/i830_reg.h:296:9`! 0x09
297 #define BLENDFACTOR_INV_DST_COLRcxx . . $ `xvmc/i830_reg.h:297:9`! 0x0a
298 #define BLENDFACTOR_SRC_ALPHA_SATURATEcxx . . $ `xvmc/i830_reg.h:298:9`! 0x0b
299 #define BLENDFACTOR_CONST_COLORcxx . . $ `xvmc/i830_reg.h:299:9`! 0x0c
300 #define BLENDFACTOR_INV_CONST_COLORcxx . . $ `xvmc/i830_reg.h:300:9`! 0x0d
301 #define BLENDFACTOR_CONST_ALPHAcxx . . $ `xvmc/i830_reg.h:301:9`! 0x0e
302 #define BLENDFACTOR_INV_CONST_ALPHAcxx . . $ `xvmc/i830_reg.h:302:9`! 0x0f
303 #define BLENDFACTOR_MASKcxx . . $ `xvmc/i830_reg.h:303:9`! 0x0f
304
305 /* _3DSTATE_MAP_BLEND_ARG, p152 */
306 #define _3DSTATE_MAP_BLEND_ARG_CMDcxx . . $ `xvmc/i830_reg.h:306:9`!(stage) (CMD_3D|(0x0e<<24)|((stage)<<20))
307
308 #define TEXPIPE_COLORcxx . . $ `xvmc/i830_reg.h:308:9`! 0
309 #define TEXPIPE_ALPHAcxx . . $ `xvmc/i830_reg.h:309:9`! (1<<18)
310 #define TEXPIPE_KILLcxx . . $ `xvmc/i830_reg.h:310:9`! (2<<18)
311 #define TEXBLEND_ARG0cxx . . $ `xvmc/i830_reg.h:311:9`! 0
312 #define TEXBLEND_ARG1cxx . . $ `xvmc/i830_reg.h:312:9`! (1<<15)
313 #define TEXBLEND_ARG2cxx . . $ `xvmc/i830_reg.h:313:9`! (2<<15)
314 #define TEXBLEND_ARG3cxx . . $ `xvmc/i830_reg.h:314:9`! (3<<15)
315 #define TEXBLENDARG_MODIFY_PARMScxx . . $ `xvmc/i830_reg.h:315:9`! (1<<6)
316 #define TEXBLENDARG_REPLICATE_ALPHAcxx . . $ `xvmc/i830_reg.h:316:9`! (1<<5)
317 #define TEXBLENDARG_INV_ARGcxx . . $ `xvmc/i830_reg.h:317:9`! (1<<4)
318 #define TEXBLENDARG_ONEcxx . . $ `xvmc/i830_reg.h:318:9`! 0
319 #define TEXBLENDARG_FACTORcxx . . $ `xvmc/i830_reg.h:319:9`! 0x01
320 #define TEXBLENDARG_ACCUMcxx . . $ `xvmc/i830_reg.h:320:9`! 0x02
321 #define TEXBLENDARG_DIFFUSEcxx . . $ `xvmc/i830_reg.h:321:9`! 0x03
322 #define TEXBLENDARG_SPECcxx . . $ `xvmc/i830_reg.h:322:9`! 0x04
323 #define TEXBLENDARG_CURRENTcxx . . $ `xvmc/i830_reg.h:323:9`! 0x05
324 #define TEXBLENDARG_TEXEL0cxx . . $ `xvmc/i830_reg.h:324:9`! 0x06
325 #define TEXBLENDARG_TEXEL1cxx . . $ `xvmc/i830_reg.h:325:9`! 0x07
326 #define TEXBLENDARG_TEXEL2cxx . . $ `xvmc/i830_reg.h:326:9`! 0x08
327 #define TEXBLENDARG_TEXEL3cxx . . $ `xvmc/i830_reg.h:327:9`! 0x09
328 #define TEXBLENDARG_FACTOR_Ncxx . . $ `xvmc/i830_reg.h:328:9`! 0x0e
329
330 /* _3DSTATE_MAP_BLEND_OP, p155 */
331 #define _3DSTATE_MAP_BLEND_OP_CMDcxx . . $ `xvmc/i830_reg.h:331:9`!(stage) (CMD_3D|(0x0d<<24)|((stage)<<20))
332 #if 0
333 # define TEXPIPE_COLOR 0
334 # define TEXPIPE_ALPHA (1<<18)
335 # define TEXPIPE_KILL (2<<18)
336 #endif
337 #define ENABLE_TEXOUTPUT_WRT_SELcxx . . $ `xvmc/i830_reg.h:337:9`! (1<<17)
338 #define TEXOP_OUTPUT_CURRENTcxx . . $ `xvmc/i830_reg.h:338:9`! 0
339 #define TEXOP_OUTPUT_ACCUMcxx . . $ `xvmc/i830_reg.h:339:9`! (1<<15)
340 #define ENABLE_TEX_CNTRL_STAGEcxx . . $ `xvmc/i830_reg.h:340:9`! ((1<<12)|(1<<11))
341 #define DISABLE_TEX_CNTRL_STAGEcxx . . $ `xvmc/i830_reg.h:341:9`! (1<<12)
342 #define TEXOP_SCALE_SHIFTcxx . . $ `xvmc/i830_reg.h:342:9`! 9
343 #define TEXOP_SCALE_1Xcxx . . $ `xvmc/i830_reg.h:343:9`! (0 << TEXOP_SCALE_SHIFT)
344 #define TEXOP_SCALE_2Xcxx . . $ `xvmc/i830_reg.h:344:9`! (1 << TEXOP_SCALE_SHIFT)
345 #define TEXOP_SCALE_4Xcxx . . $ `xvmc/i830_reg.h:345:9`! (2 << TEXOP_SCALE_SHIFT)
346 #define TEXOP_MODIFY_PARMScxx . . $ `xvmc/i830_reg.h:346:9`! (1<<8)
347 #define TEXOP_LAST_STAGEcxx . . $ `xvmc/i830_reg.h:347:9`! (1<<7)
348 #define TEXBLENDOP_KILLPIXELcxx . . $ `xvmc/i830_reg.h:348:9`! 0x02
349 #define TEXBLENDOP_ARG1cxx . . $ `xvmc/i830_reg.h:349:9`! 0x01
350 #define TEXBLENDOP_ARG2cxx . . $ `xvmc/i830_reg.h:350:9`! 0x02
351 #define TEXBLENDOP_MODULATEcxx . . $ `xvmc/i830_reg.h:351:9`! 0x03
352 #define TEXBLENDOP_ADDcxx . . $ `xvmc/i830_reg.h:352:9`! 0x06
353 #define TEXBLENDOP_ADDSIGNEDcxx . . $ `xvmc/i830_reg.h:353:9`! 0x07
354 #define TEXBLENDOP_BLENDcxx . . $ `xvmc/i830_reg.h:354:9`! 0x08
355 #define TEXBLENDOP_BLEND_AND_ADDcxx . . $ `xvmc/i830_reg.h:355:9`! 0x09
356 #define TEXBLENDOP_SUBTRACTcxx . . $ `xvmc/i830_reg.h:356:9`! 0x0a
357 #define TEXBLENDOP_DOT3cxx . . $ `xvmc/i830_reg.h:357:9`! 0x0b
358 #define TEXBLENDOP_DOT4cxx . . $ `xvmc/i830_reg.h:358:9`! 0x0c
359 #define TEXBLENDOP_MODULATE_AND_ADDcxx . . $ `xvmc/i830_reg.h:359:9`! 0x0d
360 #define TEXBLENDOP_MODULATE_2X_AND_ADDcxx . . $ `xvmc/i830_reg.h:360:9`! 0x0e
361 #define TEXBLENDOP_MODULATE_4X_AND_ADDcxx . . $ `xvmc/i830_reg.h:361:9`! 0x0f
362
363 /* _3DSTATE_MAP_BUMP_TABLE, p160 TODO */
364 /* _3DSTATE_MAP_COLOR_CHROMA_KEY, p161 TODO */
365
366 #define _3DSTATE_MAP_COORD_TRANSFORMcxx . . $ `xvmc/i830_reg.h:366:9`! ((3<<29)|(0x1d<<24)|(0x8c<<16))
367 #define DISABLE_TEX_TRANSFORMcxx . . $ `xvmc/i830_reg.h:367:9`! (1<<28)
368 #define TEXTURE_SETcxx . . $ `xvmc/i830_reg.h:368:9`!(x) (x<<29)
369
370 #define _3DSTATE_VERTEX_TRANSFORMcxx . . $ `xvmc/i830_reg.h:370:9`! ((3<<29)|(0x1d<<24)|(0x8b<<16))
371 #define DISABLE_VIEWPORT_TRANSFORMcxx . . $ `xvmc/i830_reg.h:371:9`! (1<<31)
372 #define DISABLE_PERSPECTIVE_DIVIDEcxx . . $ `xvmc/i830_reg.h:372:9`! (1<<29)
373
374 /* _3DSTATE_MAP_COORD_SET_BINDINGS, p162 */
375 #define _3DSTATE_MAP_COORD_SETBIND_CMDcxx . . $ `xvmc/i830_reg.h:375:9`! (CMD_3D|(0x1d<<24)|(0x02<<16))
376 #define TEXBIND_MASK3cxx . . $ `xvmc/i830_reg.h:376:9`! ((1<<15)|(1<<14)|(1<<13)|(1<<12))
377 #define TEXBIND_MASK2cxx . . $ `xvmc/i830_reg.h:377:9`! ((1<<11)|(1<<10)|(1<<9)|(1<<8))
378 #define TEXBIND_MASK1cxx . . $ `xvmc/i830_reg.h:378:9`! ((1<<7)|(1<<6)|(1<<5)|(1<<4))
379 #define TEXBIND_MASK0cxx . . $ `xvmc/i830_reg.h:379:9`! ((1<<3)|(1<<2)|(1<<1)|1)
380
381 #define TEXBIND_SET3cxx . . $ `xvmc/i830_reg.h:381:9`!(x) ((x)<<12)
382 #define TEXBIND_SET2cxx . . $ `xvmc/i830_reg.h:382:9`!(x) ((x)<<8)
383 #define TEXBIND_SET1cxx . . $ `xvmc/i830_reg.h:383:9`!(x) ((x)<<4)
384 #define TEXBIND_SET0cxx . . $ `xvmc/i830_reg.h:384:9`!(x) (x)
385
386 #define TEXCOORDSRC_KEEPcxx . . $ `xvmc/i830_reg.h:386:9`! 0
387 #define TEXCOORDSRC_DEFAULTcxx . . $ `xvmc/i830_reg.h:387:9`! 0x01
388 #define TEXCOORDSRC_VTXSET_0cxx . . $ `xvmc/i830_reg.h:388:9`! 0x08
389 #define TEXCOORDSRC_VTXSET_1cxx . . $ `xvmc/i830_reg.h:389:9`! 0x09
390 #define TEXCOORDSRC_VTXSET_2cxx . . $ `xvmc/i830_reg.h:390:9`! 0x0a
391 #define TEXCOORDSRC_VTXSET_3cxx . . $ `xvmc/i830_reg.h:391:9`! 0x0b
392 #define TEXCOORDSRC_VTXSET_4cxx . . $ `xvmc/i830_reg.h:392:9`! 0x0c
393 #define TEXCOORDSRC_VTXSET_5cxx . . $ `xvmc/i830_reg.h:393:9`! 0x0d
394 #define TEXCOORDSRC_VTXSET_6cxx . . $ `xvmc/i830_reg.h:394:9`! 0x0e
395 #define TEXCOORDSRC_VTXSET_7cxx . . $ `xvmc/i830_reg.h:395:9`! 0x0f
396
397 #define MAP_UNITcxx . . $ `xvmc/i830_reg.h:397:9`!(unit) ((unit)<<16)
398 #define MAP_UNIT_MASKcxx . . $ `xvmc/i830_reg.h:398:9`! (0x7<<16)
399
400 /* _3DSTATE_MAP_COORD_SETS, p164 */
401 #define _3DSTATE_MAP_COORD_SET_CMDcxx . . $ `xvmc/i830_reg.h:401:9`! (CMD_3D|(0x1c<<24)|(0x01<<19))
402 #define TEXCOORD_SETcxx . . $ `xvmc/i830_reg.h:402:9`!(n) ((n)<<16)
403 #define ENABLE_TEXCOORD_PARAMScxx . . $ `xvmc/i830_reg.h:403:9`! (1<<15)
404 #define TEXCOORDS_ARE_NORMALcxx . . $ `xvmc/i830_reg.h:404:9`! (1<<14)
405 #define TEXCOORDS_ARE_IN_TEXELUNITScxx . . $ `xvmc/i830_reg.h:405:9`! 0
406 #define TEXCOORDTYPE_CARTESIANcxx . . $ `xvmc/i830_reg.h:406:9`! 0
407 #define TEXCOORDTYPE_HOMOGENEOUScxx . . $ `xvmc/i830_reg.h:407:9`! (1<<11)
408 #define TEXCOORDTYPE_VECTORcxx . . $ `xvmc/i830_reg.h:408:9`! (2<<11)
409 #define TEXCOORDTYPE_MASKcxx . . $ `xvmc/i830_reg.h:409:9`! (0x7<<11)
410 #define ENABLE_ADDR_V_CNTLcxx . . $ `xvmc/i830_reg.h:410:9`! (1<<7)
411 #define ENABLE_ADDR_U_CNTLcxx . . $ `xvmc/i830_reg.h:411:9`! (1<<3)
412 #define TEXCOORD_ADDR_V_MODEcxx . . $ `xvmc/i830_reg.h:412:9`!(x) ((x)<<4)
413 #define TEXCOORD_ADDR_U_MODEcxx . . $ `xvmc/i830_reg.h:413:9`!(x) (x)
414 #define TEXCOORDMODE_WRAPcxx . . $ `xvmc/i830_reg.h:414:9`! 0
415 #define TEXCOORDMODE_MIRRORcxx . . $ `xvmc/i830_reg.h:415:9`! 1
416 #define TEXCOORDMODE_CLAMPcxx . . $ `xvmc/i830_reg.h:416:9`! 2
417 #define TEXCOORDMODE_WRAP_SHORTESTcxx . . $ `xvmc/i830_reg.h:417:9`! 3
418 #define TEXCOORDMODE_CLAMP_BORDERcxx . . $ `xvmc/i830_reg.h:418:9`! 4
419 #define TEXCOORD_ADDR_V_MASKcxx . . $ `xvmc/i830_reg.h:419:9`! 0x70
420 #define TEXCOORD_ADDR_U_MASKcxx . . $ `xvmc/i830_reg.h:420:9`! 0x7
421
422 /* _3DSTATE_MAP_CUBE, p168 TODO */
423 #define _3DSTATE_MAP_CUBEcxx . . $ `xvmc/i830_reg.h:423:9`! (CMD_3D|(0x1c<<24)|(0x0a<<19))
424 #define CUBE_NEGX_ENABLEcxx . . $ `xvmc/i830_reg.h:424:9`! (1<<5)
425 #define CUBE_POSX_ENABLEcxx . . $ `xvmc/i830_reg.h:425:9`! (1<<4)
426 #define CUBE_NEGY_ENABLEcxx . . $ `xvmc/i830_reg.h:426:9`! (1<<3)
427 #define CUBE_POSY_ENABLEcxx . . $ `xvmc/i830_reg.h:427:9`! (1<<2)
428 #define CUBE_NEGZ_ENABLEcxx . . $ `xvmc/i830_reg.h:428:9`! (1<<1)
429 #define CUBE_POSZ_ENABLEcxx . . $ `xvmc/i830_reg.h:429:9`! (1<<0)
430
431 #define _3DSTATE_MAP_INFO_CMDcxx . . $ `xvmc/i830_reg.h:431:9`! (CMD_3D|(0x1d<<24)|(0x0<<16)|3)
432 #define TEXMAP_INDEXcxx . . $ `xvmc/i830_reg.h:432:9`!(x) ((x)<<28)
433 #define MAP_SURFACE_8BITcxx . . $ `xvmc/i830_reg.h:433:9`! (1<<24)
434 #define MAP_SURFACE_16BITcxx . . $ `xvmc/i830_reg.h:434:9`! (2<<24)
435 #define MAP_SURFACE_32BITcxx . . $ `xvmc/i830_reg.h:435:9`! (3<<24)
436 #define MAP_FORMAT_2Dcxx . . $ `xvmc/i830_reg.h:436:9`! (0)
437 #define MAP_FORMAT_3D_CUBEcxx . . $ `xvmc/i830_reg.h:437:9`! (1<<11)
438
439 /* _3DSTATE_MODES_1, p190 */
440 #define _3DSTATE_MODES_1_CMDcxx . . $ `xvmc/i830_reg.h:440:9`! (CMD_3D|(0x08<<24))
441 #define BLENDFUNC_MASKcxx . . $ `xvmc/i830_reg.h:441:9`! 0x3f0000
442 #define ENABLE_COLR_BLND_FUNCcxx . . $ `xvmc/i830_reg.h:442:9`! (1<<21)
443 #define BLENDFUNC_ADDcxx . . $ `xvmc/i830_reg.h:443:9`! 0
444 #define BLENDFUNC_SUBcxx . . $ `xvmc/i830_reg.h:444:9`! (1<<16)
445 #define BLENDFUNC_RVRSE_SUBcxx . . $ `xvmc/i830_reg.h:445:9`! (2<<16)
446 #define BLENDFUNC_MINcxx . . $ `xvmc/i830_reg.h:446:9`! (3<<16)
447 #define BLENDFUNC_MAXcxx . . $ `xvmc/i830_reg.h:447:9`! (4<<16)
448 #define SRC_DST_BLND_MASKcxx . . $ `xvmc/i830_reg.h:448:9`! 0xfff
449 #define ENABLE_SRC_BLND_FACTORcxx . . $ `xvmc/i830_reg.h:449:9`! (1<<11)
450 #define ENABLE_DST_BLND_FACTORcxx . . $ `xvmc/i830_reg.h:450:9`! (1<<5)
451 #define SRC_BLND_FACTcxx . . $ `xvmc/i830_reg.h:451:9`!(x) ((x)<<6)
452 #define DST_BLND_FACTcxx . . $ `xvmc/i830_reg.h:452:9`!(x) (x)
453
454 /* _3DSTATE_MODES_2, p192 */
455 #define _3DSTATE_MODES_2_CMDcxx . . $ `xvmc/i830_reg.h:455:9`! (CMD_3D|(0x0f<<24))
456 #define ENABLE_GLOBAL_DEPTH_BIAScxx . . $ `xvmc/i830_reg.h:456:9`! (1<<22)
457 #define GLOBAL_DEPTH_BIAScxx . . $ `xvmc/i830_reg.h:457:9`!(x) ((x)<<14)
458 #define ENABLE_ALPHA_TEST_FUNCcxx . . $ `xvmc/i830_reg.h:458:9`! (1<<13)
459 #define ENABLE_ALPHA_REF_VALUEcxx . . $ `xvmc/i830_reg.h:459:9`! (1<<8)
460 #define ALPHA_TEST_FUNCcxx . . $ `xvmc/i830_reg.h:460:9`!(x) ((x)<<9)
461 #define ALPHA_REF_VALUEcxx . . $ `xvmc/i830_reg.h:461:9`!(x) (x)
462
463 #define ALPHA_TEST_REF_MASKcxx . . $ `xvmc/i830_reg.h:463:9`! 0x3fff
464
465 /* _3DSTATE_MODES_3, p193 */
466 #define _3DSTATE_MODES_3_CMDcxx . . $ `xvmc/i830_reg.h:466:9`! (CMD_3D|(0x02<<24))
467 #define DEPTH_TEST_FUNC_MASKcxx . . $ `xvmc/i830_reg.h:467:9`! 0x1f0000
468 #define ENABLE_DEPTH_TEST_FUNCcxx . . $ `xvmc/i830_reg.h:468:9`! (1<<20)
469 /* Uses COMPAREFUNC */
470 #define DEPTH_TEST_FUNCcxx . . $ `xvmc/i830_reg.h:470:9`!(x) ((x)<<16)
471 #define ENABLE_ALPHA_SHADE_MODEcxx . . $ `xvmc/i830_reg.h:471:9`! (1<<11)
472 #define ENABLE_FOG_SHADE_MODEcxx . . $ `xvmc/i830_reg.h:472:9`! (1<<9)
473 #define ENABLE_SPEC_SHADE_MODEcxx . . $ `xvmc/i830_reg.h:473:9`! (1<<7)
474 #define ENABLE_COLOR_SHADE_MODEcxx . . $ `xvmc/i830_reg.h:474:9`! (1<<5)
475 #define ALPHA_SHADE_MODEcxx . . $ `xvmc/i830_reg.h:475:9`!(x) ((x)<<10)
476 #define FOG_SHADE_MODEcxx . . $ `xvmc/i830_reg.h:476:9`!(x) ((x)<<8)
477 #define SPEC_SHADE_MODEcxx . . $ `xvmc/i830_reg.h:477:9`!(x) ((x)<<6)
478 #define COLOR_SHADE_MODEcxx . . $ `xvmc/i830_reg.h:478:9`!(x) ((x)<<4)
479 #define CULLMODE_MASKcxx . . $ `xvmc/i830_reg.h:479:9`! 0xf
480 #define ENABLE_CULL_MODEcxx . . $ `xvmc/i830_reg.h:480:9`! (1<<3)
481 #define CULLMODE_BOTHcxx . . $ `xvmc/i830_reg.h:481:9`! 0
482 #define CULLMODE_NONEcxx . . $ `xvmc/i830_reg.h:482:9`! 1
483 #define CULLMODE_CWcxx . . $ `xvmc/i830_reg.h:483:9`! 2
484 #define CULLMODE_CCWcxx . . $ `xvmc/i830_reg.h:484:9`! 3
485
486 #define SHADE_MODE_LINEARcxx . . $ `xvmc/i830_reg.h:486:9`! 0
487 #define SHADE_MODE_FLATcxx . . $ `xvmc/i830_reg.h:487:9`! 0x1
488
489 /* _3DSTATE_MODES_4, p195 */
490 #define _3DSTATE_MODES_4_CMDcxx . . $ `xvmc/i830_reg.h:490:9`! (CMD_3D|(0x16<<24))
491 #define ENABLE_LOGIC_OP_FUNCcxx . . $ `xvmc/i830_reg.h:491:9`! (1<<23)
492 #define LOGIC_OP_FUNCcxx . . $ `xvmc/i830_reg.h:492:9`!(x) ((x)<<18)
493 #define LOGICOP_MASKcxx . . $ `xvmc/i830_reg.h:493:9`! ((1<<18)|(1<<19)|(1<<20)|(1<<21))
494 #define LOGICOP_CLEARcxx . . $ `xvmc/i830_reg.h:494:9`! 0
495 #define LOGICOP_NORcxx . . $ `xvmc/i830_reg.h:495:9`! 0x1
496 #define LOGICOP_AND_INVcxx . . $ `xvmc/i830_reg.h:496:9`! 0x2
497 #define LOGICOP_COPY_INVcxx . . $ `xvmc/i830_reg.h:497:9`! 0x3
498 #define LOGICOP_AND_RVRSEcxx . . $ `xvmc/i830_reg.h:498:9`! 0x4
499 #define LOGICOP_INVcxx . . $ `xvmc/i830_reg.h:499:9`! 0x5
500 #define LOGICOP_XORcxx . . $ `xvmc/i830_reg.h:500:9`! 0x6
501 #define LOGICOP_NANDcxx . . $ `xvmc/i830_reg.h:501:9`! 0x7
502 #define LOGICOP_ANDcxx . . $ `xvmc/i830_reg.h:502:9`! 0x8
503 #define LOGICOP_EQUIVcxx . . $ `xvmc/i830_reg.h:503:9`! 0x9
504 #define LOGICOP_NOOPcxx . . $ `xvmc/i830_reg.h:504:9`! 0xa
505 #define LOGICOP_OR_INVcxx . . $ `xvmc/i830_reg.h:505:9`! 0xb
506 #define LOGICOP_COPYcxx . . $ `xvmc/i830_reg.h:506:9`! 0xc
507 #define LOGICOP_OR_RVRSEcxx . . $ `xvmc/i830_reg.h:507:9`! 0xd
508 #define LOGICOP_ORcxx . . $ `xvmc/i830_reg.h:508:9`! 0xe
509 #define LOGICOP_SETcxx . . $ `xvmc/i830_reg.h:509:9`! 0xf
510 #define MODE4_ENABLE_STENCIL_TEST_MASKcxx . . $ `xvmc/i830_reg.h:510:9`! ((1<<17)|(0xff00))
511 #define ENABLE_STENCIL_TEST_MASKcxx . . $ `xvmc/i830_reg.h:511:9`! (1<<17)
512 #define STENCIL_TEST_MASKcxx . . $ `xvmc/i830_reg.h:512:9`!(x) ((x)<<8)
513 #define MODE4_ENABLE_STENCIL_WRITE_MASKcxx . . $ `xvmc/i830_reg.h:513:9`! ((1<<16)|(0x00ff))
514 #define ENABLE_STENCIL_WRITE_MASKcxx . . $ `xvmc/i830_reg.h:514:9`! (1<<16)
515 #define STENCIL_WRITE_MASKcxx . . $ `xvmc/i830_reg.h:515:9`!(x) ((x)&0xff)
516
517 /* _3DSTATE_MODES_5, p196 */
518 #define _3DSTATE_MODES_5_CMDcxx . . $ `xvmc/i830_reg.h:518:9`! (CMD_3D|(0x0c<<24))
519 #define ENABLE_SPRITE_POINT_TEXcxx . . $ `xvmc/i830_reg.h:519:9`! (1<<23)
520 #define SPRITE_POINT_TEX_ONcxx . . $ `xvmc/i830_reg.h:520:9`! (1<<22)
521 #define SPRITE_POINT_TEX_OFFcxx . . $ `xvmc/i830_reg.h:521:9`! 0
522 #define FLUSH_RENDER_CACHEcxx . . $ `xvmc/i830_reg.h:522:9`! (1<<18)
523 #define FLUSH_TEXTURE_CACHEcxx . . $ `xvmc/i830_reg.h:523:9`! (1<<16)
524 #define FIXED_LINE_WIDTH_MASKcxx . . $ `xvmc/i830_reg.h:524:9`! 0xfc00
525 #define ENABLE_FIXED_LINE_WIDTHcxx . . $ `xvmc/i830_reg.h:525:9`! (1<<15)
526 #define FIXED_LINE_WIDTHcxx . . $ `xvmc/i830_reg.h:526:9`!(x) ((x)<<10)
527 #define FIXED_POINT_WIDTH_MASKcxx . . $ `xvmc/i830_reg.h:527:9`! 0x3ff
528 #define ENABLE_FIXED_POINT_WIDTHcxx . . $ `xvmc/i830_reg.h:528:9`! (1<<9)
529 #define FIXED_POINT_WIDTHcxx . . $ `xvmc/i830_reg.h:529:9`!(x) (x)
530
531 /* _3DSTATE_RASTERIZATION_RULES, p198 */
532 #define _3DSTATE_RASTER_RULES_CMDcxx . . $ `xvmc/i830_reg.h:532:9`! (CMD_3D|(0x07<<24))
533 #define ENABLE_POINT_RASTER_RULEcxx . . $ `xvmc/i830_reg.h:533:9`! (1<<15)
534 #define OGL_POINT_RASTER_RULEcxx . . $ `xvmc/i830_reg.h:534:9`! (1<<13)
535 #define ENABLE_LINE_STRIP_PROVOKE_VRTXcxx . . $ `xvmc/i830_reg.h:535:9`! (1<<8)
536 #define ENABLE_TRI_FAN_PROVOKE_VRTXcxx . . $ `xvmc/i830_reg.h:536:9`! (1<<5)
537 #define ENABLE_TRI_STRIP_PROVOKE_VRTXcxx . . $ `xvmc/i830_reg.h:537:9`! (1<<2)
538 #define LINE_STRIP_PROVOKE_VRTXcxx . . $ `xvmc/i830_reg.h:538:9`!(x) ((x)<<6)
539 #define TRI_FAN_PROVOKE_VRTXcxx . . $ `xvmc/i830_reg.h:539:9`!(x) ((x)<<3)
540 #define TRI_STRIP_PROVOKE_VRTXcxx . . $ `xvmc/i830_reg.h:540:9`!(x) (x)
541
542 /* _3DSTATE_SCISSOR_ENABLE, p200 */
543 #define _3DSTATE_SCISSOR_ENABLE_CMDcxx . . $ `xvmc/i830_reg.h:543:9`! (CMD_3D|(0x1c<<24)|(0x10<<19))
544 #define ENABLE_SCISSOR_RECTcxx . . $ `xvmc/i830_reg.h:544:9`! ((1<<1) | 1)
545 #define DISABLE_SCISSOR_RECTcxx . . $ `xvmc/i830_reg.h:545:9`! (1<<1)
546
547 /* _3DSTATE_SCISSOR_RECTANGLE_0, p201 */
548 #define _3DSTATE_SCISSOR_RECT_0_CMDcxx . . $ `xvmc/i830_reg.h:548:9`! (CMD_3D|(0x1d<<24)|(0x81<<16)|1)
549 /* Dword 1 */
550 #define SCISSOR_RECT_0_YMINcxx . . $ `xvmc/i830_reg.h:550:9`!(x) ((x)<<16)
551 #define SCISSOR_RECT_0_XMINcxx . . $ `xvmc/i830_reg.h:551:9`!(x) (x)
552 /* Dword 2 */
553 #define SCISSOR_RECT_0_YMAXcxx . . $ `xvmc/i830_reg.h:553:9`!(x) ((x)<<16)
554 #define SCISSOR_RECT_0_XMAXcxx . . $ `xvmc/i830_reg.h:554:9`!(x) (x)
555
556 /* _3DSTATE_STENCIL_TEST, p202 */
557 #define _3DSTATE_STENCIL_TEST_CMDcxx . . $ `xvmc/i830_reg.h:557:9`! (CMD_3D|(0x09<<24))
558 #define ENABLE_STENCIL_PARMScxx . . $ `xvmc/i830_reg.h:558:9`! (1<<23)
559 #define STENCIL_OPS_MASKcxx . . $ `xvmc/i830_reg.h:559:9`! (0xffc000)
560 #define STENCIL_FAIL_OPcxx . . $ `xvmc/i830_reg.h:560:9`!(x) ((x)<<20)
561 #define STENCIL_PASS_DEPTH_FAIL_OPcxx . . $ `xvmc/i830_reg.h:561:9`!(x) ((x)<<17)
562 #define STENCIL_PASS_DEPTH_PASS_OPcxx . . $ `xvmc/i830_reg.h:562:9`!(x) ((x)<<14)
563
564 #define ENABLE_STENCIL_TEST_FUNC_MASKcxx . . $ `xvmc/i830_reg.h:564:9`! ((1<<13)|(1<<12)|(1<<11)|(1<<10)|(1<<9))
565 #define ENABLE_STENCIL_TEST_FUNCcxx . . $ `xvmc/i830_reg.h:565:9`! (1<<13)
566 /* Uses COMPAREFUNC */
567 #define STENCIL_TEST_FUNCcxx . . $ `xvmc/i830_reg.h:567:9`!(x) ((x)<<9)
568 #define STENCIL_REF_VALUE_MASKcxx . . $ `xvmc/i830_reg.h:568:9`! ((1<<8)|0xff)
569 #define ENABLE_STENCIL_REF_VALUEcxx . . $ `xvmc/i830_reg.h:569:9`! (1<<8)
570 #define STENCIL_REF_VALUEcxx . . $ `xvmc/i830_reg.h:570:9`!(x) (x)
571
572 /* _3DSTATE_VERTEX_FORMAT, p204 */
573 #define _3DSTATE_VFT0_CMDcxx . . $ `xvmc/i830_reg.h:573:9`! (CMD_3D|(0x05<<24))
574 #define VFT0_POINT_WIDTHcxx . . $ `xvmc/i830_reg.h:574:9`! (1<<12)
575 #define VFT0_TEX_COUNT_MASKcxx . . $ `xvmc/i830_reg.h:575:9`! (7<<8)
576 #define VFT0_TEX_COUNT_SHIFTcxx . . $ `xvmc/i830_reg.h:576:9`! 8
577 #define VFT0_TEX_COUNTcxx . . $ `xvmc/i830_reg.h:577:9`!(x) ((x)<<8)
578 #define VFT0_SPECcxx . . $ `xvmc/i830_reg.h:578:9`! (1<<7)
579 #define VFT0_DIFFUSEcxx . . $ `xvmc/i830_reg.h:579:9`! (1<<6)
580 #define VFT0_DEPTH_OFFSETcxx . . $ `xvmc/i830_reg.h:580:9`! (1<<5)
581 #define VFT0_XYZcxx . . $ `xvmc/i830_reg.h:581:9`! (1<<1)
582 #define VFT0_XYZWcxx . . $ `xvmc/i830_reg.h:582:9`! (2<<1)
583 #define VFT0_XYcxx . . $ `xvmc/i830_reg.h:583:9`! (3<<1)
584 #define VFT0_XYWcxx . . $ `xvmc/i830_reg.h:584:9`! (4<<1)
585 #define VFT0_XYZW_MASKcxx . . $ `xvmc/i830_reg.h:585:9`! (7<<1)
586
587 /* _3DSTATE_VERTEX_FORMAT_2, p206 */
588 #define _3DSTATE_VERTEX_FORMAT_2_CMDcxx . . $ `xvmc/i830_reg.h:588:9`! (CMD_3D|(0x0a<<24))
589 #define VFT1_TEX7_FMTcxx . . $ `xvmc/i830_reg.h:589:9`!(x) ((x)<<14)
590 #define VFT1_TEX6_FMTcxx . . $ `xvmc/i830_reg.h:590:9`!(x) ((x)<<12)
591 #define VFT1_TEX5_FMTcxx . . $ `xvmc/i830_reg.h:591:9`!(x) ((x)<<10)
592 #define VFT1_TEX4_FMTcxx . . $ `xvmc/i830_reg.h:592:9`!(x) ((x)<<8)
593 #define VFT1_TEX3_FMTcxx . . $ `xvmc/i830_reg.h:593:9`!(x) ((x)<<6)
594 #define VFT1_TEX2_FMTcxx . . $ `xvmc/i830_reg.h:594:9`!(x) ((x)<<4)
595 #define VFT1_TEX1_FMTcxx . . $ `xvmc/i830_reg.h:595:9`!(x) ((x)<<2)
596 #define VFT1_TEX0_FMTcxx . . $ `xvmc/i830_reg.h:596:9`!(x) (x)
597 #define VFT1_TEX0_MASKcxx . . $ `xvmc/i830_reg.h:597:9`! 3
598 #define VFT1_TEX1_SHIFTcxx . . $ `xvmc/i830_reg.h:598:9`! 2
599 #define TEXCOORDFMT_2Dcxx . . $ `xvmc/i830_reg.h:599:9`! 0
600 #define TEXCOORDFMT_3Dcxx . . $ `xvmc/i830_reg.h:600:9`! 1
601 #define TEXCOORDFMT_4Dcxx . . $ `xvmc/i830_reg.h:601:9`! 2
602 #define TEXCOORDFMT_1Dcxx . . $ `xvmc/i830_reg.h:602:9`! 3
603
604 /*New stuff picked up along the way */
605
606 #define MLC_LOD_BIAS_MASKcxx . . $ `xvmc/i830_reg.h:606:9`! ((1<<7)-1)
607
608 /* _3DSTATE_VERTEX_TRANSFORM, p207 */
609 #define _3DSTATE_VERTEX_TRANS_CMDcxx . . $ `xvmc/i830_reg.h:609:9`! (CMD_3D|(0x1d<<24)|(0x8b<<16)|0)
610 #define _3DSTATE_VERTEX_TRANS_MTX_CMDcxx . . $ `xvmc/i830_reg.h:610:9`! (CMD_3D|(0x1d<<24)|(0x8b<<16)|6)
611 /* Dword 1 */
612 #define ENABLE_VIEWPORT_TRANSFORMcxx . . $ `xvmc/i830_reg.h:612:9`! ((1<<31)|(1<<30))
613 #define DISABLE_VIEWPORT_TRANSFORMcxx . . $ `xvmc/i830_reg.h:613:9`! (1<<31)
614 #define ENABLE_PERSP_DIVIDEcxx . . $ `xvmc/i830_reg.h:614:9`! ((1<<29)|(1<<28))
615 #define DISABLE_PERSP_DIVIDEcxx . . $ `xvmc/i830_reg.h:615:9`! (1<<29)
616 #define VRTX_TRANS_LOAD_MATRICEScxx . . $ `xvmc/i830_reg.h:616:9`! 0x7421
617 #define VRTX_TRANS_NO_LOAD_MATRICEScxx . . $ `xvmc/i830_reg.h:617:9`! 0x0000
618 /* Dword 2 -> 7 are matrix elements */
619
620 /* _3DSTATE_W_STATE, p209 */
621 #define _3DSTATE_W_STATE_CMDcxx . . $ `xvmc/i830_reg.h:621:9`! (CMD_3D|(0x1d<<24)|(0x8d<<16)|1)
622 /* Dword 1 */
623 #define MAGIC_W_STATE_DWORD1cxx . . $ `xvmc/i830_reg.h:623:9`! 0x00000008
624 /* Dword 2 */
625 #define WFAR_VALUEcxx . . $ `xvmc/i830_reg.h:625:9`!(x) (x)
626
627 /* Stipple command, carried over from the i810, apparently:
628 */
629 #define _3DSTATE_STIPPLEcxx . . $ `xvmc/i830_reg.h:629:9`! (CMD_3D|(0x1d<<24)|(0x83<<16))
630 #define ST1_ENABLEcxx . . $ `xvmc/i830_reg.h:630:9`! (1<<16)
631 #define ST1_MASKcxx . . $ `xvmc/i830_reg.h:631:9`! (0xffff)
632
633 #define _3DSTATE_LOAD_STATE_IMMEDIATE_1cxx . . $ `xvmc/i830_reg.h:633:9`! (CMD_3D|(0x1d<<24)|(0x04<<16))
634 #define I1_LOAD_Scxx . . $ `xvmc/i830_reg.h:634:9`!(n) (1<<((n)+4))
635 #define S3_POINT_WIDTH_SHIFTcxx . . $ `xvmc/i830_reg.h:635:9`! 23
636 #define S3_LINE_WIDTH_SHIFTcxx . . $ `xvmc/i830_reg.h:636:9`! 19
637 #define S3_ALPHA_SHADE_MODE_SHIFTcxx . . $ `xvmc/i830_reg.h:637:9`! 18
638 #define S3_FOG_SHADE_MODE_SHIFTcxx . . $ `xvmc/i830_reg.h:638:9`! 17
639 #define S3_SPEC_SHADE_MODE_SHIFTcxx . . $ `xvmc/i830_reg.h:639:9`! 16
640 #define S3_COLOR_SHADE_MODE_SHIFTcxx . . $ `xvmc/i830_reg.h:640:9`! 15
641 #define S3_CULL_MODE_SHIFTcxx . . $ `xvmc/i830_reg.h:641:9`! 13
642 #define S3_CULLMODE_BOTHcxx . . $ `xvmc/i830_reg.h:642:12`! (0)
643 #define S3_CULLMODE_NONEcxx . . $ `xvmc/i830_reg.h:643:12`! (1<<13)
644 #define S3_CULLMODE_CWcxx . . $ `xvmc/i830_reg.h:644:12`! (2<<13)
645 #define S3_CULLMODE_CCWcxx . . $ `xvmc/i830_reg.h:645:12`! (3<<13)
646 #define S3_POINT_WIDTH_PRESENTcxx . . $ `xvmc/i830_reg.h:646:9`! (1<<12)
647 #define S3_SPEC_FOG_PRESENTcxx . . $ `xvmc/i830_reg.h:647:9`! (1<<11)
648 #define S3_DIFFUSE_PRESENTcxx . . $ `xvmc/i830_reg.h:648:9`! (1<<10)
649 #define S3_DEPTH_OFFSET_PRESENTcxx . . $ `xvmc/i830_reg.h:649:9`! (1<<9)
650 #define S3_POSITION_SHIFTcxx . . $ `xvmc/i830_reg.h:650:9`! 6
651 #define S3_VERTEXHAS_XYZcxx . . $ `xvmc/i830_reg.h:651:12`! (1<<6)
652 #define S3_VERTEXHAS_XYZWcxx . . $ `xvmc/i830_reg.h:652:12`! (2<<6)
653 #define S3_VERTEXHAS_XYcxx . . $ `xvmc/i830_reg.h:653:12`! (3<<6)
654 #define S3_VERTEXHAS_XYWcxx . . $ `xvmc/i830_reg.h:654:12`! (4<<6)
655 #define S3_ENABLE_SPEC_ADDcxx . . $ `xvmc/i830_reg.h:655:9`! (1<<5)
656 #define S3_ENABLE_FOGcxx . . $ `xvmc/i830_reg.h:656:9`! (1<<4)
657 #define S3_ENABLE_LOCAL_DEPTH_BIAScxx . . $ `xvmc/i830_reg.h:657:9`! (1<<3)
658 #define S3_ENABLE_SPRITE_POINTcxx . . $ `xvmc/i830_reg.h:658:9`! (1<<1)
659 #define S3_ENABLE_ANTIALIASINGcxx . . $ `xvmc/i830_reg.h:659:9`! 1
660 #define S8_ENABLE_ALPHA_TESTcxx . . $ `xvmc/i830_reg.h:660:9`! (1<<31)
661 #define S8_ALPHA_TEST_FUNC_SHIFTcxx . . $ `xvmc/i830_reg.h:661:9`! 28
662 #define S8_ALPHA_REFVALUE_SHIFTcxx . . $ `xvmc/i830_reg.h:662:9`! 20
663 #define S8_ENABLE_DEPTH_TESTcxx . . $ `xvmc/i830_reg.h:663:9`! (1<<19)
664 #define S8_DEPTH_TEST_FUNC_SHIFTcxx . . $ `xvmc/i830_reg.h:664:9`! 16
665 #define S8_ENABLE_COLOR_BLENDcxx . . $ `xvmc/i830_reg.h:665:9`! (1<<15)
666 #define S8_COLOR_BLEND_FUNC_SHIFTcxx . . $ `xvmc/i830_reg.h:666:9`! 12
667 #define S8_BLENDFUNC_ADDcxx . . $ `xvmc/i830_reg.h:667:12`! (0)
668 #define S8_BLENDFUNC_SUBcxx . . $ `xvmc/i830_reg.h:668:12`! (1<<12)
669 #define S8_BLENDFUNC_RVRSE_SUBcxx . . $ `xvmc/i830_reg.h:669:12`! (2<<12)
670 #define S8_BLENDFUNC_MINcxx . . $ `xvmc/i830_reg.h:670:12`! (3<<12)
671 #define S8_BLENDFUNC_MAXcxx . . $ `xvmc/i830_reg.h:671:12`! (4<<12)
672 #define S8_SRC_BLEND_FACTOR_SHIFTcxx . . $ `xvmc/i830_reg.h:672:9`! 8
673 #define S8_DST_BLEND_FACTOR_SHIFTcxx . . $ `xvmc/i830_reg.h:673:9`! 4
674 #define S8_ENABLE_DEPTH_BUFFER_WRITEcxx . . $ `xvmc/i830_reg.h:674:9`! (1<<3)
675 #define S8_ENABLE_COLOR_BUFFER_WRITEcxx . . $ `xvmc/i830_reg.h:675:9`! (1<<2)
676
677 #define _3DSTATE_LOAD_STATE_IMMEDIATE_2cxx . . $ `xvmc/i830_reg.h:677:9`! (CMD_3D|(0x1d<<24)|(0x03<<16))
678 #define LOAD_TEXTURE_MAPcxx . . $ `xvmc/i830_reg.h:678:9`!(x) (1<<((x)+11))
679 #define LOAD_TEXTURE_BLEND_STAGEcxx . . $ `xvmc/i830_reg.h:679:9`!(x) (1<<((x)+7))
680 #define LOAD_GLOBAL_COLOR_FACTORcxx . . $ `xvmc/i830_reg.h:680:9`! (1<<6)
681
682 #define TM0S0_ADDRESS_MASKcxx . . $ `xvmc/i830_reg.h:682:9`! 0xfffffffc
683 #define TM0S0_USE_FENCEcxx . . $ `xvmc/i830_reg.h:683:9`! (1<<1)
684
685 #define TM0S1_HEIGHT_SHIFTcxx . . $ `xvmc/i830_reg.h:685:9`! 21
686 #define TM0S1_WIDTH_SHIFTcxx . . $ `xvmc/i830_reg.h:686:9`! 10
687 #define TM0S1_PALETTE_SELECTcxx . . $ `xvmc/i830_reg.h:687:9`! (1<<9)
688 #define TM0S1_MAPSURF_FORMAT_MASKcxx . . $ `xvmc/i830_reg.h:688:9`! (0x7 << 6)
689 #define TM0S1_MAPSURF_FORMAT_SHIFTcxx . . $ `xvmc/i830_reg.h:689:9`! 6
690 #define MAPSURF_8BIT_INDEXEDcxx . . $ `xvmc/i830_reg.h:690:12`! (0<<6)
691 #define MAPSURF_8BITcxx . . $ `xvmc/i830_reg.h:691:12`! (1<<6)
692 #define MAPSURF_16BITcxx . . $ `xvmc/i830_reg.h:692:12`! (2<<6)
693 #define MAPSURF_32BITcxx . . $ `xvmc/i830_reg.h:693:12`! (3<<6)
694 #define MAPSURF_411cxx . . $ `xvmc/i830_reg.h:694:12`! (4<<6)
695 #define MAPSURF_422cxx . . $ `xvmc/i830_reg.h:695:12`! (5<<6)
696 #define MAPSURF_COMPRESSEDcxx . . $ `xvmc/i830_reg.h:696:12`! (6<<6)
697 #define MAPSURF_4BIT_INDEXEDcxx . . $ `xvmc/i830_reg.h:697:12`! (7<<6)
698 #define TM0S1_MT_FORMAT_MASKcxx . . $ `xvmc/i830_reg.h:698:9`! (0x7 << 3)
699 #define TM0S1_MT_FORMAT_SHIFTcxx . . $ `xvmc/i830_reg.h:699:9`! 3
700 #define MT_4BIT_IDX_ARGB8888cxx . . $ `xvmc/i830_reg.h:700:12`! (7<<3) /* SURFACE_4BIT_INDEXED */
701 #define MT_8BIT_IDX_RGB565cxx . . $ `xvmc/i830_reg.h:701:12`! (0<<3) /* SURFACE_8BIT_INDEXED */
702 #define MT_8BIT_IDX_ARGB1555cxx . . $ `xvmc/i830_reg.h:702:12`! (1<<3)
703 #define MT_8BIT_IDX_ARGB4444cxx . . $ `xvmc/i830_reg.h:703:12`! (2<<3)
704 #define MT_8BIT_IDX_AY88cxx . . $ `xvmc/i830_reg.h:704:12`! (3<<3)
705 #define MT_8BIT_IDX_ABGR8888cxx . . $ `xvmc/i830_reg.h:705:12`! (4<<3)
706 #define MT_8BIT_IDX_BUMP_88DVDUcxx . . $ `xvmc/i830_reg.h:706:12`! (5<<3)
707 #define MT_8BIT_IDX_BUMP_655LDVDUcxx . . $ `xvmc/i830_reg.h:707:12`! (6<<3)
708 #define MT_8BIT_IDX_ARGB8888cxx . . $ `xvmc/i830_reg.h:708:12`! (7<<3)
709 #define MT_8BIT_I8cxx . . $ `xvmc/i830_reg.h:709:12`! (0<<3) /* SURFACE_8BIT */
710 #define MT_8BIT_L8cxx . . $ `xvmc/i830_reg.h:710:12`! (1<<3)
711 #define MT_8BIT_A8cxx . . $ `xvmc/i830_reg.h:711:12`! (4<<3)
712 #define MT_16BIT_RGB565cxx . . $ `xvmc/i830_reg.h:712:12`! (0<<3) /* SURFACE_16BIT */
713 #define MT_16BIT_ARGB1555cxx . . $ `xvmc/i830_reg.h:713:12`! (1<<3)
714 #define MT_16BIT_ARGB4444cxx . . $ `xvmc/i830_reg.h:714:12`! (2<<3)
715 #define MT_16BIT_AY88cxx . . $ `xvmc/i830_reg.h:715:12`! (3<<3)
716 #define MT_16BIT_DIB_ARGB1555_8888cxx . . $ `xvmc/i830_reg.h:716:12`! (4<<3)
717 #define MT_16BIT_BUMP_88DVDUcxx . . $ `xvmc/i830_reg.h:717:12`! (5<<3)
718 #define MT_16BIT_BUMP_655LDVDUcxx . . $ `xvmc/i830_reg.h:718:12`! (6<<3)
719 #define MT_16BIT_DIB_RGB565_8888cxx . . $ `xvmc/i830_reg.h:719:12`! (7<<3)
720 #define MT_32BIT_ARGB8888cxx . . $ `xvmc/i830_reg.h:720:12`! (0<<3) /* SURFACE_32BIT */
721 #define MT_32BIT_ABGR8888cxx . . $ `xvmc/i830_reg.h:721:12`! (1<<3)
722 #define MT_32BIT_XRGB8888cxx . . $ `xvmc/i830_reg.h:722:12`! (2<<3)
723 #define MT_32BIT_XBGR8888cxx . . $ `xvmc/i830_reg.h:723:12`! (3<<3)
724 #define MT_32BIT_BUMP_XLDVDU_8888cxx . . $ `xvmc/i830_reg.h:724:12`! (6<<3)
725 #define MT_32BIT_DIB_8888cxx . . $ `xvmc/i830_reg.h:725:12`! (7<<3)
726 #define MT_411_YUV411cxx . . $ `xvmc/i830_reg.h:726:12`! (0<<3) /* SURFACE_411 */
727 #define MT_422_YCRCB_SWAPYcxx . . $ `xvmc/i830_reg.h:727:12`! (0<<3) /* SURFACE_422 */
728 #define MT_422_YCRCB_NORMALcxx . . $ `xvmc/i830_reg.h:728:12`! (1<<3)
729 #define MT_422_YCRCB_SWAPUVcxx . . $ `xvmc/i830_reg.h:729:12`! (2<<3)
730 #define MT_422_YCRCB_SWAPUVYcxx . . $ `xvmc/i830_reg.h:730:12`! (3<<3)
731 #define MT_COMPRESS_DXT1cxx . . $ `xvmc/i830_reg.h:731:12`! (0<<3) /* SURFACE_COMPRESSED */
732 #define MT_COMPRESS_DXT2_3cxx . . $ `xvmc/i830_reg.h:732:12`! (1<<3)
733 #define MT_COMPRESS_DXT4_5cxx . . $ `xvmc/i830_reg.h:733:12`! (2<<3)
734 #define MT_COMPRESS_FXT1cxx . . $ `xvmc/i830_reg.h:734:12`! (3<<3)
735 #define TM0S1_COLORSPACE_CONVERSIONcxx . . $ `xvmc/i830_reg.h:735:9`! (1 << 2)
736 #define TM0S1_TILED_SURFACEcxx . . $ `xvmc/i830_reg.h:736:9`! (1 << 1)
737 #define TM0S1_TILE_WALKcxx . . $ `xvmc/i830_reg.h:737:9`! (1 << 0)
738
739 #define TM0S2_PITCH_SHIFTcxx . . $ `xvmc/i830_reg.h:739:9`! 21
740 #define TM0S2_CUBE_FACE_ENA_SHIFTcxx . . $ `xvmc/i830_reg.h:740:9`! 15
741 #define TM0S2_CUBE_FACE_ENA_MASKcxx . . $ `xvmc/i830_reg.h:741:9`! (1<<15)
742 #define TM0S2_MAP_FORMATcxx . . $ `xvmc/i830_reg.h:742:9`! (1<<14)
743 #define TM0S2_MAP_2Dcxx . . $ `xvmc/i830_reg.h:743:12`! (0<<14)
744 #define TM0S2_MAP_3D_CUBEcxx . . $ `xvmc/i830_reg.h:744:12`! (1<<14)
745 #define TM0S2_VERTICAL_LINE_STRIDEcxx . . $ `xvmc/i830_reg.h:745:9`! (1<<13)
746 #define TM0S2_VERITCAL_LINE_STRIDE_OFFcxx . . $ `xvmc/i830_reg.h:746:9`! (1<<12)
747 #define TM0S2_OUTPUT_CHAN_SHIFTcxx . . $ `xvmc/i830_reg.h:747:9`! 10
748 #define TM0S2_OUTPUT_CHAN_MASKcxx . . $ `xvmc/i830_reg.h:748:9`! (3<<10)
749
750 #define TM0S3_MIP_FILTER_MASKcxx . . $ `xvmc/i830_reg.h:750:9`! (0x3<<30)
751 #define TM0S3_MIP_FILTER_SHIFTcxx . . $ `xvmc/i830_reg.h:751:9`! 30
752 #define MIPFILTER_NONEcxx . . $ `xvmc/i830_reg.h:752:9`! 0
753 #define MIPFILTER_NEARESTcxx . . $ `xvmc/i830_reg.h:753:9`! 1
754 #define MIPFILTER_LINEARcxx . . $ `xvmc/i830_reg.h:754:9`! 3
755 #define TM0S3_MAG_FILTER_MASKcxx . . $ `xvmc/i830_reg.h:755:9`! (0x3<<28)
756 #define TM0S3_MAG_FILTER_SHIFTcxx . . $ `xvmc/i830_reg.h:756:9`! 28
757 #define TM0S3_MIN_FILTER_MASKcxx . . $ `xvmc/i830_reg.h:757:9`! (0x3<<26)
758 #define TM0S3_MIN_FILTER_SHIFTcxx . . $ `xvmc/i830_reg.h:758:9`! 26
759 #define FILTER_NEARESTcxx . . $ `xvmc/i830_reg.h:759:9`! 0
760 #define FILTER_LINEARcxx . . $ `xvmc/i830_reg.h:760:9`! 1
761 #define FILTER_ANISOTROPICcxx . . $ `xvmc/i830_reg.h:761:9`! 2
762
763 #define TM0S3_LOD_BIAS_SHIFTcxx . . $ `xvmc/i830_reg.h:763:9`! 17
764 #define TM0S3_LOD_BIAS_MASKcxx . . $ `xvmc/i830_reg.h:764:9`! (0x1ff<<17)
765 #define TM0S3_MAX_MIP_SHIFTcxx . . $ `xvmc/i830_reg.h:765:9`! 9
766 #define TM0S3_MAX_MIP_MASKcxx . . $ `xvmc/i830_reg.h:766:9`! (0xff<<9)
767 #define TM0S3_MIN_MIP_SHIFTcxx . . $ `xvmc/i830_reg.h:767:9`! 3
768 #define TM0S3_MIN_MIP_MASKcxx . . $ `xvmc/i830_reg.h:768:9`! (0x3f<<3)
769 #define TM0S3_KILL_PIXELcxx . . $ `xvmc/i830_reg.h:769:9`! (1<<2)
770 #define TM0S3_KEYED_FILTERcxx . . $ `xvmc/i830_reg.h:770:9`! (1<<1)
771 #define TM0S3_CHROMA_KEYcxx . . $ `xvmc/i830_reg.h:771:9`! (1<<0)
772
773 /* _3DSTATE_MAP_TEXEL_STREAM, p188 */
774 #define _3DSTATE_MAP_TEX_STREAM_CMDcxx . . $ `xvmc/i830_reg.h:774:9`! (CMD_3D|(0x1c<<24)|(0x05<<19))
775 #define DISABLE_TEX_STREAM_BUMPcxx . . $ `xvmc/i830_reg.h:775:9`! (1<<12)
776 #define ENABLE_TEX_STREAM_BUMPcxx . . $ `xvmc/i830_reg.h:776:9`! ((1<<12)|(1<<11))
777 #define TEX_MODIFY_UNIT_0cxx . . $ `xvmc/i830_reg.h:777:9`! 0
778 #define TEX_MODIFY_UNIT_1cxx . . $ `xvmc/i830_reg.h:778:9`! (1<<8)
779 #define ENABLE_TEX_STREAM_COORD_SETcxx . . $ `xvmc/i830_reg.h:779:9`! (1<<7)
780 #define TEX_STREAM_COORD_SETcxx . . $ `xvmc/i830_reg.h:780:9`!(x) ((x)<<4)
781 #define ENABLE_TEX_STREAM_MAP_IDXcxx . . $ `xvmc/i830_reg.h:781:9`! (1<<3)
782 #define TEX_STREAM_MAP_IDXcxx . . $ `xvmc/i830_reg.h:782:9`!(x) (x)
783
784 #define FLUSH_MAP_CACHEcxx . . $ `xvmc/i830_reg.h:784:9`! (1<<0)
785
786 #define _3DSTATE_MAP_FILTER_CMDcxx . . $ `xvmc/i830_reg.h:786:9`! (CMD_3D|(0x1c<<24)|(0x02<<19))
787 #define FILTER_TEXMAP_INDEXcxx . . $ `xvmc/i830_reg.h:787:9`!(x) ((x) << 16)
788 #define MAG_MODE_FILTER_ENABLEcxx . . $ `xvmc/i830_reg.h:788:9`! (1 << 5)
789 #define MIN_MODE_FILTER_ENABLEcxx . . $ `xvmc/i830_reg.h:789:9`! (1 << 2)
790 #define MAG_MAPFILTER_NEARESTcxx . . $ `xvmc/i830_reg.h:790:9`! (0 << 3)
791 #define MAG_MAPFILTER_LINEARcxx . . $ `xvmc/i830_reg.h:791:9`! (1 << 3)
792 #define MAG_MAPFILTER_ANISOTROPICcxx . . $ `xvmc/i830_reg.h:792:9`! (2 << 3)
793 #define MIN_MAPFILTER_NEARESTcxx . . $ `xvmc/i830_reg.h:793:9`! (0)
794 #define MIN_MAPFILTER_LINEARcxx . . $ `xvmc/i830_reg.h:794:9`! (1)
795 #define MIN_MAPFILTER_ANISOTROPICcxx . . $ `xvmc/i830_reg.h:795:9`! (2)
796 #define ENABLE_KEYScxx . . $ `xvmc/i830_reg.h:796:9`! (1<<15)
797 #define DISABLE_COLOR_KEYcxx . . $ `xvmc/i830_reg.h:797:9`! 0
798 #define DISABLE_CHROMA_KEYcxx . . $ `xvmc/i830_reg.h:798:9`! 0
799 #define DISABLE_KILL_PIXELcxx . . $ `xvmc/i830_reg.h:799:9`! 0
800 #define ENABLE_MIP_MODE_FILTERcxx . . $ `xvmc/i830_reg.h:800:9`! (1 << 9)
801 #define MIPFILTER_NONEcxx . . $ `xvmc/i830_reg.h:801:9`! 0
802 #define MIPFILTER_NEARESTcxx . . $ `xvmc/i830_reg.h:802:9`! 1
803 #define MIPFILTER_LINEARcxx . . $ `xvmc/i830_reg.h:803:9`! 3
804
805 #endif