Lines Matching +full:0 +full:x2184

35 #define R300_MC_INIT_MISC_LAT_TIMER	0x180
36 # define R300_MC_MISC__MC_CPR_INIT_LAT_SHIFT 0
45 #define R300_MC_INIT_GFX_LAT_TIMER 0x154
46 # define R300_MC_MISC__MC_G3D0R_INIT_LAT_SHIFT 0
63 #define R300_SE_VPORT_XSCALE 0x1D98
64 #define R300_SE_VPORT_XOFFSET 0x1D9C
65 #define R300_SE_VPORT_YSCALE 0x1DA0
66 #define R300_SE_VPORT_YOFFSET 0x1DA4
67 #define R300_SE_VPORT_ZSCALE 0x1DA8
68 #define R300_SE_VPORT_ZOFFSET 0x1DAC
75 #define R300_VAP_CNTL 0x2080
80 #define R300_VAP_VF_CNTL 0x2084
81 # define R300_VAP_VF_CNTL__PRIM_TYPE__SHIFT 0
82 # define R300_VAP_VF_CNTL__PRIM_NONE (0<<0)
83 # define R300_VAP_VF_CNTL__PRIM_POINTS (1<<0)
84 # define R300_VAP_VF_CNTL__PRIM_LINES (2<<0)
85 # define R300_VAP_VF_CNTL__PRIM_LINE_STRIP (3<<0)
86 # define R300_VAP_VF_CNTL__PRIM_TRIANGLES (4<<0)
87 # define R300_VAP_VF_CNTL__PRIM_TRIANGLE_FAN (5<<0)
88 # define R300_VAP_VF_CNTL__PRIM_TRIANGLE_STRIP (6<<0)
89 # define R300_VAP_VF_CNTL__PRIM_LINE_LOOP (12<<0)
90 # define R300_VAP_VF_CNTL__PRIM_QUADS (13<<0)
91 # define R300_VAP_VF_CNTL__PRIM_QUAD_STRIP (14<<0)
92 # define R300_VAP_VF_CNTL__PRIM_POLYGON (15<<0)
97 # define R300_VAP_VF_CNTL__PRIM_WALK_STATE_BASED (0<<4)
113 #define R300_VAP_OUTPUT_VTX_FMT_0 0x2090
114 # define R300_VAP_OUTPUT_VTX_FMT_0__POS_PRESENT (1<<0)
121 #define R300_VAP_OUTPUT_VTX_FMT_1 0x2094
124 # define R300_VAP_OUTPUT_VTX_FMT_1__TEX_0_COMP_CNT_SHIFT 0
134 #define R300_SE_VTE_CNTL 0x20b0
135 # define R300_VPORT_X_SCALE_ENA 0x00000001
136 # define R300_VPORT_X_OFFSET_ENA 0x00000002
137 # define R300_VPORT_Y_SCALE_ENA 0x00000004
138 # define R300_VPORT_Y_OFFSET_ENA 0x00000008
139 # define R300_VPORT_Z_SCALE_ENA 0x00000010
140 # define R300_VPORT_Z_OFFSET_ENA 0x00000020
141 # define R300_VTX_XY_FMT 0x00000100
142 # define R300_VTX_Z_FMT 0x00000200
143 # define R300_VTX_W0_FMT 0x00000400
144 # define R300_VTX_W0_NORMALIZE 0x00000800
145 # define R300_VTX_ST_DENORMALIZED 0x00001000
151 #define R300_VAP_CNTL_STATUS 0x2140
152 # define R300_VC_NO_SWAP (0 << 0)
153 # define R300_VC_16BIT_SWAP (1 << 0)
154 # define R300_VC_32BIT_SWAP (2 << 0)
164 * vertex arrays to 0, effectively reusing the same element over and over
183 #define R300_VAP_INPUT_ROUTE_0_0 0x2150
184 # define R300_INPUT_ROUTE_COMPONENTS_1 (0 << 0)
185 # define R300_INPUT_ROUTE_COMPONENTS_2 (1 << 0)
186 # define R300_INPUT_ROUTE_COMPONENTS_3 (2 << 0)
187 # define R300_INPUT_ROUTE_COMPONENTS_4 (3 << 0)
188 # define R300_INPUT_ROUTE_COMPONENTS_RGBA (4 << 0) /* GUESS */
192 # define R300_INPUT_ROUTE_IMMEDIATE_MODE (0 << 14) /* GUESS */
196 #define R300_VAP_INPUT_ROUTE_0_1 0x2154
197 #define R300_VAP_INPUT_ROUTE_0_2 0x2158
198 #define R300_VAP_INPUT_ROUTE_0_3 0x215C
199 #define R300_VAP_INPUT_ROUTE_0_4 0x2160
200 #define R300_VAP_INPUT_ROUTE_0_5 0x2164
201 #define R300_VAP_INPUT_ROUTE_0_6 0x2168
202 #define R300_VAP_INPUT_ROUTE_0_7 0x216C
211 #define R300_VAP_INPUT_CNTL_0 0x2180
212 # define R300_INPUT_CNTL_0_COLOR 0x00000001
213 #define R300_VAP_INPUT_CNTL_1 0x2184
214 # define R300_INPUT_CNTL_POS 0x00000001
215 # define R300_INPUT_CNTL_NORMAL 0x00000002
216 # define R300_INPUT_CNTL_COLOR 0x00000004
217 # define R300_INPUT_CNTL_TC0 0x00000400
218 # define R300_INPUT_CNTL_TC1 0x00000800
219 # define R300_INPUT_CNTL_TC2 0x00001000 /* GUESS */
220 # define R300_INPUT_CNTL_TC3 0x00002000 /* GUESS */
221 # define R300_INPUT_CNTL_TC4 0x00004000 /* GUESS */
222 # define R300_INPUT_CNTL_TC5 0x00008000 /* GUESS */
223 # define R300_INPUT_CNTL_TC6 0x00010000 /* GUESS */
224 # define R300_INPUT_CNTL_TC7 0x00020000 /* GUESS */
229 * are set to a swizzling bit pattern, other words are 0.
235 #define R300_VAP_INPUT_ROUTE_1_0 0x21E0
236 # define R300_INPUT_ROUTE_SELECT_X 0
243 # define R300_INPUT_ROUTE_X_SHIFT 0
248 #define R300_VAP_INPUT_ROUTE_1_1 0x21E4
249 #define R300_VAP_INPUT_ROUTE_1_2 0x21E8
250 #define R300_VAP_INPUT_ROUTE_1_3 0x21EC
251 #define R300_VAP_INPUT_ROUTE_1_4 0x21F0
252 #define R300_VAP_INPUT_ROUTE_1_5 0x21F4
253 #define R300_VAP_INPUT_ROUTE_1_6 0x21F8
254 #define R300_VAP_INPUT_ROUTE_1_7 0x21FC
279 * At address UPLOAD_POINTSIZE is a vector (0, 0, ps, 0), where ps is the
286 #define R300_VAP_PVS_UPLOAD_ADDRESS 0x2200
287 # define R300_PVS_UPLOAD_PROGRAM 0x00000000
288 # define R300_PVS_UPLOAD_PARAMETERS 0x00000200
289 # define R300_PVS_UPLOAD_POINTSIZE 0x00000406
293 #define R300_VAP_PVS_UPLOAD_DATA 0x2208
303 #define R300_VAP_UNKNOWN_221C 0x221C
304 # define R300_221C_NORMAL 0x00000000
305 # define R300_221C_CLEAR 0x0001C000
314 #define R300_VAP_CLIP_X_0 0x2220
315 #define R300_VAP_CLIP_X_1 0x2224
316 #define R300_VAP_CLIP_Y_0 0x2228
317 #define R300_VAP_CLIP_Y_1 0x2230
321 /* Sometimes, END_OF_PKT and 0x2284=0 are the only commands sent between
323 * Therefore, I suspect writing zero to 0x2284 synchronizes the engine and
326 #define R300_VAP_PVS_STATE_FLUSH_REG 0x2284
329 #define R300_VAP_UNKNOWN_2288 0x2288
330 # define R300_2288_R300 0x00750000 /* -- nh */
331 # define R300_2288_RV350 0x0000FFFF /* -- Vladimir */
352 #define R300_VAP_PVS_CNTL_1 0x22D0
353 # define R300_PVS_CNTL_1_PROGRAM_START_SHIFT 0
357 #define R300_VAP_PVS_CNTL_2 0x22D4
358 # define R300_PVS_CNTL_2_PARAM_OFFSET_SHIFT 0
360 #define R300_VAP_PVS_CNTL_3 0x22D8
362 # define R300_PVS_CNTL_3_PROGRAM_UNKNOWN2_SHIFT 0
364 /* The entire range from 0x2300 to 0x2AC inclusive seems to be used for
367 #define R300_VAP_VTX_COLOR_R 0x2464
368 #define R300_VAP_VTX_COLOR_G 0x2468
369 #define R300_VAP_VTX_COLOR_B 0x246C
370 #define R300_VAP_VTX_POS_0_X_1 0x2490 /* used for glVertex2*() */
371 #define R300_VAP_VTX_POS_0_Y_1 0x2494
372 #define R300_VAP_VTX_COLOR_PKD 0x249C /* RGBA */
373 #define R300_VAP_VTX_POS_0_X_2 0x24A0 /* used for glVertex3*() */
374 #define R300_VAP_VTX_POS_0_Y_2 0x24A4
375 #define R300_VAP_VTX_POS_0_Z_2 0x24A8
376 /* write 0 to indicate end of packet? */
377 #define R300_VAP_VTX_END_OF_PKT 0x24AC
385 #define R300_GB_VAP_RASTER_VTX_FMT_0 0x4000
386 # define R300_GB_VAP_RASTER_VTX_FMT_0__POS_PRESENT (1<<0)
391 # define R300_GB_VAP_RASTER_VTX_FMT_0__COLOR_SPACE (0xf<<5)
392 # define R300_GB_VAP_RASTER_VTX_FMT_0__PT_SIZE_PRESENT (0x1<<16)
394 #define R300_GB_VAP_RASTER_VTX_FMT_1 0x4004
397 # define R300_GB_VAP_RASTER_VTX_FMT_1__TEX_0_COMP_CNT_SHIFT 0
411 #define R300_GB_ENABLE 0x4008
412 # define R300_GB_POINT_STUFF_ENABLE (1<<0)
418 #define R300_GB_TEX_REPLICATE 0
431 #define R300_GB_MSPOS0 0x4010
433 # define R300_GB_MSPOS0__MS_X0_SHIFT 0
442 #define R300_GB_MSPOS1 0x4014
443 # define R300_GB_MSPOS1__MS_X3_SHIFT 0
452 #define R300_GB_TILE_CONFIG 0x4018
453 # define R300_GB_TILE_ENABLE (1<<0)
454 # define R300_GB_TILE_PIPE_COUNT_RV300 0
458 # define R300_GB_TILE_SIZE_8 0
461 # define R300_GB_SUPER_SIZE_1 (0<<6)
471 # define R300_GB_SUPER_TILE_A 0
473 # define R300_GB_SUBPIXEL_1_12 0
476 #define R300_GB_FIFO_SIZE 0x4024
478 #define R300_GB_FIFO_SIZE_32 0
482 # define R300_SC_IFIFO_SIZE_SHIFT 0
499 #define R300_GB_SELECT 0x401C
500 # define R300_GB_FOG_SELECT_C0A 0
506 # define R300_GB_DEPTH_SELECT_Z 0
508 # define R300_GB_W_SELECT_1_W 0
511 #define R300_GB_AA_CONFIG 0x4020
512 # define R300_AA_DISABLE 0x00
513 # define R300_AA_ENABLE 0x01
514 # define R300_AA_SUBSAMPLES_2 0
522 #define R300_TX_INVALTAGS 0x4100
523 #define R300_TX_FLUSH 0x0
526 #define R300_TX_ENABLE 0x4104
527 # define R300_TX_ENABLE_0 (1 << 0)
548 #define R300_RE_POINTSIZE 0x421C
549 # define R300_POINTSIZE_Y_SHIFT 0
550 # define R300_POINTSIZE_Y_MASK (0xFFFF << 0) /* GUESS */
552 # define R300_POINTSIZE_X_MASK (0xFFFF << 16) /* GUESS */
561 #define R300_RE_LINE_CNT 0x4234
562 # define R300_LINESIZE_SHIFT 0
563 # define R300_LINESIZE_MASK (0xFFFF << 0) /* GUESS */
569 #define R300_RE_UNK4238 0x4238
572 #define R300_RE_SHADE 0x4274
574 #define R300_RE_SHADE_MODEL 0x4278
575 # define R300_RE_SHADE_MODEL_SMOOTH 0x3aaaa
576 # define R300_RE_SHADE_MODEL_FLAT 0x39595
579 #define R300_RE_POLYGON_MODE 0x4288
580 # define R300_PM_ENABLED (1 << 0)
581 # define R300_PM_FRONT_POINT (0 << 0)
582 # define R300_PM_BACK_POINT (0 << 0)
589 #define R300_RE_FOG_SCALE 0x4294
590 #define R300_RE_FOG_START 0x4298
598 #define R300_RE_ZBIAS_CNTL 0x42A0 /* GUESS */
599 #define R300_RE_ZBIAS_T_FACTOR 0x42A4
600 #define R300_RE_ZBIAS_T_CONSTANT 0x42A8
601 #define R300_RE_ZBIAS_W_FACTOR 0x42AC
602 #define R300_RE_ZBIAS_W_CONSTANT 0x42B0
613 #define R300_RE_OCCLUSION_CNTL 0x42B4
616 #define R300_RE_CULL_CNTL 0x42B8
617 # define R300_CULL_FRONT (1 << 0)
619 # define R300_FRONT_FACE_CCW (0 << 2)
625 /* 0_UNKNOWN_18 has always been set except for clear operations.
629 #define R300_RS_CNTL_0 0x4300
637 #define R300_RS_CNTL_1 0x4304
646 * be source index 0.
654 #define R300_RS_INTERP_0 0x4310
655 #define R300_RS_INTERP_1 0x4314
656 # define R300_RS_INTERP_1_UNKNOWN 0x40
657 #define R300_RS_INTERP_2 0x4318
658 # define R300_RS_INTERP_2_UNKNOWN 0x80
659 #define R300_RS_INTERP_3 0x431C
660 # define R300_RS_INTERP_3_UNKNOWN 0xC0
661 #define R300_RS_INTERP_4 0x4320
662 #define R300_RS_INTERP_5 0x4324
663 #define R300_RS_INTERP_6 0x4328
664 #define R300_RS_INTERP_7 0x432C
667 # define R300_RS_INTERP_USED 0x00D10000
672 #define R300_RS_ROUTE_0 0x4330
673 #define R300_RS_ROUTE_1 0x4334
674 #define R300_RS_ROUTE_2 0x4338
675 #define R300_RS_ROUTE_3 0x433C /* GUESS */
676 #define R300_RS_ROUTE_4 0x4340 /* GUESS */
677 #define R300_RS_ROUTE_5 0x4344 /* GUESS */
678 #define R300_RS_ROUTE_6 0x4348 /* GUESS */
679 #define R300_RS_ROUTE_7 0x434C /* GUESS */
680 # define R300_RS_ROUTE_SOURCE_INTERP_0 0
712 #define R300_SC_HYPERZ 0x43a4
713 # define R300_SC_HYPERZ_DISABLE (0 << 0)
714 # define R300_SC_HYPERZ_ENABLE (1 << 0)
715 # define R300_SC_HYPERZ_MIN (0 << 1)
717 # define R300_SC_HYPERZ_ADJ_256 (0 << 2)
725 # define R300_SC_HYPERZ_HZ_Z0MIN_NO (0 << 5)
727 # define R300_SC_HYPERZ_HZ_Z0MAX_NO (0 << 6)
730 #define R300_SC_EDGERULE 0x43a8
735 * Every pixel is assigned a number from 0 and 15 by setting bits 0-3 depending
736 * on whether the pixel is inside cliprects 0-3, respectively. For example,
737 * if a pixel is inside cliprects 0 and 1, but outside 2 and 3, it is assigned
748 #define R300_RE_CLIPRECT_TL_0 0x43B0
749 #define R300_RE_CLIPRECT_BR_0 0x43B4
750 #define R300_RE_CLIPRECT_TL_1 0x43B8
751 #define R300_RE_CLIPRECT_BR_1 0x43BC
752 #define R300_RE_CLIPRECT_TL_2 0x43C0
753 #define R300_RE_CLIPRECT_BR_2 0x43C4
754 #define R300_RE_CLIPRECT_TL_3 0x43C8
755 #define R300_RE_CLIPRECT_BR_3 0x43CC
757 # define R300_CLIPRECT_MASK 0x1FFF
758 # define R300_CLIPRECT_X_SHIFT 0
759 # define R300_CLIPRECT_X_MASK (0x1FFF << 0)
761 # define R300_CLIPRECT_Y_MASK (0x1FFF << 13)
762 #define R300_RE_CLIPRECT_CNTL 0x43D0
763 # define R300_CLIP_OUT (1 << 0)
782 #define R300_RE_SCISSORS_TL 0x43E0
783 #define R300_RE_SCISSORS_BR 0x43E4
785 # define R300_SCISSORS_X_SHIFT 0
786 # define R300_SCISSORS_X_MASK (0x1FFF << 0)
788 # define R300_SCISSORS_Y_MASK (0x1FFF << 13)
798 #define R300_TX_FILTER_0 0x4400
799 # define R300_TX_REPEAT 0
804 # define R300_TX_WRAP_S_SHIFT 0
805 # define R300_TX_WRAP_S_MASK (7 << 0)
824 # define R300_TX_MIN_FILTER_ANISO_NEAREST (0 << 13)
825 # define R300_TX_MIN_FILTER_ANISO_LINEAR (0 << 13)
829 # define R300_TX_MAX_ANISO_1_TO_1 (0 << 21)
836 #define R300_TX_FILTER1_0 0x4440
837 # define R300_CHROMA_KEY_MODE_DISABLE 0
840 # define R300_MC_ROUND_NORMAL (0<<2)
842 # define R300_LOD_BIAS_MASK 0x1fff
843 # define R300_EDGE_ANISO_EDGE_DIAG (0<<13)
845 # define R300_MC_COORD_TRUNCATE_DISABLE (0<<14)
847 # define R300_TX_TRI_PERF_0_8 (0<<15)
853 #define R300_TX_SIZE_0 0x4480
854 # define R300_TX_WIDTHMASK_SHIFT 0
855 # define R300_TX_WIDTHMASK_MASK (2047 << 0)
860 # define R300_TX_MAX_MIP_LEVEL_MASK (0xf << 26)
863 #define R300_TX_FORMAT_0 0x44C0
868 # define R300_TX_FORMAT_X8 0x0
869 # define R300_TX_FORMAT_X16 0x1
870 # define R300_TX_FORMAT_Y4X4 0x2
871 # define R300_TX_FORMAT_Y8X8 0x3
872 # define R300_TX_FORMAT_Y16X16 0x4
873 # define R300_TX_FORMAT_Z3Y3X2 0x5
874 # define R300_TX_FORMAT_Z5Y6X5 0x6
875 # define R300_TX_FORMAT_Z6Y5X5 0x7
876 # define R300_TX_FORMAT_Z11Y11X10 0x8
877 # define R300_TX_FORMAT_Z10Y11X11 0x9
878 # define R300_TX_FORMAT_W4Z4Y4X4 0xA
879 # define R300_TX_FORMAT_W1Z5Y5X5 0xB
880 # define R300_TX_FORMAT_W8Z8Y8X8 0xC
881 # define R300_TX_FORMAT_W2Z10Y10X10 0xD
882 # define R300_TX_FORMAT_W16Z16Y16X16 0xE
883 # define R300_TX_FORMAT_DXT1 0xF
884 # define R300_TX_FORMAT_DXT3 0x10
885 # define R300_TX_FORMAT_DXT5 0x11
886 # define R300_TX_FORMAT_D3DMFT_CxV8U8 0x12 /* no swizzle */
887 # define R300_TX_FORMAT_A8R8G8B8 0x13 /* no swizzle */
888 # define R300_TX_FORMAT_B8G8_B8G8 0x14 /* no swizzle */
889 # define R300_TX_FORMAT_G8R8_G8B8 0x15 /* no swizzle */
890 /* 0x16 - some 16 bit green format.. ?? */
897 # define R300_TX_FORMAT_FL_I16 0x18
898 # define R300_TX_FORMAT_FL_I16A16 0x19
899 # define R300_TX_FORMAT_FL_R16G16B16A16 0x1A
900 # define R300_TX_FORMAT_FL_I32 0x1B
901 # define R300_TX_FORMAT_FL_I32A32 0x1C
902 # define R300_TX_FORMAT_FL_R32G32B32A32 0x1D
903 # define R300_TX_FORMAT_ATI2N 0x1F
907 # define R300_TX_FORMAT_ALPHA_1CH 0x000
908 # define R300_TX_FORMAT_ALPHA_2CH 0x200
909 # define R300_TX_FORMAT_ALPHA_4CH 0x600
910 # define R300_TX_FORMAT_ALPHA_NONE 0xA00
913 # define R300_TX_FORMAT_X 0
944 # define R300_TX_FORMAT_YUV_MODE 0x00800000
946 #define R300_TX_PITCH_0 0x4500 /* obvious missing in gap */
947 #define R300_TX_OFFSET_0 0x4540
949 # define R300_TXO_ENDIAN_NO_SWAP (0 << 0)
950 # define R300_TXO_ENDIAN_BYTE_SWAP (1 << 0)
951 # define R300_TXO_ENDIAN_WORD_SWAP (2 << 0)
952 # define R300_TXO_ENDIAN_HALFDW_SWAP (3 << 0)
956 # define R300_TXO_OFFSET_MASK 0xffffffe0
961 #define R300_TX_CHROMA_KEY_0 0x4580
962 /* ff00ff00 == { 0, 1.0, 0, 1.0 } */
963 #define R300_TX_BORDER_COLOR_0 0x45C0
980 * The index of the last node is stored in PFS_CNTL_0: A value of 0 means
986 #define R300_PFS_CNTL_0 0x4600
987 # define R300_PFS_CNTL_LAST_NODES_SHIFT 0
988 # define R300_PFS_CNTL_LAST_NODES_MASK (3 << 0)
990 #define R300_PFS_CNTL_1 0x4604
994 #define R300_PFS_CNTL_2 0x4608
995 # define R300_PFS_CNTL_ALU_OFFSET_SHIFT 0
996 # define R300_PFS_CNTL_ALU_OFFSET_MASK (63 << 0)
1008 * Example: In a 2-node program, NODE_0 and NODE_1 are set to 0. The
1013 #define R300_PFS_NODE_0 0x4610
1014 #define R300_PFS_NODE_1 0x4614
1015 #define R300_PFS_NODE_2 0x4618
1016 #define R300_PFS_NODE_3 0x461C
1017 # define R300_PFS_NODE_ALU_OFFSET_SHIFT 0
1018 # define R300_PFS_NODE_ALU_OFFSET_MASK (63 << 0)
1031 * even if it's just MAD o0, r0, 1, 0
1033 #define R300_PFS_TEXI_0 0x4620
1034 # define R300_FPITX_SRC_SHIFT 0
1035 # define R300_FPITX_SRC_MASK (31 << 0)
1066 * - CMP: If ARG2 < 0, return ARG1, else return ARG0
1085 * fglrx fills unused sources with "read constant 0"
1117 #define R300_PFS_INSTR1_0 0x46C0
1118 # define R300_FPI1_SRC0C_SHIFT 0
1119 # define R300_FPI1_SRC0C_MASK (31 << 0)
1127 # define R300_FPI1_SRC_MASK 0x0003ffff
1139 #define R300_PFS_INSTR3_0 0x47C0
1140 # define R300_FPI3_SRC0A_SHIFT 0
1141 # define R300_FPI3_SRC0A_MASK (31 << 0)
1149 # define R300_FPI3_SRC_MASK 0x0003ffff
1156 #define R300_PFS_INSTR0_0 0x48C0
1157 # define R300_FPI0_ARGC_SRC0C_XYZ 0
1187 # define R300_FPI0_ARG0C_SHIFT 0
1188 # define R300_FPI0_ARG0C_MASK (31 << 0)
1200 # define R300_FPI0_OUTC_MAD (0 << 23)
1212 #define R300_PFS_INSTR2_0 0x49C0
1213 # define R300_FPI2_ARGA_SRC0C_X 0
1230 # define R300_FPI2_ARG0A_SHIFT 0
1231 # define R300_FPI2_ARG0A_MASK (31 << 0)
1246 # define R300_FPI2_OUTA_MAD (0 << 23)
1261 #define R300_RE_FOG_STATE 0x4BC0
1262 # define R300_FOG_ENABLE (1 << 0)
1263 # define R300_FOG_MODE_LINEAR (0 << 1)
1267 #define R300_FOG_COLOR_R 0x4BC8
1268 #define R300_FOG_COLOR_G 0x4BCC
1269 #define R300_FOG_COLOR_B 0x4BD0
1271 #define R300_PP_ALPHA_TEST 0x4BD4
1272 # define R300_REF_ALPHA_MASK 0x000000ff
1273 # define R300_ALPHA_TEST_FAIL (0 << 8)
1287 #define R300_PFS_PARAM_0_X 0x4C00
1288 #define R300_PFS_PARAM_0_Y 0x4C04
1289 #define R300_PFS_PARAM_0_Z 0x4C08
1290 #define R300_PFS_PARAM_0_W 0x4C0C
1292 #define R300_PFS_PARAM_31_X 0x4DF0
1293 #define R300_PFS_PARAM_31_Y 0x4DF4
1294 #define R300_PFS_PARAM_31_Z 0x4DF8
1295 #define R300_PFS_PARAM_31_W 0x4DFC
1305 #define R300_RB3D_CBLEND 0x4E04
1306 #define R300_RB3D_ABLEND 0x4E08
1308 # define R300_BLEND_ENABLE (1 << 0)
1313 # define R300_COMB_FCN_ADD_CLAMP (0 << 12)
1339 #define R300_RB3D_BLEND_COLOR 0x4E10
1340 #define R300_RB3D_COLORMASK 0x4E0C
1341 # define R300_COLORMASK0_B (1<<0)
1348 #define R300_RB3D_COLOROFFSET0 0x4E28
1349 # define R300_COLOROFFSET_MASK 0xFFFFFFF0 /* GUESS */
1350 #define R300_RB3D_COLOROFFSET1 0x4E2C /* GUESS */
1351 #define R300_RB3D_COLOROFFSET2 0x4E30 /* GUESS */
1352 #define R300_RB3D_COLOROFFSET3 0x4E34 /* GUESS */
1360 #define R300_RB3D_COLORPITCH0 0x4E38
1361 # define R300_COLORPITCH_MASK 0x00001FF8 /* GUESS */
1365 # define R300_COLOR_ENDIAN_NO_SWAP (0 << 18) /* GUESS */
1370 #define R300_RB3D_COLORPITCH1 0x4E3C /* GUESS */
1371 #define R300_RB3D_COLORPITCH2 0x4E40 /* GUESS */
1372 #define R300_RB3D_COLORPITCH3 0x4E44 /* GUESS */
1374 #define R300_RB3D_AARESOLVE_OFFSET 0x4E80
1375 #define R300_RB3D_AARESOLVE_PITCH 0x4E84
1376 #define R300_RB3D_AARESOLVE_CTL 0x4E88
1380 * Set to 0A before 3D operations, set to 02 afterwards.
1382 /*#define R300_RB3D_DSTCACHE_CTLSTAT 0x4E4C*/
1383 # define R300_RB3D_DSTCACHE_UNKNOWN_02 0x00000002
1384 # define R300_RB3D_DSTCACHE_UNKNOWN_0A 0x0000000A
1391 #define R300_ZB_CNTL 0x4F00
1392 # define R300_STENCIL_ENABLE (1 << 0)
1398 #define R300_ZB_ZSTENCILCNTL 0x4f04
1400 # define R300_ZS_NEVER 0
1410 # define R300_ZS_KEEP 0
1418 # define R300_Z_FUNC_SHIFT 0
1430 #define R300_ZB_STENCILREFMASK 0x4f08
1431 # define R300_STENCILREF_SHIFT 0
1432 # define R300_STENCILREF_MASK 0x000000ff
1434 # define R300_STENCILMASK_MASK 0x0000ff00
1436 # define R300_STENCILWRITEMASK_MASK 0x00ff0000
1440 #define R300_ZB_FORMAT 0x4f10
1441 # define R300_DEPTHFORMAT_16BIT_INT_Z (0 << 0)
1442 # define R300_DEPTHFORMAT_16BIT_13E3 (1 << 0)
1443 # define R300_DEPTHFORMAT_24BIT_INT_Z_8BIT_STENCIL (2 << 0)
1444 /* reserved up to (15 << 0) */
1445 # define R300_INVERT_13E3_LEADING_ONES (0 << 4)
1448 #define R300_ZB_ZTOP 0x4F14
1449 # define R300_ZTOP_DISABLE (0 << 0)
1450 # define R300_ZTOP_ENABLE (1 << 0)
1454 #define R300_ZB_ZCACHE_CTLSTAT 0x4f18
1455 # define R300_ZB_ZCACHE_CTLSTAT_ZC_FLUSH_NO_EFFECT (0 << 0)
1456 # define R300_ZB_ZCACHE_CTLSTAT_ZC_FLUSH_FLUSH_AND_FREE (1 << 0)
1457 # define R300_ZB_ZCACHE_CTLSTAT_ZC_FREE_NO_EFFECT (0 << 1)
1459 # define R300_ZB_ZCACHE_CTLSTAT_ZC_BUSY_IDLE (0 << 31)
1462 #define R300_ZB_BW_CNTL 0x4f1c
1463 # define R300_HIZ_DISABLE (0 << 0)
1464 # define R300_HIZ_ENABLE (1 << 0)
1465 # define R300_HIZ_MIN (0 << 1)
1467 # define R300_FAST_FILL_DISABLE (0 << 2)
1469 # define R300_RD_COMP_DISABLE (0 << 3)
1471 # define R300_WR_COMP_DISABLE (0 << 4)
1473 # define R300_ZB_CB_CLEAR_RMW (0 << 5)
1475 # define R300_FORCE_COMPRESSED_STENCIL_VALUE_DISABLE (0 << 6)
1478 # define R500_ZEQUAL_OPTIMIZE_ENABLE (0 << 7)
1480 # define R500_SEQUAL_OPTIMIZE_ENABLE (0 << 8)
1483 # define R500_BMASK_ENABLE (0 << 10)
1485 # define R500_HIZ_EQUAL_REJECT_DISABLE (0 << 11)
1487 # define R500_HIZ_FP_EXP_BITS_DISABLE (0 << 12)
1493 # define R500_HIZ_FP_INVERT_LEADING_ONES (0 << 15)
1495 # define R500_TILE_OVERWRITE_RECOMPRESSION_ENABLE (0 << 16)
1497 # define R500_CONTIGUOUS_6XAA_SAMPLES_ENABLE (0 << 17)
1499 # define R500_PEQ_PACKING_DISABLE (0 << 18)
1501 # define R500_COVERED_PTR_MASKING_DISABLE (0 << 18)
1510 #define R300_ZB_DEPTHOFFSET 0x4f20
1513 #define R300_ZB_DEPTHPITCH 0x4f24
1514 # define R300_DEPTHPITCH_MASK 0x00003FFC
1515 # define R300_DEPTHMACROTILE_DISABLE (0 << 16)
1517 # define R300_DEPTHMICROTILE_LINEAR (0 << 17)
1520 # define R300_DEPTHENDIAN_NO_SWAP (0 << 18)
1526 #define R300_ZB_DEPTHCLEARVALUE 0x4f28
1528 #define R300_ZB_ZMASK_OFFSET 0x4f30
1529 #define R300_ZB_ZMASK_PITCH 0x4f34
1530 #define R300_ZB_ZMASK_WRINDEX 0x4f38
1531 #define R300_ZB_ZMASK_DWORD 0x4f3c
1532 #define R300_ZB_ZMASK_RDINDEX 0x4f40
1535 #define R300_ZB_HIZ_OFFSET 0x4f44
1538 #define R300_ZB_HIZ_WRINDEX 0x4f48
1541 #define R300_ZB_HIZ_DWORD 0x4f4c
1544 #define R300_ZB_HIZ_RDINDEX 0x4f50
1547 #define R300_ZB_HIZ_PITCH 0x4f54
1550 #define R300_ZB_ZPASS_DATA 0x4f58
1553 #define R300_ZB_ZPASS_ADDR 0x4f5c
1556 #define R300_ZB_DEPTHXY_OFFSET 0x4f60
1558 # define R300_DEPTHX_OFFSET_MASK 0x000007FE
1560 # define R300_DEPTHY_OFFSET_MASK 0x07FE0000
1563 #define R500_ZB_FIFO_SIZE 0x4fd0
1564 # define R500_OP_FIFO_SIZE_FULL (0 << 0)
1565 # define R500_OP_FIFO_SIZE_HALF (1 << 0)
1566 # define R500_OP_FIFO_SIZE_QUATER (2 << 0)
1567 # define R500_OP_FIFO_SIZE_EIGTHS (4 << 0)
1571 #define R500_ZB_STENCILREFMASK_BF 0x4fd4
1572 # define R500_STENCILREF_SHIFT 0
1573 # define R500_STENCILREF_MASK 0x000000ff
1575 # define R500_STENCILMASK_MASK 0x0000ff00
1577 # define R500_STENCILWRITEMASK_MASK 0x00ff0000
1582 * DWORD 0: output and opcode
1613 #define R300_VPI_OUT_OP_DOT (1 << 0)
1614 #define R300_VPI_OUT_OP_MUL (2 << 0)
1615 #define R300_VPI_OUT_OP_ADD (3 << 0)
1616 #define R300_VPI_OUT_OP_MAD (4 << 0)
1617 #define R300_VPI_OUT_OP_DST (5 << 0)
1618 #define R300_VPI_OUT_OP_FRC (6 << 0)
1619 #define R300_VPI_OUT_OP_MAX (7 << 0)
1620 #define R300_VPI_OUT_OP_MIN (8 << 0)
1621 #define R300_VPI_OUT_OP_SGE (9 << 0)
1622 #define R300_VPI_OUT_OP_SLT (10 << 0)
1624 #define R300_VPI_OUT_OP_UNK12 (12 << 0)
1625 #define R300_VPI_OUT_OP_ARL (13 << 0)
1626 #define R300_VPI_OUT_OP_EXP (65 << 0)
1627 #define R300_VPI_OUT_OP_LOG (66 << 0)
1629 #define R300_VPI_OUT_OP_UNK67 (67 << 0)
1630 #define R300_VPI_OUT_OP_LIT (68 << 0)
1631 #define R300_VPI_OUT_OP_POW (69 << 0)
1632 #define R300_VPI_OUT_OP_RCP (70 << 0)
1633 #define R300_VPI_OUT_OP_RSQ (72 << 0)
1635 #define R300_VPI_OUT_OP_UNK73 (73 << 0)
1636 #define R300_VPI_OUT_OP_EX2 (75 << 0)
1637 #define R300_VPI_OUT_OP_LG2 (76 << 0)
1638 #define R300_VPI_OUT_OP_MAD_2 (128 << 0)
1640 #define R300_VPI_OUT_OP_UNK129 (129 << 0)
1642 #define R300_VPI_OUT_REG_CLASS_TEMPORARY (0 << 8)
1656 #define R300_VPI_IN_REG_CLASS_TEMPORARY (0 << 0)
1657 #define R300_VPI_IN_REG_CLASS_ATTRIBUTE (1 << 0)
1658 #define R300_VPI_IN_REG_CLASS_PARAMETER (2 << 0)
1659 #define R300_VPI_IN_REG_CLASS_NONE (9 << 0)
1660 #define R300_VPI_IN_REG_CLASS_MASK (31 << 0)
1670 #define R300_VPI_IN_SELECT_X 0
1692 #define R300_PRIM_TYPE_NONE (0 << 0)
1693 #define R300_PRIM_TYPE_POINT (1 << 0)
1694 #define R300_PRIM_TYPE_LINE (2 << 0)
1695 #define R300_PRIM_TYPE_LINE_STRIP (3 << 0)
1696 #define R300_PRIM_TYPE_TRI_LIST (4 << 0)
1697 #define R300_PRIM_TYPE_TRI_FAN (5 << 0)
1698 #define R300_PRIM_TYPE_TRI_STRIP (6 << 0)
1699 #define R300_PRIM_TYPE_TRI_TYPE2 (7 << 0)
1700 #define R300_PRIM_TYPE_RECT_LIST (8 << 0)
1701 #define R300_PRIM_TYPE_3VRT_POINT_LIST (9 << 0)
1702 #define R300_PRIM_TYPE_3VRT_LINE_LIST (10 << 0)
1704 #define R300_PRIM_TYPE_POINT_SPRITES (11 << 0)
1705 #define R300_PRIM_TYPE_LINE_LOOP (12 << 0)
1706 #define R300_PRIM_TYPE_QUADS (13 << 0)
1707 #define R300_PRIM_TYPE_QUAD_STRIP (14 << 0)
1708 #define R300_PRIM_TYPE_POLYGON (15 << 0)
1709 #define R300_PRIM_TYPE_MASK 0xF
1715 #define R300_PRIM_COLOR_ORDER_BGRA (0 << 6)
1718 #define R300_PRIM_NUM_VERTICES_MASK 0xffff
1722 * 0. The first parameter appears to be always 0
1725 #define R300_PACKET3_3D_DRAW_VBUF 0x00002800
1741 #define R300_PACKET3_3D_LOAD_VBPNTR 0x00002F00
1743 #define R300_PACKET3_INDX_BUFFER 0x00003300
1745 # define R300_EB_UNK1 (0x80<<24)
1746 # define R300_EB_UNK2 0x0810
1747 #define R300_PACKET3_3D_DRAW_VBUF_2 0x00003400
1748 #define R300_PACKET3_3D_DRAW_INDX_2 0x00003600
1766 #define R300_CP_CMD_BITBLT_MULTI 0xC0009B00
1768 #define R500_VAP_INDEX_OFFSET 0x208c
1770 #define R500_GA_US_VECTOR_INDEX 0x4250
1771 #define R500_GA_US_VECTOR_DATA 0x4254
1773 #define R500_RS_IP_0 0x4074
1774 #define R500_RS_INST_0 0x4320
1776 #define R500_US_CONFIG 0x4600
1778 #define R500_US_FC_CTRL 0x4624
1779 #define R500_US_CODE_ADDR 0x4630
1781 #define R500_RB3D_COLOR_CLEAR_VALUE_AR 0x46c0
1782 #define R500_RB3D_CONSTANT_COLOR_AR 0x4ef8
1784 #define R300_SU_REG_DEST 0x42c8
1785 #define RV530_FG_ZBREG_DEST 0x4be8
1786 #define R300_ZB_ZPASS_DATA 0x4f58
1787 #define R300_ZB_ZPASS_ADDR 0x4f5c