--- radeon_reg.h.orig 2009-02-12 18:06:18.994790777 -0300 +++ radeon_reg.h 2009-02-14 00:18:49.702382702 -0300 @@ -4020,6 +4020,19 @@ # define R300_SUBPIXEL_1_16 (1 << 16) #define R300_GB_SELECT 0x401c #define R300_GB_ENABLE 0x4008 +#define R300_FIFO_SIZE 0x4024 +# define R300_IFIFO_SIZE 0 +# define R300_TZFIFO_SIZE 2 +# define R300_BFIFO_SIZE 4 +# define R300_TFIFO_SIZE 6 +# define R300_CFIFO_SIZE 8 +# define R300_US_RAM_SIZE 10 +# define R300_OFIFO_SIZE 12 +# define R300_WFIFO_SIZE 14 +# define R300_RS_HIGHWATER_COL 16 +# define R300_RS_HIGHWATER_TEX 19 +# define R300_US_OFIFO_HIGHWATER 22 +# define R300_US_CUBE_FIFO_HIGHWATER 24 #define R300_GB_AA_CONFIG 0x4020 #define R400_GB_PIPE_SELECT 0x402c #define R300_GB_MSPOS0 0x4010 @@ -4044,6 +4057,15 @@ # define R300_GA_DEADLOCK_CNTL (1 << 0) # define R300_GA_FASTSYNC_CNTL (1 << 1) +#define R300_GA_FOG_OFFSET 0x4298 +#define R300_GA_FOG_SCALE 0x4294 + +#define R300_GA_LINE_CNTL 0x4234 +#define R300_GA_LINE_S0 0x4264 +#define R300_GA_LINE_S1 0x4268 +#define R300_GA_LINE_STIPPLE_CONFIG 0x4238 +#define R300_GA_LINE_STIPPLE_VALUE 0x4260 + #define R300_GA_POLY_MODE 0x4288 # define R300_FRONT_PTYPE_POINT (0 << 4) # define R300_FRONT_PTYPE_LINE (1 << 4) @@ -4082,12 +4104,26 @@ # define R300_ALPHA3_SHADING_FLAT (1 << 14) # define R300_ALPHA3_SHADING_GOURAUD (2 << 14) #define R300_GA_OFFSET 0x4290 +#define R300_GA_SOFT_RESET 0x429c + +#define R300_SOLID_BA 0x4280 +#define R300_SOLID_RG 0x427c +#define R300_TRIANGLE_STIPPLE 0x4214 + +#define R300_GA_POINT_MINMAX 0x4230 +#define R300_GA_POINT_S0 0x4200 +#define R300_GA_POINT_S1 0x4208 + +#define R300_GA_POINT_SIZE 0x421c +#define R300_GA_POINT_T0 0x4204 +#define R300_GA_POINT 0x420c #define R500_SU_REG_DEST 0x42c8 #define R300_VAP_CNTL_STATUS 0x2140 # define R300_PVS_BYPASS (1 << 8) #define R300_VAP_PVS_STATE_FLUSH_REG 0x2284 +#define R300_VAP_PORT_IDX_0 0x2040 #define R300_VAP_CNTL 0x2080 # define R300_PVS_NUM_SLOTS_SHIFT 0 # define R300_PVS_NUM_CNTLRS_SHIFT 4 @@ -4107,7 +4143,7 @@ # define R300_VTX_Z_FMT (1 << 9) # define R300_VTX_W0_FMT (1 << 10) #define R300_VAP_VTX_STATE_CNTL 0x2180 -#define R300_VAP_PSC_SGN_NORM_CNTL 0x21DC +#define R300_VAP_PSC_SGN_NORM_CNTL 0x21dc #define R300_VAP_PROG_STREAM_CNTL_0 0x2150 # define R300_DATA_TYPE_0_SHIFT 0 # define R300_DATA_TYPE_FLOAT_1 0 @@ -4176,12 +4212,15 @@ # define R300_SWIZZLE_SELECT_Z_3_SHIFT 22 # define R300_SWIZZLE_SELECT_W_3_SHIFT 25 # define R300_WRITE_ENA_3_SHIFT 28 -#define R300_VAP_PVS_CODE_CNTL_0 0x22D0 +#define R300_VAP_PVS_CODE_CNTL_0 0x22d0 # define R300_PVS_FIRST_INST_SHIFT 0 # define R300_PVS_XYZW_VALID_INST_SHIFT 10 # define R300_PVS_LAST_INST_SHIFT 20 -#define R300_VAP_PVS_CODE_CNTL_1 0x22D8 +#define R300_VAP_PVS_CODE_CNTL_1 0x22d8 # define R300_PVS_LAST_VTX_SRC_INST_SHIFT 0 +#define R300_VAP_PVS_CONST_CNTL 0x22d4 +# define R300_PVS_CONST_BASE_OFFSET 0 +# define R300_PVS_MAX_CONST_ADDR 16 #define R300_VAP_PVS_VECTOR_INDX_REG 0x2200 #define R300_VAP_PVS_VECTOR_DATA_REG 0x2204 /* PVS instructions */ @@ -4339,6 +4378,10 @@ #define R500_VAP_INDEX_OFFSET 0x208c #define R300_SU_TEX_WRAP 0x42a0 +#define R300_SU_POLY_OFFSET_FRONT_SCALE 0x42a4 +#define R300_SU_POLY_OFFSET_FRONT_OFFSET 0x42a8 +#define R300_SU_POLY_OFFSET_BACK_SCALE 0x42ac +#define R300_SU_POLY_OFFSET_BACK_OFFSET 0x42b0 #define R300_SU_POLY_OFFSET_ENABLE 0x42b4 #define R300_SU_CULL_MODE 0x42b8 # define R300_CULL_FRONT (1 << 0) @@ -4502,9 +4545,10 @@ # define R300_ENDIAN_SWAP_HALF_DWORD (3 << 0) # define R300_MACRO_TILE (1 << 2) -#define R300_TX_BORDER_COLOR_0 0x45c0 +#define R300_TX_BORDER_COLOR_0 0x45c0 +#define R300_TX_CHROMA_KEY_0 0x4580 -#define R300_TX_ENABLE 0x4104 +#define R300_TX_ENABLE 0x4104 # define R300_TEX_0_ENABLE (1 << 0) # define R300_TEX_1_ENABLE (1 << 1) @@ -4773,6 +4817,10 @@ #define R300_FG_DEPTH_SRC 0x4bd8 #define R300_FG_FOG_BLEND 0x4bc0 #define R300_FG_ALPHA_FUNC 0x4bd4 +#define R300_FG_COLOR_B 0x4bd0 +#define R300_FG_COLOR_G 0x4bcc +#define R300_FG_COLOR_R 0x4bc8 +#define R300_FOG_FACTOR 0x4bc4 #define R300_DST_PIPE_CONFIG 0x170c # define R300_PIPE_AUTO_CONFIG (1 << 31) @@ -4825,16 +4873,21 @@ # define R300_COLORFORMAT_ARGB4444 (15 << 21) #define R300_RB3D_AARESOLVE_CTL 0x4e88 +#define R300_RB3D_AARESOLVE_OFFSET 0x4e80 +#define R300_RB3D_AARESOLVE_PITCH 0x4e84 #define R300_RB3D_COLOR_CHANNEL_MASK 0x4e0c # define R300_BLUE_MASK_EN (1 << 0) # define R300_GREEN_MASK_EN (1 << 1) # define R300_RED_MASK_EN (1 << 2) # define R300_ALPHA_MASK_EN (1 << 3) #define R300_RB3D_COLOR_CLEAR_VALUE 0x4e14 +#define R300_RB3D_CONSTANT_COLOR 0x4e10 #define R300_RB3D_DSTCACHE_CTLSTAT 0x4e4c #define R300_RB3D_CCTL 0x4e00 +# define R300_AA_COMPRESSION_ENABLE (1 << 9) #define R300_RB3D_DITHER_CTL 0x4e50 +#define R300_SC_HYPERZ_EN 0x43a4 #define R300_SC_EDGERULE 0x43a8 #define R300_SC_SCISSOR0 0x43e0 #define R300_SC_SCISSOR1 0x43e4 @@ -4842,6 +4895,12 @@ # define R300_SCISSOR_Y_SHIFT 13 #define R300_SC_CLIP_0_A 0x43b0 #define R300_SC_CLIP_0_B 0x43b4 +#define R300_SC_CLIP_1_A 0x43b8 +#define R300_SC_CLIP_1_B 0x43bc +#define R300_SC_CLIP_2_A 0x43c0 +#define R300_SC_CLIP_2_B 0x43c4 +#define R300_SC_CLIP_3_A 0x43c8 +#define R300_SC_CLIP_3_B 0x43cc # define R300_CLIP_X_SHIFT 0 # define R300_CLIP_Y_SHIFT 13 #define R300_SC_CLIP_RULE 0x43d0