require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_R300_REG_H)) {
    eval 'sub _R300_REG_H () {1;}' unless defined(&_R300_REG_H);
    eval 'sub R300_MC_INIT_MISC_LAT_TIMER () {0x180;}' unless defined(&R300_MC_INIT_MISC_LAT_TIMER);
    eval 'sub R300_MC_MISC__MC_CPR_INIT_LAT_SHIFT () {0;}' unless defined(&R300_MC_MISC__MC_CPR_INIT_LAT_SHIFT);
    eval 'sub R300_MC_MISC__MC_VF_INIT_LAT_SHIFT () {4;}' unless defined(&R300_MC_MISC__MC_VF_INIT_LAT_SHIFT);
    eval 'sub R300_MC_MISC__MC_DISP0R_INIT_LAT_SHIFT () {8;}' unless defined(&R300_MC_MISC__MC_DISP0R_INIT_LAT_SHIFT);
    eval 'sub R300_MC_MISC__MC_DISP1R_INIT_LAT_SHIFT () {12;}' unless defined(&R300_MC_MISC__MC_DISP1R_INIT_LAT_SHIFT);
    eval 'sub R300_MC_MISC__MC_FIXED_INIT_LAT_SHIFT () {16;}' unless defined(&R300_MC_MISC__MC_FIXED_INIT_LAT_SHIFT);
    eval 'sub R300_MC_MISC__MC_E2R_INIT_LAT_SHIFT () {20;}' unless defined(&R300_MC_MISC__MC_E2R_INIT_LAT_SHIFT);
    eval 'sub R300_MC_MISC__MC_SAME_PAGE_PRIO_SHIFT () {24;}' unless defined(&R300_MC_MISC__MC_SAME_PAGE_PRIO_SHIFT);
    eval 'sub R300_MC_MISC__MC_GLOBW_INIT_LAT_SHIFT () {28;}' unless defined(&R300_MC_MISC__MC_GLOBW_INIT_LAT_SHIFT);
    eval 'sub R300_MC_INIT_GFX_LAT_TIMER () {0x154;}' unless defined(&R300_MC_INIT_GFX_LAT_TIMER);
    eval 'sub R300_MC_MISC__MC_G3D0R_INIT_LAT_SHIFT () {0;}' unless defined(&R300_MC_MISC__MC_G3D0R_INIT_LAT_SHIFT);
    eval 'sub R300_MC_MISC__MC_G3D1R_INIT_LAT_SHIFT () {4;}' unless defined(&R300_MC_MISC__MC_G3D1R_INIT_LAT_SHIFT);
    eval 'sub R300_MC_MISC__MC_G3D2R_INIT_LAT_SHIFT () {8;}' unless defined(&R300_MC_MISC__MC_G3D2R_INIT_LAT_SHIFT);
    eval 'sub R300_MC_MISC__MC_G3D3R_INIT_LAT_SHIFT () {12;}' unless defined(&R300_MC_MISC__MC_G3D3R_INIT_LAT_SHIFT);
    eval 'sub R300_MC_MISC__MC_TX0R_INIT_LAT_SHIFT () {16;}' unless defined(&R300_MC_MISC__MC_TX0R_INIT_LAT_SHIFT);
    eval 'sub R300_MC_MISC__MC_TX1R_INIT_LAT_SHIFT () {20;}' unless defined(&R300_MC_MISC__MC_TX1R_INIT_LAT_SHIFT);
    eval 'sub R300_MC_MISC__MC_GLOBR_INIT_LAT_SHIFT () {24;}' unless defined(&R300_MC_MISC__MC_GLOBR_INIT_LAT_SHIFT);
    eval 'sub R300_MC_MISC__MC_GLOBW_FULL_LAT_SHIFT () {28;}' unless defined(&R300_MC_MISC__MC_GLOBW_FULL_LAT_SHIFT);
    eval 'sub R300_SE_VPORT_XSCALE () {0x1d98;}' unless defined(&R300_SE_VPORT_XSCALE);
    eval 'sub R300_SE_VPORT_XOFFSET () {0x1d9c;}' unless defined(&R300_SE_VPORT_XOFFSET);
    eval 'sub R300_SE_VPORT_YSCALE () {0x1da0;}' unless defined(&R300_SE_VPORT_YSCALE);
    eval 'sub R300_SE_VPORT_YOFFSET () {0x1da4;}' unless defined(&R300_SE_VPORT_YOFFSET);
    eval 'sub R300_SE_VPORT_ZSCALE () {0x1da8;}' unless defined(&R300_SE_VPORT_ZSCALE);
    eval 'sub R300_SE_VPORT_ZOFFSET () {0x1dac;}' unless defined(&R300_SE_VPORT_ZOFFSET);
    eval 'sub R300_VAP_CNTL () {0x2080;}' unless defined(&R300_VAP_CNTL);
    eval 'sub R300_VAP_VF_CNTL () {0x2084;}' unless defined(&R300_VAP_VF_CNTL);
    eval 'sub R300_VAP_VF_CNTL__PRIM_TYPE__SHIFT () {0;}' unless defined(&R300_VAP_VF_CNTL__PRIM_TYPE__SHIFT);
    eval 'sub R300_VAP_VF_CNTL__PRIM_NONE () {(0<<0);}' unless defined(&R300_VAP_VF_CNTL__PRIM_NONE);
    eval 'sub R300_VAP_VF_CNTL__PRIM_POINTS () {(1<<0);}' unless defined(&R300_VAP_VF_CNTL__PRIM_POINTS);
    eval 'sub R300_VAP_VF_CNTL__PRIM_LINES () {(2<<0);}' unless defined(&R300_VAP_VF_CNTL__PRIM_LINES);
    eval 'sub R300_VAP_VF_CNTL__PRIM_LINE_STRIP () {(3<<0);}' unless defined(&R300_VAP_VF_CNTL__PRIM_LINE_STRIP);
    eval 'sub R300_VAP_VF_CNTL__PRIM_TRIANGLES () {(4<<0);}' unless defined(&R300_VAP_VF_CNTL__PRIM_TRIANGLES);
    eval 'sub R300_VAP_VF_CNTL__PRIM_TRIANGLE_FAN () {(5<<0);}' unless defined(&R300_VAP_VF_CNTL__PRIM_TRIANGLE_FAN);
    eval 'sub R300_VAP_VF_CNTL__PRIM_TRIANGLE_STRIP () {(6<<0);}' unless defined(&R300_VAP_VF_CNTL__PRIM_TRIANGLE_STRIP);
    eval 'sub R300_VAP_VF_CNTL__PRIM_LINE_LOOP () {(12<<0);}' unless defined(&R300_VAP_VF_CNTL__PRIM_LINE_LOOP);
    eval 'sub R300_VAP_VF_CNTL__PRIM_QUADS () {(13<<0);}' unless defined(&R300_VAP_VF_CNTL__PRIM_QUADS);
    eval 'sub R300_VAP_VF_CNTL__PRIM_QUAD_STRIP () {(14<<0);}' unless defined(&R300_VAP_VF_CNTL__PRIM_QUAD_STRIP);
    eval 'sub R300_VAP_VF_CNTL__PRIM_POLYGON () {(15<<0);}' unless defined(&R300_VAP_VF_CNTL__PRIM_POLYGON);
    eval 'sub R300_VAP_VF_CNTL__PRIM_WALK__SHIFT () {4;}' unless defined(&R300_VAP_VF_CNTL__PRIM_WALK__SHIFT);
    eval 'sub R300_VAP_VF_CNTL__PRIM_WALK_STATE_BASED () {(0<<4);}' unless defined(&R300_VAP_VF_CNTL__PRIM_WALK_STATE_BASED);
    eval 'sub R300_VAP_VF_CNTL__PRIM_WALK_INDICES () {(1<<4);}' unless defined(&R300_VAP_VF_CNTL__PRIM_WALK_INDICES);
    eval 'sub R300_VAP_VF_CNTL__PRIM_WALK_VERTEX_LIST () {(2<<4);}' unless defined(&R300_VAP_VF_CNTL__PRIM_WALK_VERTEX_LIST);
    eval 'sub R300_VAP_VF_CNTL__PRIM_WALK_VERTEX_EMBEDDED () {(3<<4);}' unless defined(&R300_VAP_VF_CNTL__PRIM_WALK_VERTEX_EMBEDDED);
    eval 'sub R300_VAP_VF_CNTL__COLOR_ORDER__SHIFT () {6;}' unless defined(&R300_VAP_VF_CNTL__COLOR_ORDER__SHIFT);
    eval 'sub R300_VAP_VF_CNTL__TCL_OUTPUT_CTL_ENA__SHIFT () {9;}' unless defined(&R300_VAP_VF_CNTL__TCL_OUTPUT_CTL_ENA__SHIFT);
    eval 'sub R300_VAP_VF_CNTL__PROG_STREAM_ENA__SHIFT () {10;}' unless defined(&R300_VAP_VF_CNTL__PROG_STREAM_ENA__SHIFT);
    eval 'sub R300_VAP_VF_CNTL__INDEX_SIZE_32bit () {(1<<11);}' unless defined(&R300_VAP_VF_CNTL__INDEX_SIZE_32bit);
    eval 'sub R300_VAP_VF_CNTL__NUM_VERTICES__SHIFT () {16;}' unless defined(&R300_VAP_VF_CNTL__NUM_VERTICES__SHIFT);
    eval 'sub R300_VAP_OUTPUT_VTX_FMT_0 () {0x2090;}' unless defined(&R300_VAP_OUTPUT_VTX_FMT_0);
    eval 'sub R300_VAP_OUTPUT_VTX_FMT_0__POS_PRESENT () {(1<<0);}' unless defined(&R300_VAP_OUTPUT_VTX_FMT_0__POS_PRESENT);
    eval 'sub R300_VAP_OUTPUT_VTX_FMT_0__COLOR_PRESENT () {(1<<1);}' unless defined(&R300_VAP_OUTPUT_VTX_FMT_0__COLOR_PRESENT);
    eval 'sub R300_VAP_OUTPUT_VTX_FMT_0__COLOR_1_PRESENT () {(1<<2);}' unless defined(&R300_VAP_OUTPUT_VTX_FMT_0__COLOR_1_PRESENT);
    eval 'sub R300_VAP_OUTPUT_VTX_FMT_0__COLOR_2_PRESENT () {(1<<3);}' unless defined(&R300_VAP_OUTPUT_VTX_FMT_0__COLOR_2_PRESENT);
    eval 'sub R300_VAP_OUTPUT_VTX_FMT_0__COLOR_3_PRESENT () {(1<<4);}' unless defined(&R300_VAP_OUTPUT_VTX_FMT_0__COLOR_3_PRESENT);
    eval 'sub R300_VAP_OUTPUT_VTX_FMT_0__PT_SIZE_PRESENT () {(1<<16);}' unless defined(&R300_VAP_OUTPUT_VTX_FMT_0__PT_SIZE_PRESENT);
    eval 'sub R300_VAP_OUTPUT_VTX_FMT_1 () {0x2094;}' unless defined(&R300_VAP_OUTPUT_VTX_FMT_1);
    eval 'sub R300_VAP_OUTPUT_VTX_FMT_1__TEX_0_COMP_CNT_SHIFT () {0;}' unless defined(&R300_VAP_OUTPUT_VTX_FMT_1__TEX_0_COMP_CNT_SHIFT);
    eval 'sub R300_VAP_OUTPUT_VTX_FMT_1__TEX_1_COMP_CNT_SHIFT () {3;}' unless defined(&R300_VAP_OUTPUT_VTX_FMT_1__TEX_1_COMP_CNT_SHIFT);
    eval 'sub R300_VAP_OUTPUT_VTX_FMT_1__TEX_2_COMP_CNT_SHIFT () {6;}' unless defined(&R300_VAP_OUTPUT_VTX_FMT_1__TEX_2_COMP_CNT_SHIFT);
    eval 'sub R300_VAP_OUTPUT_VTX_FMT_1__TEX_3_COMP_CNT_SHIFT () {9;}' unless defined(&R300_VAP_OUTPUT_VTX_FMT_1__TEX_3_COMP_CNT_SHIFT);
    eval 'sub R300_VAP_OUTPUT_VTX_FMT_1__TEX_4_COMP_CNT_SHIFT () {12;}' unless defined(&R300_VAP_OUTPUT_VTX_FMT_1__TEX_4_COMP_CNT_SHIFT);
    eval 'sub R300_VAP_OUTPUT_VTX_FMT_1__TEX_5_COMP_CNT_SHIFT () {15;}' unless defined(&R300_VAP_OUTPUT_VTX_FMT_1__TEX_5_COMP_CNT_SHIFT);
    eval 'sub R300_VAP_OUTPUT_VTX_FMT_1__TEX_6_COMP_CNT_SHIFT () {18;}' unless defined(&R300_VAP_OUTPUT_VTX_FMT_1__TEX_6_COMP_CNT_SHIFT);
    eval 'sub R300_VAP_OUTPUT_VTX_FMT_1__TEX_7_COMP_CNT_SHIFT () {21;}' unless defined(&R300_VAP_OUTPUT_VTX_FMT_1__TEX_7_COMP_CNT_SHIFT);
    eval 'sub R300_SE_VTE_CNTL () {0x20b0;}' unless defined(&R300_SE_VTE_CNTL);
    eval 'sub R300_VPORT_X_SCALE_ENA () {0x1;}' unless defined(&R300_VPORT_X_SCALE_ENA);
    eval 'sub R300_VPORT_X_OFFSET_ENA () {0x2;}' unless defined(&R300_VPORT_X_OFFSET_ENA);
    eval 'sub R300_VPORT_Y_SCALE_ENA () {0x4;}' unless defined(&R300_VPORT_Y_SCALE_ENA);
    eval 'sub R300_VPORT_Y_OFFSET_ENA () {0x8;}' unless defined(&R300_VPORT_Y_OFFSET_ENA);
    eval 'sub R300_VPORT_Z_SCALE_ENA () {0x10;}' unless defined(&R300_VPORT_Z_SCALE_ENA);
    eval 'sub R300_VPORT_Z_OFFSET_ENA () {0x20;}' unless defined(&R300_VPORT_Z_OFFSET_ENA);
    eval 'sub R300_VTX_XY_FMT () {0x100;}' unless defined(&R300_VTX_XY_FMT);
    eval 'sub R300_VTX_Z_FMT () {0x200;}' unless defined(&R300_VTX_Z_FMT);
    eval 'sub R300_VTX_W0_FMT () {0x400;}' unless defined(&R300_VTX_W0_FMT);
    eval 'sub R300_VTX_W0_NORMALIZE () {0x800;}' unless defined(&R300_VTX_W0_NORMALIZE);
    eval 'sub R300_VTX_ST_DENORMALIZED () {0x1000;}' unless defined(&R300_VTX_ST_DENORMALIZED);
    eval 'sub R300_VAP_CNTL_STATUS () {0x2140;}' unless defined(&R300_VAP_CNTL_STATUS);
    eval 'sub R300_VC_NO_SWAP () {(0<< 0);}' unless defined(&R300_VC_NO_SWAP);
    eval 'sub R300_VC_16BIT_SWAP () {(1<< 0);}' unless defined(&R300_VC_16BIT_SWAP);
    eval 'sub R300_VC_32BIT_SWAP () {(2<< 0);}' unless defined(&R300_VC_32BIT_SWAP);
    eval 'sub R300_VAP_TCL_BYPASS () {(1<< 8);}' unless defined(&R300_VAP_TCL_BYPASS);
    eval 'sub R300_VAP_INPUT_ROUTE_0_0 () {0x2150;}' unless defined(&R300_VAP_INPUT_ROUTE_0_0);
    eval 'sub R300_INPUT_ROUTE_COMPONENTS_1 () {(0<< 0);}' unless defined(&R300_INPUT_ROUTE_COMPONENTS_1);
    eval 'sub R300_INPUT_ROUTE_COMPONENTS_2 () {(1<< 0);}' unless defined(&R300_INPUT_ROUTE_COMPONENTS_2);
    eval 'sub R300_INPUT_ROUTE_COMPONENTS_3 () {(2<< 0);}' unless defined(&R300_INPUT_ROUTE_COMPONENTS_3);
    eval 'sub R300_INPUT_ROUTE_COMPONENTS_4 () {(3<< 0);}' unless defined(&R300_INPUT_ROUTE_COMPONENTS_4);
    eval 'sub R300_INPUT_ROUTE_COMPONENTS_RGBA () {(4<< 0);}' unless defined(&R300_INPUT_ROUTE_COMPONENTS_RGBA);
    eval 'sub R300_VAP_INPUT_ROUTE_IDX_SHIFT () {8;}' unless defined(&R300_VAP_INPUT_ROUTE_IDX_SHIFT);
    eval 'sub R300_VAP_INPUT_ROUTE_IDX_MASK () {(31<< 8);}' unless defined(&R300_VAP_INPUT_ROUTE_IDX_MASK);
    eval 'sub R300_VAP_INPUT_ROUTE_END () {(1<< 13);}' unless defined(&R300_VAP_INPUT_ROUTE_END);
    eval 'sub R300_INPUT_ROUTE_IMMEDIATE_MODE () {(0<< 14);}' unless defined(&R300_INPUT_ROUTE_IMMEDIATE_MODE);
    eval 'sub R300_INPUT_ROUTE_FLOAT () {(1<< 14);}' unless defined(&R300_INPUT_ROUTE_FLOAT);
    eval 'sub R300_INPUT_ROUTE_UNSIGNED_BYTE () {(2<< 14);}' unless defined(&R300_INPUT_ROUTE_UNSIGNED_BYTE);
    eval 'sub R300_INPUT_ROUTE_FLOAT_COLOR () {(3<< 14);}' unless defined(&R300_INPUT_ROUTE_FLOAT_COLOR);
    eval 'sub R300_VAP_INPUT_ROUTE_0_1 () {0x2154;}' unless defined(&R300_VAP_INPUT_ROUTE_0_1);
    eval 'sub R300_VAP_INPUT_ROUTE_0_2 () {0x2158;}' unless defined(&R300_VAP_INPUT_ROUTE_0_2);
    eval 'sub R300_VAP_INPUT_ROUTE_0_3 () {0x215c;}' unless defined(&R300_VAP_INPUT_ROUTE_0_3);
    eval 'sub R300_VAP_INPUT_ROUTE_0_4 () {0x2160;}' unless defined(&R300_VAP_INPUT_ROUTE_0_4);
    eval 'sub R300_VAP_INPUT_ROUTE_0_5 () {0x2164;}' unless defined(&R300_VAP_INPUT_ROUTE_0_5);
    eval 'sub R300_VAP_INPUT_ROUTE_0_6 () {0x2168;}' unless defined(&R300_VAP_INPUT_ROUTE_0_6);
    eval 'sub R300_VAP_INPUT_ROUTE_0_7 () {0x216c;}' unless defined(&R300_VAP_INPUT_ROUTE_0_7);
    eval 'sub R300_VAP_INPUT_CNTL_0 () {0x2180;}' unless defined(&R300_VAP_INPUT_CNTL_0);
    eval 'sub R300_INPUT_CNTL_0_COLOR () {0x1;}' unless defined(&R300_INPUT_CNTL_0_COLOR);
    eval 'sub R300_VAP_INPUT_CNTL_1 () {0x2184;}' unless defined(&R300_VAP_INPUT_CNTL_1);
    eval 'sub R300_INPUT_CNTL_POS () {0x1;}' unless defined(&R300_INPUT_CNTL_POS);
    eval 'sub R300_INPUT_CNTL_NORMAL () {0x2;}' unless defined(&R300_INPUT_CNTL_NORMAL);
    eval 'sub R300_INPUT_CNTL_COLOR () {0x4;}' unless defined(&R300_INPUT_CNTL_COLOR);
    eval 'sub R300_INPUT_CNTL_TC0 () {0x400;}' unless defined(&R300_INPUT_CNTL_TC0);
    eval 'sub R300_INPUT_CNTL_TC1 () {0x800;}' unless defined(&R300_INPUT_CNTL_TC1);
    eval 'sub R300_INPUT_CNTL_TC2 () {0x1000;}' unless defined(&R300_INPUT_CNTL_TC2);
    eval 'sub R300_INPUT_CNTL_TC3 () {0x2000;}' unless defined(&R300_INPUT_CNTL_TC3);
    eval 'sub R300_INPUT_CNTL_TC4 () {0x4000;}' unless defined(&R300_INPUT_CNTL_TC4);
    eval 'sub R300_INPUT_CNTL_TC5 () {0x8000;}' unless defined(&R300_INPUT_CNTL_TC5);
    eval 'sub R300_INPUT_CNTL_TC6 () {0x10000;}' unless defined(&R300_INPUT_CNTL_TC6);
    eval 'sub R300_INPUT_CNTL_TC7 () {0x20000;}' unless defined(&R300_INPUT_CNTL_TC7);
    eval 'sub R300_VAP_INPUT_ROUTE_1_0 () {0x21e0;}' unless defined(&R300_VAP_INPUT_ROUTE_1_0);
    eval 'sub R300_INPUT_ROUTE_SELECT_X () {0;}' unless defined(&R300_INPUT_ROUTE_SELECT_X);
    eval 'sub R300_INPUT_ROUTE_SELECT_Y () {1;}' unless defined(&R300_INPUT_ROUTE_SELECT_Y);
    eval 'sub R300_INPUT_ROUTE_SELECT_Z () {2;}' unless defined(&R300_INPUT_ROUTE_SELECT_Z);
    eval 'sub R300_INPUT_ROUTE_SELECT_W () {3;}' unless defined(&R300_INPUT_ROUTE_SELECT_W);
    eval 'sub R300_INPUT_ROUTE_SELECT_ZERO () {4;}' unless defined(&R300_INPUT_ROUTE_SELECT_ZERO);
    eval 'sub R300_INPUT_ROUTE_SELECT_ONE () {5;}' unless defined(&R300_INPUT_ROUTE_SELECT_ONE);
    eval 'sub R300_INPUT_ROUTE_SELECT_MASK () {7;}' unless defined(&R300_INPUT_ROUTE_SELECT_MASK);
    eval 'sub R300_INPUT_ROUTE_X_SHIFT () {0;}' unless defined(&R300_INPUT_ROUTE_X_SHIFT);
    eval 'sub R300_INPUT_ROUTE_Y_SHIFT () {3;}' unless defined(&R300_INPUT_ROUTE_Y_SHIFT);
    eval 'sub R300_INPUT_ROUTE_Z_SHIFT () {6;}' unless defined(&R300_INPUT_ROUTE_Z_SHIFT);
    eval 'sub R300_INPUT_ROUTE_W_SHIFT () {9;}' unless defined(&R300_INPUT_ROUTE_W_SHIFT);
    eval 'sub R300_INPUT_ROUTE_ENABLE () {(15<< 12);}' unless defined(&R300_INPUT_ROUTE_ENABLE);
    eval 'sub R300_VAP_INPUT_ROUTE_1_1 () {0x21e4;}' unless defined(&R300_VAP_INPUT_ROUTE_1_1);
    eval 'sub R300_VAP_INPUT_ROUTE_1_2 () {0x21e8;}' unless defined(&R300_VAP_INPUT_ROUTE_1_2);
    eval 'sub R300_VAP_INPUT_ROUTE_1_3 () {0x21ec;}' unless defined(&R300_VAP_INPUT_ROUTE_1_3);
    eval 'sub R300_VAP_INPUT_ROUTE_1_4 () {0x21f0;}' unless defined(&R300_VAP_INPUT_ROUTE_1_4);
    eval 'sub R300_VAP_INPUT_ROUTE_1_5 () {0x21f4;}' unless defined(&R300_VAP_INPUT_ROUTE_1_5);
    eval 'sub R300_VAP_INPUT_ROUTE_1_6 () {0x21f8;}' unless defined(&R300_VAP_INPUT_ROUTE_1_6);
    eval 'sub R300_VAP_INPUT_ROUTE_1_7 () {0x21fc;}' unless defined(&R300_VAP_INPUT_ROUTE_1_7);
    eval 'sub R300_VAP_PVS_UPLOAD_ADDRESS () {0x2200;}' unless defined(&R300_VAP_PVS_UPLOAD_ADDRESS);
    eval 'sub R300_PVS_UPLOAD_PROGRAM () {0x;}' unless defined(&R300_PVS_UPLOAD_PROGRAM);
    eval 'sub R300_PVS_UPLOAD_PARAMETERS () {0x200;}' unless defined(&R300_PVS_UPLOAD_PARAMETERS);
    eval 'sub R300_PVS_UPLOAD_POINTSIZE () {0x406;}' unless defined(&R300_PVS_UPLOAD_POINTSIZE);
    eval 'sub R300_VAP_PVS_UPLOAD_DATA () {0x2208;}' unless defined(&R300_VAP_PVS_UPLOAD_DATA);
    eval 'sub R300_VAP_UNKNOWN_221C () {0x221c;}' unless defined(&R300_VAP_UNKNOWN_221C);
    eval 'sub R300_221C_NORMAL () {0x;}' unless defined(&R300_221C_NORMAL);
    eval 'sub R300_221C_CLEAR () {0x1c000;}' unless defined(&R300_221C_CLEAR);
    eval 'sub R300_VAP_CLIP_X_0 () {0x2220;}' unless defined(&R300_VAP_CLIP_X_0);
    eval 'sub R300_VAP_CLIP_X_1 () {0x2224;}' unless defined(&R300_VAP_CLIP_X_1);
    eval 'sub R300_VAP_CLIP_Y_0 () {0x2228;}' unless defined(&R300_VAP_CLIP_Y_0);
    eval 'sub R300_VAP_CLIP_Y_1 () {0x2230;}' unless defined(&R300_VAP_CLIP_Y_1);
    eval 'sub R300_VAP_PVS_STATE_FLUSH_REG () {0x2284;}' unless defined(&R300_VAP_PVS_STATE_FLUSH_REG);
    eval 'sub R300_VAP_UNKNOWN_2288 () {0x2288;}' unless defined(&R300_VAP_UNKNOWN_2288);
    eval 'sub R300_2288_R300 () {0x750000;}' unless defined(&R300_2288_R300);
    eval 'sub R300_2288_RV350 () {0xffff;}' unless defined(&R300_2288_RV350);
    eval 'sub R300_VAP_PVS_CNTL_1 () {0x22d0;}' unless defined(&R300_VAP_PVS_CNTL_1);
    eval 'sub R300_PVS_CNTL_1_PROGRAM_START_SHIFT () {0;}' unless defined(&R300_PVS_CNTL_1_PROGRAM_START_SHIFT);
    eval 'sub R300_PVS_CNTL_1_POS_END_SHIFT () {10;}' unless defined(&R300_PVS_CNTL_1_POS_END_SHIFT);
    eval 'sub R300_PVS_CNTL_1_PROGRAM_END_SHIFT () {20;}' unless defined(&R300_PVS_CNTL_1_PROGRAM_END_SHIFT);
    eval 'sub R300_VAP_PVS_CNTL_2 () {0x22d4;}' unless defined(&R300_VAP_PVS_CNTL_2);
    eval 'sub R300_PVS_CNTL_2_PARAM_OFFSET_SHIFT () {0;}' unless defined(&R300_PVS_CNTL_2_PARAM_OFFSET_SHIFT);
    eval 'sub R300_PVS_CNTL_2_PARAM_COUNT_SHIFT () {16;}' unless defined(&R300_PVS_CNTL_2_PARAM_COUNT_SHIFT);
    eval 'sub R300_VAP_PVS_CNTL_3 () {0x22d8;}' unless defined(&R300_VAP_PVS_CNTL_3);
    eval 'sub R300_PVS_CNTL_3_PROGRAM_UNKNOWN_SHIFT () {10;}' unless defined(&R300_PVS_CNTL_3_PROGRAM_UNKNOWN_SHIFT);
    eval 'sub R300_PVS_CNTL_3_PROGRAM_UNKNOWN2_SHIFT () {0;}' unless defined(&R300_PVS_CNTL_3_PROGRAM_UNKNOWN2_SHIFT);
    eval 'sub R300_VAP_VTX_COLOR_R () {0x2464;}' unless defined(&R300_VAP_VTX_COLOR_R);
    eval 'sub R300_VAP_VTX_COLOR_G () {0x2468;}' unless defined(&R300_VAP_VTX_COLOR_G);
    eval 'sub R300_VAP_VTX_COLOR_B () {0x246c;}' unless defined(&R300_VAP_VTX_COLOR_B);
    eval 'sub R300_VAP_VTX_POS_0_X_1 () {0x2490;}' unless defined(&R300_VAP_VTX_POS_0_X_1);
    eval 'sub R300_VAP_VTX_POS_0_Y_1 () {0x2494;}' unless defined(&R300_VAP_VTX_POS_0_Y_1);
    eval 'sub R300_VAP_VTX_COLOR_PKD () {0x249c;}' unless defined(&R300_VAP_VTX_COLOR_PKD);
    eval 'sub R300_VAP_VTX_POS_0_X_2 () {0x24a0;}' unless defined(&R300_VAP_VTX_POS_0_X_2);
    eval 'sub R300_VAP_VTX_POS_0_Y_2 () {0x24a4;}' unless defined(&R300_VAP_VTX_POS_0_Y_2);
    eval 'sub R300_VAP_VTX_POS_0_Z_2 () {0x24a8;}' unless defined(&R300_VAP_VTX_POS_0_Z_2);
    eval 'sub R300_VAP_VTX_END_OF_PKT () {0x24ac;}' unless defined(&R300_VAP_VTX_END_OF_PKT);
    eval 'sub R300_GB_VAP_RASTER_VTX_FMT_0 () {0x4000;}' unless defined(&R300_GB_VAP_RASTER_VTX_FMT_0);
    eval 'sub R300_GB_VAP_RASTER_VTX_FMT_0__POS_PRESENT () {(1<<0);}' unless defined(&R300_GB_VAP_RASTER_VTX_FMT_0__POS_PRESENT);
    eval 'sub R300_GB_VAP_RASTER_VTX_FMT_0__COLOR_0_PRESENT () {(1<<1);}' unless defined(&R300_GB_VAP_RASTER_VTX_FMT_0__COLOR_0_PRESENT);
    eval 'sub R300_GB_VAP_RASTER_VTX_FMT_0__COLOR_1_PRESENT () {(1<<2);}' unless defined(&R300_GB_VAP_RASTER_VTX_FMT_0__COLOR_1_PRESENT);
    eval 'sub R300_GB_VAP_RASTER_VTX_FMT_0__COLOR_2_PRESENT () {(1<<3);}' unless defined(&R300_GB_VAP_RASTER_VTX_FMT_0__COLOR_2_PRESENT);
    eval 'sub R300_GB_VAP_RASTER_VTX_FMT_0__COLOR_3_PRESENT () {(1<<4);}' unless defined(&R300_GB_VAP_RASTER_VTX_FMT_0__COLOR_3_PRESENT);
    eval 'sub R300_GB_VAP_RASTER_VTX_FMT_0__COLOR_SPACE () {(0xf<<5);}' unless defined(&R300_GB_VAP_RASTER_VTX_FMT_0__COLOR_SPACE);
    eval 'sub R300_GB_VAP_RASTER_VTX_FMT_0__PT_SIZE_PRESENT () {(0x1<<16);}' unless defined(&R300_GB_VAP_RASTER_VTX_FMT_0__PT_SIZE_PRESENT);
    eval 'sub R300_GB_VAP_RASTER_VTX_FMT_1 () {0x4004;}' unless defined(&R300_GB_VAP_RASTER_VTX_FMT_1);
    eval 'sub R300_GB_VAP_RASTER_VTX_FMT_1__TEX_0_COMP_CNT_SHIFT () {0;}' unless defined(&R300_GB_VAP_RASTER_VTX_FMT_1__TEX_0_COMP_CNT_SHIFT);
    eval 'sub R300_GB_VAP_RASTER_VTX_FMT_1__TEX_1_COMP_CNT_SHIFT () {3;}' unless defined(&R300_GB_VAP_RASTER_VTX_FMT_1__TEX_1_COMP_CNT_SHIFT);
    eval 'sub R300_GB_VAP_RASTER_VTX_FMT_1__TEX_2_COMP_CNT_SHIFT () {6;}' unless defined(&R300_GB_VAP_RASTER_VTX_FMT_1__TEX_2_COMP_CNT_SHIFT);
    eval 'sub R300_GB_VAP_RASTER_VTX_FMT_1__TEX_3_COMP_CNT_SHIFT () {9;}' unless defined(&R300_GB_VAP_RASTER_VTX_FMT_1__TEX_3_COMP_CNT_SHIFT);
    eval 'sub R300_GB_VAP_RASTER_VTX_FMT_1__TEX_4_COMP_CNT_SHIFT () {12;}' unless defined(&R300_GB_VAP_RASTER_VTX_FMT_1__TEX_4_COMP_CNT_SHIFT);
    eval 'sub R300_GB_VAP_RASTER_VTX_FMT_1__TEX_5_COMP_CNT_SHIFT () {15;}' unless defined(&R300_GB_VAP_RASTER_VTX_FMT_1__TEX_5_COMP_CNT_SHIFT);
    eval 'sub R300_GB_VAP_RASTER_VTX_FMT_1__TEX_6_COMP_CNT_SHIFT () {18;}' unless defined(&R300_GB_VAP_RASTER_VTX_FMT_1__TEX_6_COMP_CNT_SHIFT);
    eval 'sub R300_GB_VAP_RASTER_VTX_FMT_1__TEX_7_COMP_CNT_SHIFT () {21;}' unless defined(&R300_GB_VAP_RASTER_VTX_FMT_1__TEX_7_COMP_CNT_SHIFT);
    eval 'sub R300_GB_ENABLE () {0x4008;}' unless defined(&R300_GB_ENABLE);
    eval 'sub R300_GB_POINT_STUFF_ENABLE () {(1<<0);}' unless defined(&R300_GB_POINT_STUFF_ENABLE);
    eval 'sub R300_GB_LINE_STUFF_ENABLE () {(1<<1);}' unless defined(&R300_GB_LINE_STUFF_ENABLE);
    eval 'sub R300_GB_TRIANGLE_STUFF_ENABLE () {(1<<2);}' unless defined(&R300_GB_TRIANGLE_STUFF_ENABLE);
    eval 'sub R300_GB_STENCIL_AUTO_ENABLE () {(1<<4);}' unless defined(&R300_GB_STENCIL_AUTO_ENABLE);
    eval 'sub R300_GB_UNK31 () {(1<<31);}' unless defined(&R300_GB_UNK31);
    eval 'sub R300_GB_TEX_REPLICATE () {0;}' unless defined(&R300_GB_TEX_REPLICATE);
    eval 'sub R300_GB_TEX_ST () {1;}' unless defined(&R300_GB_TEX_ST);
    eval 'sub R300_GB_TEX_STR () {2;}' unless defined(&R300_GB_TEX_STR);
    eval 'sub R300_GB_TEX0_SOURCE_SHIFT () {16;}' unless defined(&R300_GB_TEX0_SOURCE_SHIFT);
    eval 'sub R300_GB_TEX1_SOURCE_SHIFT () {18;}' unless defined(&R300_GB_TEX1_SOURCE_SHIFT);
    eval 'sub R300_GB_TEX2_SOURCE_SHIFT () {20;}' unless defined(&R300_GB_TEX2_SOURCE_SHIFT);
    eval 'sub R300_GB_TEX3_SOURCE_SHIFT () {22;}' unless defined(&R300_GB_TEX3_SOURCE_SHIFT);
    eval 'sub R300_GB_TEX4_SOURCE_SHIFT () {24;}' unless defined(&R300_GB_TEX4_SOURCE_SHIFT);
    eval 'sub R300_GB_TEX5_SOURCE_SHIFT () {26;}' unless defined(&R300_GB_TEX5_SOURCE_SHIFT);
    eval 'sub R300_GB_TEX6_SOURCE_SHIFT () {28;}' unless defined(&R300_GB_TEX6_SOURCE_SHIFT);
    eval 'sub R300_GB_TEX7_SOURCE_SHIFT () {30;}' unless defined(&R300_GB_TEX7_SOURCE_SHIFT);
    eval 'sub R300_GB_MSPOS0 () {0x4010;}' unless defined(&R300_GB_MSPOS0);
    eval 'sub R300_GB_MSPOS0__MS_X0_SHIFT () {0;}' unless defined(&R300_GB_MSPOS0__MS_X0_SHIFT);
    eval 'sub R300_GB_MSPOS0__MS_Y0_SHIFT () {4;}' unless defined(&R300_GB_MSPOS0__MS_Y0_SHIFT);
    eval 'sub R300_GB_MSPOS0__MS_X1_SHIFT () {8;}' unless defined(&R300_GB_MSPOS0__MS_X1_SHIFT);
    eval 'sub R300_GB_MSPOS0__MS_Y1_SHIFT () {12;}' unless defined(&R300_GB_MSPOS0__MS_Y1_SHIFT);
    eval 'sub R300_GB_MSPOS0__MS_X2_SHIFT () {16;}' unless defined(&R300_GB_MSPOS0__MS_X2_SHIFT);
    eval 'sub R300_GB_MSPOS0__MS_Y2_SHIFT () {20;}' unless defined(&R300_GB_MSPOS0__MS_Y2_SHIFT);
    eval 'sub R300_GB_MSPOS0__MSBD0_Y () {24;}' unless defined(&R300_GB_MSPOS0__MSBD0_Y);
    eval 'sub R300_GB_MSPOS0__MSBD0_X () {28;}' unless defined(&R300_GB_MSPOS0__MSBD0_X);
    eval 'sub R300_GB_MSPOS1 () {0x4014;}' unless defined(&R300_GB_MSPOS1);
    eval 'sub R300_GB_MSPOS1__MS_X3_SHIFT () {0;}' unless defined(&R300_GB_MSPOS1__MS_X3_SHIFT);
    eval 'sub R300_GB_MSPOS1__MS_Y3_SHIFT () {4;}' unless defined(&R300_GB_MSPOS1__MS_Y3_SHIFT);
    eval 'sub R300_GB_MSPOS1__MS_X4_SHIFT () {8;}' unless defined(&R300_GB_MSPOS1__MS_X4_SHIFT);
    eval 'sub R300_GB_MSPOS1__MS_Y4_SHIFT () {12;}' unless defined(&R300_GB_MSPOS1__MS_Y4_SHIFT);
    eval 'sub R300_GB_MSPOS1__MS_X5_SHIFT () {16;}' unless defined(&R300_GB_MSPOS1__MS_X5_SHIFT);
    eval 'sub R300_GB_MSPOS1__MS_Y5_SHIFT () {20;}' unless defined(&R300_GB_MSPOS1__MS_Y5_SHIFT);
    eval 'sub R300_GB_MSPOS1__MSBD1 () {24;}' unless defined(&R300_GB_MSPOS1__MSBD1);
    eval 'sub R300_GB_TILE_CONFIG () {0x4018;}' unless defined(&R300_GB_TILE_CONFIG);
    eval 'sub R300_GB_TILE_ENABLE () {(1<<0);}' unless defined(&R300_GB_TILE_ENABLE);
    eval 'sub R300_GB_TILE_PIPE_COUNT_RV300 () {0;}' unless defined(&R300_GB_TILE_PIPE_COUNT_RV300);
    eval 'sub R300_GB_TILE_PIPE_COUNT_R300 () {(3<<1);}' unless defined(&R300_GB_TILE_PIPE_COUNT_R300);
    eval 'sub R300_GB_TILE_PIPE_COUNT_R420 () {(7<<1);}' unless defined(&R300_GB_TILE_PIPE_COUNT_R420);
    eval 'sub R300_GB_TILE_PIPE_COUNT_RV410 () {(3<<1);}' unless defined(&R300_GB_TILE_PIPE_COUNT_RV410);
    eval 'sub R300_GB_TILE_SIZE_8 () {0;}' unless defined(&R300_GB_TILE_SIZE_8);
    eval 'sub R300_GB_TILE_SIZE_16 () {(1<<4);}' unless defined(&R300_GB_TILE_SIZE_16);
    eval 'sub R300_GB_TILE_SIZE_32 () {(2<<4);}' unless defined(&R300_GB_TILE_SIZE_32);
    eval 'sub R300_GB_SUPER_SIZE_1 () {(0<<6);}' unless defined(&R300_GB_SUPER_SIZE_1);
    eval 'sub R300_GB_SUPER_SIZE_2 () {(1<<6);}' unless defined(&R300_GB_SUPER_SIZE_2);
    eval 'sub R300_GB_SUPER_SIZE_4 () {(2<<6);}' unless defined(&R300_GB_SUPER_SIZE_4);
    eval 'sub R300_GB_SUPER_SIZE_8 () {(3<<6);}' unless defined(&R300_GB_SUPER_SIZE_8);
    eval 'sub R300_GB_SUPER_SIZE_16 () {(4<<6);}' unless defined(&R300_GB_SUPER_SIZE_16);
    eval 'sub R300_GB_SUPER_SIZE_32 () {(5<<6);}' unless defined(&R300_GB_SUPER_SIZE_32);
    eval 'sub R300_GB_SUPER_SIZE_64 () {(6<<6);}' unless defined(&R300_GB_SUPER_SIZE_64);
    eval 'sub R300_GB_SUPER_SIZE_128 () {(7<<6);}' unless defined(&R300_GB_SUPER_SIZE_128);
    eval 'sub R300_GB_SUPER_X_SHIFT () {9;}' unless defined(&R300_GB_SUPER_X_SHIFT);
    eval 'sub R300_GB_SUPER_Y_SHIFT () {12;}' unless defined(&R300_GB_SUPER_Y_SHIFT);
    eval 'sub R300_GB_SUPER_TILE_A () {0;}' unless defined(&R300_GB_SUPER_TILE_A);
    eval 'sub R300_GB_SUPER_TILE_B () {(1<<15);}' unless defined(&R300_GB_SUPER_TILE_B);
    eval 'sub R300_GB_SUBPIXEL_1_12 () {0;}' unless defined(&R300_GB_SUBPIXEL_1_12);
    eval 'sub R300_GB_SUBPIXEL_1_16 () {(1<<16);}' unless defined(&R300_GB_SUBPIXEL_1_16);
    eval 'sub R300_GB_FIFO_SIZE () {0x4024;}' unless defined(&R300_GB_FIFO_SIZE);
    eval 'sub R300_GB_FIFO_SIZE_32 () {0;}' unless defined(&R300_GB_FIFO_SIZE_32);
    eval 'sub R300_GB_FIFO_SIZE_64 () {1;}' unless defined(&R300_GB_FIFO_SIZE_64);
    eval 'sub R300_GB_FIFO_SIZE_128 () {2;}' unless defined(&R300_GB_FIFO_SIZE_128);
    eval 'sub R300_GB_FIFO_SIZE_256 () {3;}' unless defined(&R300_GB_FIFO_SIZE_256);
    eval 'sub R300_SC_IFIFO_SIZE_SHIFT () {0;}' unless defined(&R300_SC_IFIFO_SIZE_SHIFT);
    eval 'sub R300_SC_TZFIFO_SIZE_SHIFT () {2;}' unless defined(&R300_SC_TZFIFO_SIZE_SHIFT);
    eval 'sub R300_SC_BFIFO_SIZE_SHIFT () {4;}' unless defined(&R300_SC_BFIFO_SIZE_SHIFT);
    eval 'sub R300_US_OFIFO_SIZE_SHIFT () {12;}' unless defined(&R300_US_OFIFO_SIZE_SHIFT);
    eval 'sub R300_US_WFIFO_SIZE_SHIFT () {14;}' unless defined(&R300_US_WFIFO_SIZE_SHIFT);
    eval 'sub R300_RS_TFIFO_SIZE_SHIFT () {6;}' unless defined(&R300_RS_TFIFO_SIZE_SHIFT);
    eval 'sub R300_RS_CFIFO_SIZE_SHIFT () {8;}' unless defined(&R300_RS_CFIFO_SIZE_SHIFT);
    eval 'sub R300_US_RAM_SIZE_SHIFT () {10;}' unless defined(&R300_US_RAM_SIZE_SHIFT);
    eval 'sub R300_RS_HIGHWATER_COL_SHIFT () {16;}' unless defined(&R300_RS_HIGHWATER_COL_SHIFT);
    eval 'sub R300_RS_HIGHWATER_TEX_SHIFT () {19;}' unless defined(&R300_RS_HIGHWATER_TEX_SHIFT);
    eval 'sub R300_OFIFO_HIGHWATER_SHIFT () {22;}' unless defined(&R300_OFIFO_HIGHWATER_SHIFT);
    eval 'sub R300_CUBE_FIFO_HIGHWATER_COL_SHIFT () {24;}' unless defined(&R300_CUBE_FIFO_HIGHWATER_COL_SHIFT);
    eval 'sub R300_GB_SELECT () {0x401c;}' unless defined(&R300_GB_SELECT);
    eval 'sub R300_GB_FOG_SELECT_C0A () {0;}' unless defined(&R300_GB_FOG_SELECT_C0A);
    eval 'sub R300_GB_FOG_SELECT_C1A () {1;}' unless defined(&R300_GB_FOG_SELECT_C1A);
    eval 'sub R300_GB_FOG_SELECT_C2A () {2;}' unless defined(&R300_GB_FOG_SELECT_C2A);
    eval 'sub R300_GB_FOG_SELECT_C3A () {3;}' unless defined(&R300_GB_FOG_SELECT_C3A);
    eval 'sub R300_GB_FOG_SELECT_1_1_W () {4;}' unless defined(&R300_GB_FOG_SELECT_1_1_W);
    eval 'sub R300_GB_FOG_SELECT_Z () {5;}' unless defined(&R300_GB_FOG_SELECT_Z);
    eval 'sub R300_GB_DEPTH_SELECT_Z () {0;}' unless defined(&R300_GB_DEPTH_SELECT_Z);
    eval 'sub R300_GB_DEPTH_SELECT_1_1_W () {(1<<3);}' unless defined(&R300_GB_DEPTH_SELECT_1_1_W);
    eval 'sub R300_GB_W_SELECT_1_W () {0;}' unless defined(&R300_GB_W_SELECT_1_W);
    eval 'sub R300_GB_W_SELECT_1 () {(1<<4);}' unless defined(&R300_GB_W_SELECT_1);
    eval 'sub R300_GB_AA_CONFIG () {0x4020;}' unless defined(&R300_GB_AA_CONFIG);
    eval 'sub R300_AA_DISABLE () {0x;}' unless defined(&R300_AA_DISABLE);
    eval 'sub R300_AA_ENABLE () {0x1;}' unless defined(&R300_AA_ENABLE);
    eval 'sub R300_AA_SUBSAMPLES_2 () {0;}' unless defined(&R300_AA_SUBSAMPLES_2);
    eval 'sub R300_AA_SUBSAMPLES_3 () {(1<<1);}' unless defined(&R300_AA_SUBSAMPLES_3);
    eval 'sub R300_AA_SUBSAMPLES_4 () {(2<<1);}' unless defined(&R300_AA_SUBSAMPLES_4);
    eval 'sub R300_AA_SUBSAMPLES_6 () {(3<<1);}' unless defined(&R300_AA_SUBSAMPLES_6);
    eval 'sub R300_TX_INVALTAGS () {0x4100;}' unless defined(&R300_TX_INVALTAGS);
    eval 'sub R300_TX_FLUSH () {0x;}' unless defined(&R300_TX_FLUSH);
    eval 'sub R300_TX_ENABLE () {0x4104;}' unless defined(&R300_TX_ENABLE);
    eval 'sub R300_TX_ENABLE_0 () {(1<< 0);}' unless defined(&R300_TX_ENABLE_0);
    eval 'sub R300_TX_ENABLE_1 () {(1<< 1);}' unless defined(&R300_TX_ENABLE_1);
    eval 'sub R300_TX_ENABLE_2 () {(1<< 2);}' unless defined(&R300_TX_ENABLE_2);
    eval 'sub R300_TX_ENABLE_3 () {(1<< 3);}' unless defined(&R300_TX_ENABLE_3);
    eval 'sub R300_TX_ENABLE_4 () {(1<< 4);}' unless defined(&R300_TX_ENABLE_4);
    eval 'sub R300_TX_ENABLE_5 () {(1<< 5);}' unless defined(&R300_TX_ENABLE_5);
    eval 'sub R300_TX_ENABLE_6 () {(1<< 6);}' unless defined(&R300_TX_ENABLE_6);
    eval 'sub R300_TX_ENABLE_7 () {(1<< 7);}' unless defined(&R300_TX_ENABLE_7);
    eval 'sub R300_TX_ENABLE_8 () {(1<< 8);}' unless defined(&R300_TX_ENABLE_8);
    eval 'sub R300_TX_ENABLE_9 () {(1<< 9);}' unless defined(&R300_TX_ENABLE_9);
    eval 'sub R300_TX_ENABLE_10 () {(1<< 10);}' unless defined(&R300_TX_ENABLE_10);
    eval 'sub R300_TX_ENABLE_11 () {(1<< 11);}' unless defined(&R300_TX_ENABLE_11);
    eval 'sub R300_TX_ENABLE_12 () {(1<< 12);}' unless defined(&R300_TX_ENABLE_12);
    eval 'sub R300_TX_ENABLE_13 () {(1<< 13);}' unless defined(&R300_TX_ENABLE_13);
    eval 'sub R300_TX_ENABLE_14 () {(1<< 14);}' unless defined(&R300_TX_ENABLE_14);
    eval 'sub R300_TX_ENABLE_15 () {(1<< 15);}' unless defined(&R300_TX_ENABLE_15);
    eval 'sub R300_RE_POINTSIZE () {0x421c;}' unless defined(&R300_RE_POINTSIZE);
    eval 'sub R300_POINTSIZE_Y_SHIFT () {0;}' unless defined(&R300_POINTSIZE_Y_SHIFT);
    eval 'sub R300_POINTSIZE_Y_MASK () {(0xffff << 0);}' unless defined(&R300_POINTSIZE_Y_MASK);
    eval 'sub R300_POINTSIZE_X_SHIFT () {16;}' unless defined(&R300_POINTSIZE_X_SHIFT);
    eval 'sub R300_POINTSIZE_X_MASK () {(0xffff << 16);}' unless defined(&R300_POINTSIZE_X_MASK);
    eval 'sub R300_POINTSIZE_MAX () {( &R300_POINTSIZE_Y_MASK / 6);}' unless defined(&R300_POINTSIZE_MAX);
    eval 'sub R300_RE_LINE_CNT () {0x4234;}' unless defined(&R300_RE_LINE_CNT);
    eval 'sub R300_LINESIZE_SHIFT () {0;}' unless defined(&R300_LINESIZE_SHIFT);
    eval 'sub R300_LINESIZE_MASK () {(0xffff << 0);}' unless defined(&R300_LINESIZE_MASK);
    eval 'sub R300_LINESIZE_MAX () {( &R300_LINESIZE_MASK / 6);}' unless defined(&R300_LINESIZE_MAX);
    eval 'sub R300_LINE_CNT_HO () {(1<< 16);}' unless defined(&R300_LINE_CNT_HO);
    eval 'sub R300_LINE_CNT_VE () {(1<< 17);}' unless defined(&R300_LINE_CNT_VE);
    eval 'sub R300_RE_UNK4238 () {0x4238;}' unless defined(&R300_RE_UNK4238);
    eval 'sub R300_RE_SHADE () {0x4274;}' unless defined(&R300_RE_SHADE);
    eval 'sub R300_RE_SHADE_MODEL () {0x4278;}' unless defined(&R300_RE_SHADE_MODEL);
    eval 'sub R300_RE_SHADE_MODEL_SMOOTH () {0x3aaaa;}' unless defined(&R300_RE_SHADE_MODEL_SMOOTH);
    eval 'sub R300_RE_SHADE_MODEL_FLAT () {0x39595;}' unless defined(&R300_RE_SHADE_MODEL_FLAT);
    eval 'sub R300_RE_POLYGON_MODE () {0x4288;}' unless defined(&R300_RE_POLYGON_MODE);
    eval 'sub R300_PM_ENABLED () {(1<< 0);}' unless defined(&R300_PM_ENABLED);
    eval 'sub R300_PM_FRONT_POINT () {(0<< 0);}' unless defined(&R300_PM_FRONT_POINT);
    eval 'sub R300_PM_BACK_POINT () {(0<< 0);}' unless defined(&R300_PM_BACK_POINT);
    eval 'sub R300_PM_FRONT_LINE () {(1<< 4);}' unless defined(&R300_PM_FRONT_LINE);
    eval 'sub R300_PM_FRONT_FILL () {(1<< 5);}' unless defined(&R300_PM_FRONT_FILL);
    eval 'sub R300_PM_BACK_LINE () {(1<< 7);}' unless defined(&R300_PM_BACK_LINE);
    eval 'sub R300_PM_BACK_FILL () {(1<< 8);}' unless defined(&R300_PM_BACK_FILL);
    eval 'sub R300_RE_FOG_SCALE () {0x4294;}' unless defined(&R300_RE_FOG_SCALE);
    eval 'sub R300_RE_FOG_START () {0x4298;}' unless defined(&R300_RE_FOG_START);
    eval 'sub R300_RE_ZBIAS_CNTL () {0x42a0;}' unless defined(&R300_RE_ZBIAS_CNTL);
    eval 'sub R300_RE_ZBIAS_T_FACTOR () {0x42a4;}' unless defined(&R300_RE_ZBIAS_T_FACTOR);
    eval 'sub R300_RE_ZBIAS_T_CONSTANT () {0x42a8;}' unless defined(&R300_RE_ZBIAS_T_CONSTANT);
    eval 'sub R300_RE_ZBIAS_W_FACTOR () {0x42ac;}' unless defined(&R300_RE_ZBIAS_W_FACTOR);
    eval 'sub R300_RE_ZBIAS_W_CONSTANT () {0x42b0;}' unless defined(&R300_RE_ZBIAS_W_CONSTANT);
    eval 'sub R300_RE_OCCLUSION_CNTL () {0x42b4;}' unless defined(&R300_RE_OCCLUSION_CNTL);
    eval 'sub R300_OCCLUSION_ON () {(1<<1);}' unless defined(&R300_OCCLUSION_ON);
    eval 'sub R300_RE_CULL_CNTL () {0x42b8;}' unless defined(&R300_RE_CULL_CNTL);
    eval 'sub R300_CULL_FRONT () {(1<< 0);}' unless defined(&R300_CULL_FRONT);
    eval 'sub R300_CULL_BACK () {(1<< 1);}' unless defined(&R300_CULL_BACK);
    eval 'sub R300_FRONT_FACE_CCW () {(0<< 2);}' unless defined(&R300_FRONT_FACE_CCW);
    eval 'sub R300_FRONT_FACE_CW () {(1<< 2);}' unless defined(&R300_FRONT_FACE_CW);
    eval 'sub R300_RS_CNTL_0 () {0x4300;}' unless defined(&R300_RS_CNTL_0);
    eval 'sub R300_RS_CNTL_TC_CNT_SHIFT () {2;}' unless defined(&R300_RS_CNTL_TC_CNT_SHIFT);
    eval 'sub R300_RS_CNTL_TC_CNT_MASK () {(7<< 2);}' unless defined(&R300_RS_CNTL_TC_CNT_MASK);
    eval 'sub R300_RS_CNTL_CI_CNT_SHIFT () {7;}' unless defined(&R300_RS_CNTL_CI_CNT_SHIFT);
    eval 'sub R300_RS_CNTL_0_UNKNOWN_18 () {(1<< 18);}' unless defined(&R300_RS_CNTL_0_UNKNOWN_18);
    eval 'sub R300_RS_CNTL_1 () {0x4304;}' unless defined(&R300_RS_CNTL_1);
    eval 'sub R300_RS_INTERP_0 () {0x4310;}' unless defined(&R300_RS_INTERP_0);
    eval 'sub R300_RS_INTERP_1 () {0x4314;}' unless defined(&R300_RS_INTERP_1);
    eval 'sub R300_RS_INTERP_1_UNKNOWN () {0x40;}' unless defined(&R300_RS_INTERP_1_UNKNOWN);
    eval 'sub R300_RS_INTERP_2 () {0x4318;}' unless defined(&R300_RS_INTERP_2);
    eval 'sub R300_RS_INTERP_2_UNKNOWN () {0x80;}' unless defined(&R300_RS_INTERP_2_UNKNOWN);
    eval 'sub R300_RS_INTERP_3 () {0x431c;}' unless defined(&R300_RS_INTERP_3);
    eval 'sub R300_RS_INTERP_3_UNKNOWN () {0xc0;}' unless defined(&R300_RS_INTERP_3_UNKNOWN);
    eval 'sub R300_RS_INTERP_4 () {0x4320;}' unless defined(&R300_RS_INTERP_4);
    eval 'sub R300_RS_INTERP_5 () {0x4324;}' unless defined(&R300_RS_INTERP_5);
    eval 'sub R300_RS_INTERP_6 () {0x4328;}' unless defined(&R300_RS_INTERP_6);
    eval 'sub R300_RS_INTERP_7 () {0x432c;}' unless defined(&R300_RS_INTERP_7);
    eval 'sub R300_RS_INTERP_SRC_SHIFT () {2;}' unless defined(&R300_RS_INTERP_SRC_SHIFT);
    eval 'sub R300_RS_INTERP_SRC_MASK () {(7<< 2);}' unless defined(&R300_RS_INTERP_SRC_MASK);
    eval 'sub R300_RS_INTERP_USED () {0xd10000;}' unless defined(&R300_RS_INTERP_USED);
    eval 'sub R300_RS_ROUTE_0 () {0x4330;}' unless defined(&R300_RS_ROUTE_0);
    eval 'sub R300_RS_ROUTE_1 () {0x4334;}' unless defined(&R300_RS_ROUTE_1);
    eval 'sub R300_RS_ROUTE_2 () {0x4338;}' unless defined(&R300_RS_ROUTE_2);
    eval 'sub R300_RS_ROUTE_3 () {0x433c;}' unless defined(&R300_RS_ROUTE_3);
    eval 'sub R300_RS_ROUTE_4 () {0x4340;}' unless defined(&R300_RS_ROUTE_4);
    eval 'sub R300_RS_ROUTE_5 () {0x4344;}' unless defined(&R300_RS_ROUTE_5);
    eval 'sub R300_RS_ROUTE_6 () {0x4348;}' unless defined(&R300_RS_ROUTE_6);
    eval 'sub R300_RS_ROUTE_7 () {0x434c;}' unless defined(&R300_RS_ROUTE_7);
    eval 'sub R300_RS_ROUTE_SOURCE_INTERP_0 () {0;}' unless defined(&R300_RS_ROUTE_SOURCE_INTERP_0);
    eval 'sub R300_RS_ROUTE_SOURCE_INTERP_1 () {1;}' unless defined(&R300_RS_ROUTE_SOURCE_INTERP_1);
    eval 'sub R300_RS_ROUTE_SOURCE_INTERP_2 () {2;}' unless defined(&R300_RS_ROUTE_SOURCE_INTERP_2);
    eval 'sub R300_RS_ROUTE_SOURCE_INTERP_3 () {3;}' unless defined(&R300_RS_ROUTE_SOURCE_INTERP_3);
    eval 'sub R300_RS_ROUTE_SOURCE_INTERP_4 () {4;}' unless defined(&R300_RS_ROUTE_SOURCE_INTERP_4);
    eval 'sub R300_RS_ROUTE_SOURCE_INTERP_5 () {5;}' unless defined(&R300_RS_ROUTE_SOURCE_INTERP_5);
    eval 'sub R300_RS_ROUTE_SOURCE_INTERP_6 () {6;}' unless defined(&R300_RS_ROUTE_SOURCE_INTERP_6);
    eval 'sub R300_RS_ROUTE_SOURCE_INTERP_7 () {7;}' unless defined(&R300_RS_ROUTE_SOURCE_INTERP_7);
    eval 'sub R300_RS_ROUTE_ENABLE () {(1<< 3);}' unless defined(&R300_RS_ROUTE_ENABLE);
    eval 'sub R300_RS_ROUTE_DEST_SHIFT () {6;}' unless defined(&R300_RS_ROUTE_DEST_SHIFT);
    eval 'sub R300_RS_ROUTE_DEST_MASK () {(31<< 6);}' unless defined(&R300_RS_ROUTE_DEST_MASK);
    eval 'sub R300_RS_ROUTE_0_COLOR () {(1<< 14);}' unless defined(&R300_RS_ROUTE_0_COLOR);
    eval 'sub R300_RS_ROUTE_0_COLOR_DEST_SHIFT () {17;}' unless defined(&R300_RS_ROUTE_0_COLOR_DEST_SHIFT);
    eval 'sub R300_RS_ROUTE_0_COLOR_DEST_MASK () {(31<< 17);}' unless defined(&R300_RS_ROUTE_0_COLOR_DEST_MASK);
    eval 'sub R300_RS_ROUTE_1_COLOR1 () {(1<< 14);}' unless defined(&R300_RS_ROUTE_1_COLOR1);
    eval 'sub R300_RS_ROUTE_1_COLOR1_DEST_SHIFT () {17;}' unless defined(&R300_RS_ROUTE_1_COLOR1_DEST_SHIFT);
    eval 'sub R300_RS_ROUTE_1_COLOR1_DEST_MASK () {(31<< 17);}' unless defined(&R300_RS_ROUTE_1_COLOR1_DEST_MASK);
    eval 'sub R300_RS_ROUTE_1_UNKNOWN11 () {(1<< 11);}' unless defined(&R300_RS_ROUTE_1_UNKNOWN11);
    eval 'sub R300_SC_HYPERZ () {0x43a4;}' unless defined(&R300_SC_HYPERZ);
    eval 'sub R300_SC_HYPERZ_DISABLE () {(0<< 0);}' unless defined(&R300_SC_HYPERZ_DISABLE);
    eval 'sub R300_SC_HYPERZ_ENABLE () {(1<< 0);}' unless defined(&R300_SC_HYPERZ_ENABLE);
    eval 'sub R300_SC_HYPERZ_MIN () {(0<< 1);}' unless defined(&R300_SC_HYPERZ_MIN);
    eval 'sub R300_SC_HYPERZ_MAX () {(1<< 1);}' unless defined(&R300_SC_HYPERZ_MAX);
    eval 'sub R300_SC_HYPERZ_ADJ_256 () {(0<< 2);}' unless defined(&R300_SC_HYPERZ_ADJ_256);
    eval 'sub R300_SC_HYPERZ_ADJ_128 () {(1<< 2);}' unless defined(&R300_SC_HYPERZ_ADJ_128);
    eval 'sub R300_SC_HYPERZ_ADJ_64 () {(2<< 2);}' unless defined(&R300_SC_HYPERZ_ADJ_64);
    eval 'sub R300_SC_HYPERZ_ADJ_32 () {(3<< 2);}' unless defined(&R300_SC_HYPERZ_ADJ_32);
    eval 'sub R300_SC_HYPERZ_ADJ_16 () {(4<< 2);}' unless defined(&R300_SC_HYPERZ_ADJ_16);
    eval 'sub R300_SC_HYPERZ_ADJ_8 () {(5<< 2);}' unless defined(&R300_SC_HYPERZ_ADJ_8);
    eval 'sub R300_SC_HYPERZ_ADJ_4 () {(6<< 2);}' unless defined(&R300_SC_HYPERZ_ADJ_4);
    eval 'sub R300_SC_HYPERZ_ADJ_2 () {(7<< 2);}' unless defined(&R300_SC_HYPERZ_ADJ_2);
    eval 'sub R300_SC_HYPERZ_HZ_Z0MIN_NO () {(0<< 5);}' unless defined(&R300_SC_HYPERZ_HZ_Z0MIN_NO);
    eval 'sub R300_SC_HYPERZ_HZ_Z0MIN () {(1<< 5);}' unless defined(&R300_SC_HYPERZ_HZ_Z0MIN);
    eval 'sub R300_SC_HYPERZ_HZ_Z0MAX_NO () {(0<< 6);}' unless defined(&R300_SC_HYPERZ_HZ_Z0MAX_NO);
    eval 'sub R300_SC_HYPERZ_HZ_Z0MAX () {(1<< 6);}' unless defined(&R300_SC_HYPERZ_HZ_Z0MAX);
    eval 'sub R300_SC_EDGERULE () {0x43a8;}' unless defined(&R300_SC_EDGERULE);
    eval 'sub R300_RE_CLIPRECT_TL_0 () {0x43b0;}' unless defined(&R300_RE_CLIPRECT_TL_0);
    eval 'sub R300_RE_CLIPRECT_BR_0 () {0x43b4;}' unless defined(&R300_RE_CLIPRECT_BR_0);
    eval 'sub R300_RE_CLIPRECT_TL_1 () {0x43b8;}' unless defined(&R300_RE_CLIPRECT_TL_1);
    eval 'sub R300_RE_CLIPRECT_BR_1 () {0x43bc;}' unless defined(&R300_RE_CLIPRECT_BR_1);
    eval 'sub R300_RE_CLIPRECT_TL_2 () {0x43c0;}' unless defined(&R300_RE_CLIPRECT_TL_2);
    eval 'sub R300_RE_CLIPRECT_BR_2 () {0x43c4;}' unless defined(&R300_RE_CLIPRECT_BR_2);
    eval 'sub R300_RE_CLIPRECT_TL_3 () {0x43c8;}' unless defined(&R300_RE_CLIPRECT_TL_3);
    eval 'sub R300_RE_CLIPRECT_BR_3 () {0x43cc;}' unless defined(&R300_RE_CLIPRECT_BR_3);
    eval 'sub R300_CLIPRECT_OFFSET () {1440;}' unless defined(&R300_CLIPRECT_OFFSET);
    eval 'sub R300_CLIPRECT_MASK () {0x1fff;}' unless defined(&R300_CLIPRECT_MASK);
    eval 'sub R300_CLIPRECT_X_SHIFT () {0;}' unless defined(&R300_CLIPRECT_X_SHIFT);
    eval 'sub R300_CLIPRECT_X_MASK () {(0x1fff << 0);}' unless defined(&R300_CLIPRECT_X_MASK);
    eval 'sub R300_CLIPRECT_Y_SHIFT () {13;}' unless defined(&R300_CLIPRECT_Y_SHIFT);
    eval 'sub R300_CLIPRECT_Y_MASK () {(0x1fff << 13);}' unless defined(&R300_CLIPRECT_Y_MASK);
    eval 'sub R300_RE_CLIPRECT_CNTL () {0x43d0;}' unless defined(&R300_RE_CLIPRECT_CNTL);
    eval 'sub R300_CLIP_OUT () {(1<< 0);}' unless defined(&R300_CLIP_OUT);
    eval 'sub R300_CLIP_0 () {(1<< 1);}' unless defined(&R300_CLIP_0);
    eval 'sub R300_CLIP_1 () {(1<< 2);}' unless defined(&R300_CLIP_1);
    eval 'sub R300_CLIP_10 () {(1<< 3);}' unless defined(&R300_CLIP_10);
    eval 'sub R300_CLIP_2 () {(1<< 4);}' unless defined(&R300_CLIP_2);
    eval 'sub R300_CLIP_20 () {(1<< 5);}' unless defined(&R300_CLIP_20);
    eval 'sub R300_CLIP_21 () {(1<< 6);}' unless defined(&R300_CLIP_21);
    eval 'sub R300_CLIP_210 () {(1<< 7);}' unless defined(&R300_CLIP_210);
    eval 'sub R300_CLIP_3 () {(1<< 8);}' unless defined(&R300_CLIP_3);
    eval 'sub R300_CLIP_30 () {(1<< 9);}' unless defined(&R300_CLIP_30);
    eval 'sub R300_CLIP_31 () {(1<< 10);}' unless defined(&R300_CLIP_31);
    eval 'sub R300_CLIP_310 () {(1<< 11);}' unless defined(&R300_CLIP_310);
    eval 'sub R300_CLIP_32 () {(1<< 12);}' unless defined(&R300_CLIP_32);
    eval 'sub R300_CLIP_320 () {(1<< 13);}' unless defined(&R300_CLIP_320);
    eval 'sub R300_CLIP_321 () {(1<< 14);}' unless defined(&R300_CLIP_321);
    eval 'sub R300_CLIP_3210 () {(1<< 15);}' unless defined(&R300_CLIP_3210);
    eval 'sub R300_RE_SCISSORS_TL () {0x43e0;}' unless defined(&R300_RE_SCISSORS_TL);
    eval 'sub R300_RE_SCISSORS_BR () {0x43e4;}' unless defined(&R300_RE_SCISSORS_BR);
    eval 'sub R300_SCISSORS_OFFSET () {1440;}' unless defined(&R300_SCISSORS_OFFSET);
    eval 'sub R300_SCISSORS_X_SHIFT () {0;}' unless defined(&R300_SCISSORS_X_SHIFT);
    eval 'sub R300_SCISSORS_X_MASK () {(0x1fff << 0);}' unless defined(&R300_SCISSORS_X_MASK);
    eval 'sub R300_SCISSORS_Y_SHIFT () {13;}' unless defined(&R300_SCISSORS_Y_SHIFT);
    eval 'sub R300_SCISSORS_Y_MASK () {(0x1fff << 13);}' unless defined(&R300_SCISSORS_Y_MASK);
    eval 'sub R300_TX_FILTER_0 () {0x4400;}' unless defined(&R300_TX_FILTER_0);
    eval 'sub R300_TX_REPEAT () {0;}' unless defined(&R300_TX_REPEAT);
    eval 'sub R300_TX_MIRRORED () {1;}' unless defined(&R300_TX_MIRRORED);
    eval 'sub R300_TX_CLAMP () {4;}' unless defined(&R300_TX_CLAMP);
    eval 'sub R300_TX_CLAMP_TO_EDGE () {2;}' unless defined(&R300_TX_CLAMP_TO_EDGE);
    eval 'sub R300_TX_CLAMP_TO_BORDER () {6;}' unless defined(&R300_TX_CLAMP_TO_BORDER);
    eval 'sub R300_TX_WRAP_S_SHIFT () {0;}' unless defined(&R300_TX_WRAP_S_SHIFT);
    eval 'sub R300_TX_WRAP_S_MASK () {(7<< 0);}' unless defined(&R300_TX_WRAP_S_MASK);
    eval 'sub R300_TX_WRAP_T_SHIFT () {3;}' unless defined(&R300_TX_WRAP_T_SHIFT);
    eval 'sub R300_TX_WRAP_T_MASK () {(7<< 3);}' unless defined(&R300_TX_WRAP_T_MASK);
    eval 'sub R300_TX_WRAP_Q_SHIFT () {6;}' unless defined(&R300_TX_WRAP_Q_SHIFT);
    eval 'sub R300_TX_WRAP_Q_MASK () {(7<< 6);}' unless defined(&R300_TX_WRAP_Q_MASK);
    eval 'sub R300_TX_MAG_FILTER_NEAREST () {(1<< 9);}' unless defined(&R300_TX_MAG_FILTER_NEAREST);
    eval 'sub R300_TX_MAG_FILTER_LINEAR () {(2<< 9);}' unless defined(&R300_TX_MAG_FILTER_LINEAR);
    eval 'sub R300_TX_MAG_FILTER_MASK () {(3<< 9);}' unless defined(&R300_TX_MAG_FILTER_MASK);
    eval 'sub R300_TX_MIN_FILTER_NEAREST () {(1<< 11);}' unless defined(&R300_TX_MIN_FILTER_NEAREST);
    eval 'sub R300_TX_MIN_FILTER_LINEAR () {(2<< 11);}' unless defined(&R300_TX_MIN_FILTER_LINEAR);
    eval 'sub R300_TX_MIN_FILTER_NEAREST_MIP_NEAREST () {(5<< 11);}' unless defined(&R300_TX_MIN_FILTER_NEAREST_MIP_NEAREST);
    eval 'sub R300_TX_MIN_FILTER_NEAREST_MIP_LINEAR () {(9<< 11);}' unless defined(&R300_TX_MIN_FILTER_NEAREST_MIP_LINEAR);
    eval 'sub R300_TX_MIN_FILTER_LINEAR_MIP_NEAREST () {(6<< 11);}' unless defined(&R300_TX_MIN_FILTER_LINEAR_MIP_NEAREST);
    eval 'sub R300_TX_MIN_FILTER_LINEAR_MIP_LINEAR () {(10<< 11);}' unless defined(&R300_TX_MIN_FILTER_LINEAR_MIP_LINEAR);
    eval 'sub R300_TX_MIN_FILTER_ANISO_NEAREST () {(0<< 13);}' unless defined(&R300_TX_MIN_FILTER_ANISO_NEAREST);
    eval 'sub R300_TX_MIN_FILTER_ANISO_LINEAR () {(0<< 13);}' unless defined(&R300_TX_MIN_FILTER_ANISO_LINEAR);
    eval 'sub R300_TX_MIN_FILTER_ANISO_NEAREST_MIP_NEAREST () {(1<< 13);}' unless defined(&R300_TX_MIN_FILTER_ANISO_NEAREST_MIP_NEAREST);
    eval 'sub R300_TX_MIN_FILTER_ANISO_NEAREST_MIP_LINEAR () {(2<< 13);}' unless defined(&R300_TX_MIN_FILTER_ANISO_NEAREST_MIP_LINEAR);
    eval 'sub R300_TX_MIN_FILTER_MASK () {( (15<< 11) | (3<< 13) );}' unless defined(&R300_TX_MIN_FILTER_MASK);
    eval 'sub R300_TX_MAX_ANISO_1_TO_1 () {(0<< 21);}' unless defined(&R300_TX_MAX_ANISO_1_TO_1);
    eval 'sub R300_TX_MAX_ANISO_2_TO_1 () {(2<< 21);}' unless defined(&R300_TX_MAX_ANISO_2_TO_1);
    eval 'sub R300_TX_MAX_ANISO_4_TO_1 () {(4<< 21);}' unless defined(&R300_TX_MAX_ANISO_4_TO_1);
    eval 'sub R300_TX_MAX_ANISO_8_TO_1 () {(6<< 21);}' unless defined(&R300_TX_MAX_ANISO_8_TO_1);
    eval 'sub R300_TX_MAX_ANISO_16_TO_1 () {(8<< 21);}' unless defined(&R300_TX_MAX_ANISO_16_TO_1);
    eval 'sub R300_TX_MAX_ANISO_MASK () {(14<< 21);}' unless defined(&R300_TX_MAX_ANISO_MASK);
    eval 'sub R300_TX_FILTER1_0 () {0x4440;}' unless defined(&R300_TX_FILTER1_0);
    eval 'sub R300_CHROMA_KEY_MODE_DISABLE () {0;}' unless defined(&R300_CHROMA_KEY_MODE_DISABLE);
    eval 'sub R300_CHROMA_KEY_FORCE () {1;}' unless defined(&R300_CHROMA_KEY_FORCE);
    eval 'sub R300_CHROMA_KEY_BLEND () {2;}' unless defined(&R300_CHROMA_KEY_BLEND);
    eval 'sub R300_MC_ROUND_NORMAL () {(0<<2);}' unless defined(&R300_MC_ROUND_NORMAL);
    eval 'sub R300_MC_ROUND_MPEG4 () {(1<<2);}' unless defined(&R300_MC_ROUND_MPEG4);
    eval 'sub R300_LOD_BIAS_MASK () {0x1fff;}' unless defined(&R300_LOD_BIAS_MASK);
    eval 'sub R300_EDGE_ANISO_EDGE_DIAG () {(0<<13);}' unless defined(&R300_EDGE_ANISO_EDGE_DIAG);
    eval 'sub R300_EDGE_ANISO_EDGE_ONLY () {(1<<13);}' unless defined(&R300_EDGE_ANISO_EDGE_ONLY);
    eval 'sub R300_MC_COORD_TRUNCATE_DISABLE () {(0<<14);}' unless defined(&R300_MC_COORD_TRUNCATE_DISABLE);
    eval 'sub R300_MC_COORD_TRUNCATE_MPEG () {(1<<14);}' unless defined(&R300_MC_COORD_TRUNCATE_MPEG);
    eval 'sub R300_TX_TRI_PERF_0_8 () {(0<<15);}' unless defined(&R300_TX_TRI_PERF_0_8);
    eval 'sub R300_TX_TRI_PERF_1_8 () {(1<<15);}' unless defined(&R300_TX_TRI_PERF_1_8);
    eval 'sub R300_TX_TRI_PERF_1_4 () {(2<<15);}' unless defined(&R300_TX_TRI_PERF_1_4);
    eval 'sub R300_TX_TRI_PERF_3_8 () {(3<<15);}' unless defined(&R300_TX_TRI_PERF_3_8);
    eval 'sub R300_ANISO_THRESHOLD_MASK () {(7<<17);}' unless defined(&R300_ANISO_THRESHOLD_MASK);
    eval 'sub R300_TX_SIZE_0 () {0x4480;}' unless defined(&R300_TX_SIZE_0);
    eval 'sub R300_TX_WIDTHMASK_SHIFT () {0;}' unless defined(&R300_TX_WIDTHMASK_SHIFT);
    eval 'sub R300_TX_WIDTHMASK_MASK () {(2047<< 0);}' unless defined(&R300_TX_WIDTHMASK_MASK);
    eval 'sub R300_TX_HEIGHTMASK_SHIFT () {11;}' unless defined(&R300_TX_HEIGHTMASK_SHIFT);
    eval 'sub R300_TX_HEIGHTMASK_MASK () {(2047<< 11);}' unless defined(&R300_TX_HEIGHTMASK_MASK);
    eval 'sub R300_TX_UNK23 () {(1<< 23);}' unless defined(&R300_TX_UNK23);
    eval 'sub R300_TX_MAX_MIP_LEVEL_SHIFT () {26;}' unless defined(&R300_TX_MAX_MIP_LEVEL_SHIFT);
    eval 'sub R300_TX_MAX_MIP_LEVEL_MASK () {(0xf << 26);}' unless defined(&R300_TX_MAX_MIP_LEVEL_MASK);
    eval 'sub R300_TX_SIZE_PROJECTED () {(1<<30);}' unless defined(&R300_TX_SIZE_PROJECTED);
    eval 'sub R300_TX_SIZE_TXPITCH_EN () {(1<<31);}' unless defined(&R300_TX_SIZE_TXPITCH_EN);
    eval 'sub R300_TX_FORMAT_0 () {0x44c0;}' unless defined(&R300_TX_FORMAT_0);
    eval 'sub R300_TX_FORMAT_X8 () {0x;}' unless defined(&R300_TX_FORMAT_X8);
    eval 'sub R300_TX_FORMAT_X16 () {0x1;}' unless defined(&R300_TX_FORMAT_X16);
    eval 'sub R300_TX_FORMAT_Y4X4 () {0x2;}' unless defined(&R300_TX_FORMAT_Y4X4);
    eval 'sub R300_TX_FORMAT_Y8X8 () {0x3;}' unless defined(&R300_TX_FORMAT_Y8X8);
    eval 'sub R300_TX_FORMAT_Y16X16 () {0x4;}' unless defined(&R300_TX_FORMAT_Y16X16);
    eval 'sub R300_TX_FORMAT_Z3Y3X2 () {0x5;}' unless defined(&R300_TX_FORMAT_Z3Y3X2);
    eval 'sub R300_TX_FORMAT_Z5Y6X5 () {0x6;}' unless defined(&R300_TX_FORMAT_Z5Y6X5);
    eval 'sub R300_TX_FORMAT_Z6Y5X5 () {0x7;}' unless defined(&R300_TX_FORMAT_Z6Y5X5);
    eval 'sub R300_TX_FORMAT_Z11Y11X10 () {0x8;}' unless defined(&R300_TX_FORMAT_Z11Y11X10);
    eval 'sub R300_TX_FORMAT_Z10Y11X11 () {0x9;}' unless defined(&R300_TX_FORMAT_Z10Y11X11);
    eval 'sub R300_TX_FORMAT_W4Z4Y4X4 () {0xa;}' unless defined(&R300_TX_FORMAT_W4Z4Y4X4);
    eval 'sub R300_TX_FORMAT_W1Z5Y5X5 () {0xb;}' unless defined(&R300_TX_FORMAT_W1Z5Y5X5);
    eval 'sub R300_TX_FORMAT_W8Z8Y8X8 () {0xc;}' unless defined(&R300_TX_FORMAT_W8Z8Y8X8);
    eval 'sub R300_TX_FORMAT_W2Z10Y10X10 () {0xd;}' unless defined(&R300_TX_FORMAT_W2Z10Y10X10);
    eval 'sub R300_TX_FORMAT_W16Z16Y16X16 () {0xe;}' unless defined(&R300_TX_FORMAT_W16Z16Y16X16);
    eval 'sub R300_TX_FORMAT_DXT1 () {0xf;}' unless defined(&R300_TX_FORMAT_DXT1);
    eval 'sub R300_TX_FORMAT_DXT3 () {0x10;}' unless defined(&R300_TX_FORMAT_DXT3);
    eval 'sub R300_TX_FORMAT_DXT5 () {0x11;}' unless defined(&R300_TX_FORMAT_DXT5);
    eval 'sub R300_TX_FORMAT_D3DMFT_CxV8U8 () {0x12;}' unless defined(&R300_TX_FORMAT_D3DMFT_CxV8U8);
    eval 'sub R300_TX_FORMAT_A8R8G8B8 () {0x13;}' unless defined(&R300_TX_FORMAT_A8R8G8B8);
    eval 'sub R300_TX_FORMAT_B8G8_B8G8 () {0x14;}' unless defined(&R300_TX_FORMAT_B8G8_B8G8);
    eval 'sub R300_TX_FORMAT_G8R8_G8B8 () {0x15;}' unless defined(&R300_TX_FORMAT_G8R8_G8B8);
    eval 'sub R300_TX_FORMAT_UNK25 () {(1<< 25);}' unless defined(&R300_TX_FORMAT_UNK25);
    eval 'sub R300_TX_FORMAT_CUBIC_MAP () {(1<< 26);}' unless defined(&R300_TX_FORMAT_CUBIC_MAP);
    eval 'sub R300_TX_FORMAT_FL_I16 () {0x18;}' unless defined(&R300_TX_FORMAT_FL_I16);
    eval 'sub R300_TX_FORMAT_FL_I16A16 () {0x19;}' unless defined(&R300_TX_FORMAT_FL_I16A16);
    eval 'sub R300_TX_FORMAT_FL_R16G16B16A16 () {0x1a;}' unless defined(&R300_TX_FORMAT_FL_R16G16B16A16);
    eval 'sub R300_TX_FORMAT_FL_I32 () {0x1b;}' unless defined(&R300_TX_FORMAT_FL_I32);
    eval 'sub R300_TX_FORMAT_FL_I32A32 () {0x1c;}' unless defined(&R300_TX_FORMAT_FL_I32A32);
    eval 'sub R300_TX_FORMAT_FL_R32G32B32A32 () {0x1d;}' unless defined(&R300_TX_FORMAT_FL_R32G32B32A32);
    eval 'sub R300_TX_FORMAT_ALPHA_1CH () {0x;}' unless defined(&R300_TX_FORMAT_ALPHA_1CH);
    eval 'sub R300_TX_FORMAT_ALPHA_2CH () {0x200;}' unless defined(&R300_TX_FORMAT_ALPHA_2CH);
    eval 'sub R300_TX_FORMAT_ALPHA_4CH () {0x600;}' unless defined(&R300_TX_FORMAT_ALPHA_4CH);
    eval 'sub R300_TX_FORMAT_ALPHA_NONE () {0xa00;}' unless defined(&R300_TX_FORMAT_ALPHA_NONE);
    eval 'sub R300_TX_FORMAT_X () {0;}' unless defined(&R300_TX_FORMAT_X);
    eval 'sub R300_TX_FORMAT_Y () {1;}' unless defined(&R300_TX_FORMAT_Y);
    eval 'sub R300_TX_FORMAT_Z () {2;}' unless defined(&R300_TX_FORMAT_Z);
    eval 'sub R300_TX_FORMAT_W () {3;}' unless defined(&R300_TX_FORMAT_W);
    eval 'sub R300_TX_FORMAT_ZERO () {4;}' unless defined(&R300_TX_FORMAT_ZERO);
    eval 'sub R300_TX_FORMAT_ONE () {5;}' unless defined(&R300_TX_FORMAT_ONE);
    eval 'sub R300_TX_FORMAT_CUT_Z () {6;}' unless defined(&R300_TX_FORMAT_CUT_Z);
    eval 'sub R300_TX_FORMAT_CUT_W () {7;}' unless defined(&R300_TX_FORMAT_CUT_W);
    eval 'sub R300_TX_FORMAT_B_SHIFT () {18;}' unless defined(&R300_TX_FORMAT_B_SHIFT);
    eval 'sub R300_TX_FORMAT_G_SHIFT () {15;}' unless defined(&R300_TX_FORMAT_G_SHIFT);
    eval 'sub R300_TX_FORMAT_R_SHIFT () {12;}' unless defined(&R300_TX_FORMAT_R_SHIFT);
    eval 'sub R300_TX_FORMAT_A_SHIFT () {9;}' unless defined(&R300_TX_FORMAT_A_SHIFT);
    eval 'sub R300_EASY_TX_FORMAT {
        my($B, $G, $R, $A, $FMT) = @_;
	    eval q(( (( &R300_TX_FORMAT_$B)<< &R300_TX_FORMAT_B_SHIFT) | (( &R300_TX_FORMAT_$G)<< &R300_TX_FORMAT_G_SHIFT) | (( &R300_TX_FORMAT_$R)<< &R300_TX_FORMAT_R_SHIFT) | (( &R300_TX_FORMAT_$A)<< &R300_TX_FORMAT_A_SHIFT) | ( &R300_TX_FORMAT_$FMT) ));
    }' unless defined(&R300_EASY_TX_FORMAT);
    eval 'sub R300_TX_FORMAT_CONST_X () {(1<<5);}' unless defined(&R300_TX_FORMAT_CONST_X);
    eval 'sub R300_TX_FORMAT_CONST_Y () {(2<<5);}' unless defined(&R300_TX_FORMAT_CONST_Y);
    eval 'sub R300_TX_FORMAT_CONST_Z () {(4<<5);}' unless defined(&R300_TX_FORMAT_CONST_Z);
    eval 'sub R300_TX_FORMAT_CONST_W () {(8<<5);}' unless defined(&R300_TX_FORMAT_CONST_W);
    eval 'sub R300_TX_FORMAT_YUV_MODE () {0x800000;}' unless defined(&R300_TX_FORMAT_YUV_MODE);
    eval 'sub R300_TX_PITCH_0 () {0x4500;}' unless defined(&R300_TX_PITCH_0);
    eval 'sub R300_TX_OFFSET_0 () {0x4540;}' unless defined(&R300_TX_OFFSET_0);
    eval 'sub R300_TXO_ENDIAN_NO_SWAP () {(0<< 0);}' unless defined(&R300_TXO_ENDIAN_NO_SWAP);
    eval 'sub R300_TXO_ENDIAN_BYTE_SWAP () {(1<< 0);}' unless defined(&R300_TXO_ENDIAN_BYTE_SWAP);
    eval 'sub R300_TXO_ENDIAN_WORD_SWAP () {(2<< 0);}' unless defined(&R300_TXO_ENDIAN_WORD_SWAP);
    eval 'sub R300_TXO_ENDIAN_HALFDW_SWAP () {(3<< 0);}' unless defined(&R300_TXO_ENDIAN_HALFDW_SWAP);
    eval 'sub R300_TXO_MACRO_TILE () {(1<< 2);}' unless defined(&R300_TXO_MACRO_TILE);
    eval 'sub R300_TXO_MICRO_TILE () {(1<< 3);}' unless defined(&R300_TXO_MICRO_TILE);
    eval 'sub R300_TXO_OFFSET_MASK () {0xffffffe0;}' unless defined(&R300_TXO_OFFSET_MASK);
    eval 'sub R300_TXO_OFFSET_SHIFT () {5;}' unless defined(&R300_TXO_OFFSET_SHIFT);
    eval 'sub R300_TX_CHROMA_KEY_0 () {0x4580;}' unless defined(&R300_TX_CHROMA_KEY_0);
    eval 'sub R300_TX_BORDER_COLOR_0 () {0x45c0;}' unless defined(&R300_TX_BORDER_COLOR_0);
    eval 'sub R300_PFS_CNTL_0 () {0x4600;}' unless defined(&R300_PFS_CNTL_0);
    eval 'sub R300_PFS_CNTL_LAST_NODES_SHIFT () {0;}' unless defined(&R300_PFS_CNTL_LAST_NODES_SHIFT);
    eval 'sub R300_PFS_CNTL_LAST_NODES_MASK () {(3<< 0);}' unless defined(&R300_PFS_CNTL_LAST_NODES_MASK);
    eval 'sub R300_PFS_CNTL_FIRST_NODE_HAS_TEX () {(1<< 3);}' unless defined(&R300_PFS_CNTL_FIRST_NODE_HAS_TEX);
    eval 'sub R300_PFS_CNTL_1 () {0x4604;}' unless defined(&R300_PFS_CNTL_1);
    eval 'sub R300_PFS_CNTL_2 () {0x4608;}' unless defined(&R300_PFS_CNTL_2);
    eval 'sub R300_PFS_CNTL_ALU_OFFSET_SHIFT () {0;}' unless defined(&R300_PFS_CNTL_ALU_OFFSET_SHIFT);
    eval 'sub R300_PFS_CNTL_ALU_OFFSET_MASK () {(63<< 0);}' unless defined(&R300_PFS_CNTL_ALU_OFFSET_MASK);
    eval 'sub R300_PFS_CNTL_ALU_END_SHIFT () {6;}' unless defined(&R300_PFS_CNTL_ALU_END_SHIFT);
    eval 'sub R300_PFS_CNTL_ALU_END_MASK () {(63<< 6);}' unless defined(&R300_PFS_CNTL_ALU_END_MASK);
    eval 'sub R300_PFS_CNTL_TEX_OFFSET_SHIFT () {12;}' unless defined(&R300_PFS_CNTL_TEX_OFFSET_SHIFT);
    eval 'sub R300_PFS_CNTL_TEX_OFFSET_MASK () {(31<< 12);}' unless defined(&R300_PFS_CNTL_TEX_OFFSET_MASK);
    eval 'sub R300_PFS_CNTL_TEX_END_SHIFT () {18;}' unless defined(&R300_PFS_CNTL_TEX_END_SHIFT);
    eval 'sub R300_PFS_CNTL_TEX_END_MASK () {(31<< 18);}' unless defined(&R300_PFS_CNTL_TEX_END_MASK);
    eval 'sub R300_PFS_NODE_0 () {0x4610;}' unless defined(&R300_PFS_NODE_0);
    eval 'sub R300_PFS_NODE_1 () {0x4614;}' unless defined(&R300_PFS_NODE_1);
    eval 'sub R300_PFS_NODE_2 () {0x4618;}' unless defined(&R300_PFS_NODE_2);
    eval 'sub R300_PFS_NODE_3 () {0x461c;}' unless defined(&R300_PFS_NODE_3);
    eval 'sub R300_PFS_NODE_ALU_OFFSET_SHIFT () {0;}' unless defined(&R300_PFS_NODE_ALU_OFFSET_SHIFT);
    eval 'sub R300_PFS_NODE_ALU_OFFSET_MASK () {(63<< 0);}' unless defined(&R300_PFS_NODE_ALU_OFFSET_MASK);
    eval 'sub R300_PFS_NODE_ALU_END_SHIFT () {6;}' unless defined(&R300_PFS_NODE_ALU_END_SHIFT);
    eval 'sub R300_PFS_NODE_ALU_END_MASK () {(63<< 6);}' unless defined(&R300_PFS_NODE_ALU_END_MASK);
    eval 'sub R300_PFS_NODE_TEX_OFFSET_SHIFT () {12;}' unless defined(&R300_PFS_NODE_TEX_OFFSET_SHIFT);
    eval 'sub R300_PFS_NODE_TEX_OFFSET_MASK () {(31<< 12);}' unless defined(&R300_PFS_NODE_TEX_OFFSET_MASK);
    eval 'sub R300_PFS_NODE_TEX_END_SHIFT () {17;}' unless defined(&R300_PFS_NODE_TEX_END_SHIFT);
    eval 'sub R300_PFS_NODE_TEX_END_MASK () {(31<< 17);}' unless defined(&R300_PFS_NODE_TEX_END_MASK);
    eval 'sub R300_PFS_NODE_OUTPUT_COLOR () {(1<< 22);}' unless defined(&R300_PFS_NODE_OUTPUT_COLOR);
    eval 'sub R300_PFS_NODE_OUTPUT_DEPTH () {(1<< 23);}' unless defined(&R300_PFS_NODE_OUTPUT_DEPTH);
    eval 'sub R300_PFS_TEXI_0 () {0x4620;}' unless defined(&R300_PFS_TEXI_0);
    eval 'sub R300_FPITX_SRC_SHIFT () {0;}' unless defined(&R300_FPITX_SRC_SHIFT);
    eval 'sub R300_FPITX_SRC_MASK () {(31<< 0);}' unless defined(&R300_FPITX_SRC_MASK);
    eval 'sub R300_FPITX_SRC_CONST () {(1<< 5);}' unless defined(&R300_FPITX_SRC_CONST);
    eval 'sub R300_FPITX_DST_SHIFT () {6;}' unless defined(&R300_FPITX_DST_SHIFT);
    eval 'sub R300_FPITX_DST_MASK () {(31<< 6);}' unless defined(&R300_FPITX_DST_MASK);
    eval 'sub R300_FPITX_IMAGE_SHIFT () {11;}' unless defined(&R300_FPITX_IMAGE_SHIFT);
    eval 'sub R300_FPITX_IMAGE_MASK () {(15<< 11);}' unless defined(&R300_FPITX_IMAGE_MASK);
    eval 'sub R300_FPITX_OPCODE_SHIFT () {15;}' unless defined(&R300_FPITX_OPCODE_SHIFT);
    eval 'sub R300_FPITX_OP_TEX () {1;}' unless defined(&R300_FPITX_OP_TEX);
    eval 'sub R300_FPITX_OP_KIL () {2;}' unless defined(&R300_FPITX_OP_KIL);
    eval 'sub R300_FPITX_OP_TXP () {3;}' unless defined(&R300_FPITX_OP_TXP);
    eval 'sub R300_FPITX_OP_TXB () {4;}' unless defined(&R300_FPITX_OP_TXB);
    eval 'sub R300_FPITX_OPCODE_MASK () {(7<< 15);}' unless defined(&R300_FPITX_OPCODE_MASK);
    eval 'sub R300_PFS_INSTR1_0 () {0x46c0;}' unless defined(&R300_PFS_INSTR1_0);
    eval 'sub R300_FPI1_SRC0C_SHIFT () {0;}' unless defined(&R300_FPI1_SRC0C_SHIFT);
    eval 'sub R300_FPI1_SRC0C_MASK () {(31<< 0);}' unless defined(&R300_FPI1_SRC0C_MASK);
    eval 'sub R300_FPI1_SRC0C_CONST () {(1<< 5);}' unless defined(&R300_FPI1_SRC0C_CONST);
    eval 'sub R300_FPI1_SRC1C_SHIFT () {6;}' unless defined(&R300_FPI1_SRC1C_SHIFT);
    eval 'sub R300_FPI1_SRC1C_MASK () {(31<< 6);}' unless defined(&R300_FPI1_SRC1C_MASK);
    eval 'sub R300_FPI1_SRC1C_CONST () {(1<< 11);}' unless defined(&R300_FPI1_SRC1C_CONST);
    eval 'sub R300_FPI1_SRC2C_SHIFT () {12;}' unless defined(&R300_FPI1_SRC2C_SHIFT);
    eval 'sub R300_FPI1_SRC2C_MASK () {(31<< 12);}' unless defined(&R300_FPI1_SRC2C_MASK);
    eval 'sub R300_FPI1_SRC2C_CONST () {(1<< 17);}' unless defined(&R300_FPI1_SRC2C_CONST);
    eval 'sub R300_FPI1_SRC_MASK () {0x3ffff;}' unless defined(&R300_FPI1_SRC_MASK);
    eval 'sub R300_FPI1_DSTC_SHIFT () {18;}' unless defined(&R300_FPI1_DSTC_SHIFT);
    eval 'sub R300_FPI1_DSTC_MASK () {(31<< 18);}' unless defined(&R300_FPI1_DSTC_MASK);
    eval 'sub R300_FPI1_DSTC_REG_MASK_SHIFT () {23;}' unless defined(&R300_FPI1_DSTC_REG_MASK_SHIFT);
    eval 'sub R300_FPI1_DSTC_REG_X () {(1<< 23);}' unless defined(&R300_FPI1_DSTC_REG_X);
    eval 'sub R300_FPI1_DSTC_REG_Y () {(1<< 24);}' unless defined(&R300_FPI1_DSTC_REG_Y);
    eval 'sub R300_FPI1_DSTC_REG_Z () {(1<< 25);}' unless defined(&R300_FPI1_DSTC_REG_Z);
    eval 'sub R300_FPI1_DSTC_OUTPUT_MASK_SHIFT () {26;}' unless defined(&R300_FPI1_DSTC_OUTPUT_MASK_SHIFT);
    eval 'sub R300_FPI1_DSTC_OUTPUT_X () {(1<< 26);}' unless defined(&R300_FPI1_DSTC_OUTPUT_X);
    eval 'sub R300_FPI1_DSTC_OUTPUT_Y () {(1<< 27);}' unless defined(&R300_FPI1_DSTC_OUTPUT_Y);
    eval 'sub R300_FPI1_DSTC_OUTPUT_Z () {(1<< 28);}' unless defined(&R300_FPI1_DSTC_OUTPUT_Z);
    eval 'sub R300_PFS_INSTR3_0 () {0x47c0;}' unless defined(&R300_PFS_INSTR3_0);
    eval 'sub R300_FPI3_SRC0A_SHIFT () {0;}' unless defined(&R300_FPI3_SRC0A_SHIFT);
    eval 'sub R300_FPI3_SRC0A_MASK () {(31<< 0);}' unless defined(&R300_FPI3_SRC0A_MASK);
    eval 'sub R300_FPI3_SRC0A_CONST () {(1<< 5);}' unless defined(&R300_FPI3_SRC0A_CONST);
    eval 'sub R300_FPI3_SRC1A_SHIFT () {6;}' unless defined(&R300_FPI3_SRC1A_SHIFT);
    eval 'sub R300_FPI3_SRC1A_MASK () {(31<< 6);}' unless defined(&R300_FPI3_SRC1A_MASK);
    eval 'sub R300_FPI3_SRC1A_CONST () {(1<< 11);}' unless defined(&R300_FPI3_SRC1A_CONST);
    eval 'sub R300_FPI3_SRC2A_SHIFT () {12;}' unless defined(&R300_FPI3_SRC2A_SHIFT);
    eval 'sub R300_FPI3_SRC2A_MASK () {(31<< 12);}' unless defined(&R300_FPI3_SRC2A_MASK);
    eval 'sub R300_FPI3_SRC2A_CONST () {(1<< 17);}' unless defined(&R300_FPI3_SRC2A_CONST);
    eval 'sub R300_FPI3_SRC_MASK () {0x3ffff;}' unless defined(&R300_FPI3_SRC_MASK);
    eval 'sub R300_FPI3_DSTA_SHIFT () {18;}' unless defined(&R300_FPI3_DSTA_SHIFT);
    eval 'sub R300_FPI3_DSTA_MASK () {(31<< 18);}' unless defined(&R300_FPI3_DSTA_MASK);
    eval 'sub R300_FPI3_DSTA_REG () {(1<< 23);}' unless defined(&R300_FPI3_DSTA_REG);
    eval 'sub R300_FPI3_DSTA_OUTPUT () {(1<< 24);}' unless defined(&R300_FPI3_DSTA_OUTPUT);
    eval 'sub R300_FPI3_DSTA_DEPTH () {(1<< 27);}' unless defined(&R300_FPI3_DSTA_DEPTH);
    eval 'sub R300_PFS_INSTR0_0 () {0x48c0;}' unless defined(&R300_PFS_INSTR0_0);
    eval 'sub R300_FPI0_ARGC_SRC0C_XYZ () {0;}' unless defined(&R300_FPI0_ARGC_SRC0C_XYZ);
    eval 'sub R300_FPI0_ARGC_SRC0C_XXX () {1;}' unless defined(&R300_FPI0_ARGC_SRC0C_XXX);
    eval 'sub R300_FPI0_ARGC_SRC0C_YYY () {2;}' unless defined(&R300_FPI0_ARGC_SRC0C_YYY);
    eval 'sub R300_FPI0_ARGC_SRC0C_ZZZ () {3;}' unless defined(&R300_FPI0_ARGC_SRC0C_ZZZ);
    eval 'sub R300_FPI0_ARGC_SRC1C_XYZ () {4;}' unless defined(&R300_FPI0_ARGC_SRC1C_XYZ);
    eval 'sub R300_FPI0_ARGC_SRC1C_XXX () {5;}' unless defined(&R300_FPI0_ARGC_SRC1C_XXX);
    eval 'sub R300_FPI0_ARGC_SRC1C_YYY () {6;}' unless defined(&R300_FPI0_ARGC_SRC1C_YYY);
    eval 'sub R300_FPI0_ARGC_SRC1C_ZZZ () {7;}' unless defined(&R300_FPI0_ARGC_SRC1C_ZZZ);
    eval 'sub R300_FPI0_ARGC_SRC2C_XYZ () {8;}' unless defined(&R300_FPI0_ARGC_SRC2C_XYZ);
    eval 'sub R300_FPI0_ARGC_SRC2C_XXX () {9;}' unless defined(&R300_FPI0_ARGC_SRC2C_XXX);
    eval 'sub R300_FPI0_ARGC_SRC2C_YYY () {10;}' unless defined(&R300_FPI0_ARGC_SRC2C_YYY);
    eval 'sub R300_FPI0_ARGC_SRC2C_ZZZ () {11;}' unless defined(&R300_FPI0_ARGC_SRC2C_ZZZ);
    eval 'sub R300_FPI0_ARGC_SRC0A () {12;}' unless defined(&R300_FPI0_ARGC_SRC0A);
    eval 'sub R300_FPI0_ARGC_SRC1A () {13;}' unless defined(&R300_FPI0_ARGC_SRC1A);
    eval 'sub R300_FPI0_ARGC_SRC2A () {14;}' unless defined(&R300_FPI0_ARGC_SRC2A);
    eval 'sub R300_FPI0_ARGC_SRC1C_LRP () {15;}' unless defined(&R300_FPI0_ARGC_SRC1C_LRP);
    eval 'sub R300_FPI0_ARGC_ZERO () {20;}' unless defined(&R300_FPI0_ARGC_ZERO);
    eval 'sub R300_FPI0_ARGC_ONE () {21;}' unless defined(&R300_FPI0_ARGC_ONE);
    eval 'sub R300_FPI0_ARGC_HALF () {22;}' unless defined(&R300_FPI0_ARGC_HALF);
    eval 'sub R300_FPI0_ARGC_SRC0C_YZX () {23;}' unless defined(&R300_FPI0_ARGC_SRC0C_YZX);
    eval 'sub R300_FPI0_ARGC_SRC1C_YZX () {24;}' unless defined(&R300_FPI0_ARGC_SRC1C_YZX);
    eval 'sub R300_FPI0_ARGC_SRC2C_YZX () {25;}' unless defined(&R300_FPI0_ARGC_SRC2C_YZX);
    eval 'sub R300_FPI0_ARGC_SRC0C_ZXY () {26;}' unless defined(&R300_FPI0_ARGC_SRC0C_ZXY);
    eval 'sub R300_FPI0_ARGC_SRC1C_ZXY () {27;}' unless defined(&R300_FPI0_ARGC_SRC1C_ZXY);
    eval 'sub R300_FPI0_ARGC_SRC2C_ZXY () {28;}' unless defined(&R300_FPI0_ARGC_SRC2C_ZXY);
    eval 'sub R300_FPI0_ARGC_SRC0CA_WZY () {29;}' unless defined(&R300_FPI0_ARGC_SRC0CA_WZY);
    eval 'sub R300_FPI0_ARGC_SRC1CA_WZY () {30;}' unless defined(&R300_FPI0_ARGC_SRC1CA_WZY);
    eval 'sub R300_FPI0_ARGC_SRC2CA_WZY () {31;}' unless defined(&R300_FPI0_ARGC_SRC2CA_WZY);
    eval 'sub R300_FPI0_ARG0C_SHIFT () {0;}' unless defined(&R300_FPI0_ARG0C_SHIFT);
    eval 'sub R300_FPI0_ARG0C_MASK () {(31<< 0);}' unless defined(&R300_FPI0_ARG0C_MASK);
    eval 'sub R300_FPI0_ARG0C_NEG () {(1<< 5);}' unless defined(&R300_FPI0_ARG0C_NEG);
    eval 'sub R300_FPI0_ARG0C_ABS () {(1<< 6);}' unless defined(&R300_FPI0_ARG0C_ABS);
    eval 'sub R300_FPI0_ARG1C_SHIFT () {7;}' unless defined(&R300_FPI0_ARG1C_SHIFT);
    eval 'sub R300_FPI0_ARG1C_MASK () {(31<< 7);}' unless defined(&R300_FPI0_ARG1C_MASK);
    eval 'sub R300_FPI0_ARG1C_NEG () {(1<< 12);}' unless defined(&R300_FPI0_ARG1C_NEG);
    eval 'sub R300_FPI0_ARG1C_ABS () {(1<< 13);}' unless defined(&R300_FPI0_ARG1C_ABS);
    eval 'sub R300_FPI0_ARG2C_SHIFT () {14;}' unless defined(&R300_FPI0_ARG2C_SHIFT);
    eval 'sub R300_FPI0_ARG2C_MASK () {(31<< 14);}' unless defined(&R300_FPI0_ARG2C_MASK);
    eval 'sub R300_FPI0_ARG2C_NEG () {(1<< 19);}' unless defined(&R300_FPI0_ARG2C_NEG);
    eval 'sub R300_FPI0_ARG2C_ABS () {(1<< 20);}' unless defined(&R300_FPI0_ARG2C_ABS);
    eval 'sub R300_FPI0_SPECIAL_LRP () {(1<< 21);}' unless defined(&R300_FPI0_SPECIAL_LRP);
    eval 'sub R300_FPI0_OUTC_MAD () {(0<< 23);}' unless defined(&R300_FPI0_OUTC_MAD);
    eval 'sub R300_FPI0_OUTC_DP3 () {(1<< 23);}' unless defined(&R300_FPI0_OUTC_DP3);
    eval 'sub R300_FPI0_OUTC_DP4 () {(2<< 23);}' unless defined(&R300_FPI0_OUTC_DP4);
    eval 'sub R300_FPI0_OUTC_MIN () {(4<< 23);}' unless defined(&R300_FPI0_OUTC_MIN);
    eval 'sub R300_FPI0_OUTC_MAX () {(5<< 23);}' unless defined(&R300_FPI0_OUTC_MAX);
    eval 'sub R300_FPI0_OUTC_CMPH () {(7<< 23);}' unless defined(&R300_FPI0_OUTC_CMPH);
    eval 'sub R300_FPI0_OUTC_CMP () {(8<< 23);}' unless defined(&R300_FPI0_OUTC_CMP);
    eval 'sub R300_FPI0_OUTC_FRC () {(9<< 23);}' unless defined(&R300_FPI0_OUTC_FRC);
    eval 'sub R300_FPI0_OUTC_REPL_ALPHA () {(10<< 23);}' unless defined(&R300_FPI0_OUTC_REPL_ALPHA);
    eval 'sub R300_FPI0_OUTC_SAT () {(1<< 30);}' unless defined(&R300_FPI0_OUTC_SAT);
    eval 'sub R300_FPI0_INSERT_NOP () {(1<< 31);}' unless defined(&R300_FPI0_INSERT_NOP);
    eval 'sub R300_PFS_INSTR2_0 () {0x49c0;}' unless defined(&R300_PFS_INSTR2_0);
    eval 'sub R300_FPI2_ARGA_SRC0C_X () {0;}' unless defined(&R300_FPI2_ARGA_SRC0C_X);
    eval 'sub R300_FPI2_ARGA_SRC0C_Y () {1;}' unless defined(&R300_FPI2_ARGA_SRC0C_Y);
    eval 'sub R300_FPI2_ARGA_SRC0C_Z () {2;}' unless defined(&R300_FPI2_ARGA_SRC0C_Z);
    eval 'sub R300_FPI2_ARGA_SRC1C_X () {3;}' unless defined(&R300_FPI2_ARGA_SRC1C_X);
    eval 'sub R300_FPI2_ARGA_SRC1C_Y () {4;}' unless defined(&R300_FPI2_ARGA_SRC1C_Y);
    eval 'sub R300_FPI2_ARGA_SRC1C_Z () {5;}' unless defined(&R300_FPI2_ARGA_SRC1C_Z);
    eval 'sub R300_FPI2_ARGA_SRC2C_X () {6;}' unless defined(&R300_FPI2_ARGA_SRC2C_X);
    eval 'sub R300_FPI2_ARGA_SRC2C_Y () {7;}' unless defined(&R300_FPI2_ARGA_SRC2C_Y);
    eval 'sub R300_FPI2_ARGA_SRC2C_Z () {8;}' unless defined(&R300_FPI2_ARGA_SRC2C_Z);
    eval 'sub R300_FPI2_ARGA_SRC0A () {9;}' unless defined(&R300_FPI2_ARGA_SRC0A);
    eval 'sub R300_FPI2_ARGA_SRC1A () {10;}' unless defined(&R300_FPI2_ARGA_SRC1A);
    eval 'sub R300_FPI2_ARGA_SRC2A () {11;}' unless defined(&R300_FPI2_ARGA_SRC2A);
    eval 'sub R300_FPI2_ARGA_SRC1A_LRP () {15;}' unless defined(&R300_FPI2_ARGA_SRC1A_LRP);
    eval 'sub R300_FPI2_ARGA_ZERO () {16;}' unless defined(&R300_FPI2_ARGA_ZERO);
    eval 'sub R300_FPI2_ARGA_ONE () {17;}' unless defined(&R300_FPI2_ARGA_ONE);
    eval 'sub R300_FPI2_ARGA_HALF () {18;}' unless defined(&R300_FPI2_ARGA_HALF);
    eval 'sub R300_FPI2_ARG0A_SHIFT () {0;}' unless defined(&R300_FPI2_ARG0A_SHIFT);
    eval 'sub R300_FPI2_ARG0A_MASK () {(31<< 0);}' unless defined(&R300_FPI2_ARG0A_MASK);
    eval 'sub R300_FPI2_ARG0A_NEG () {(1<< 5);}' unless defined(&R300_FPI2_ARG0A_NEG);
    eval 'sub R300_FPI2_ARG0A_ABS () {(1<< 6);}' unless defined(&R300_FPI2_ARG0A_ABS);
    eval 'sub R300_FPI2_ARG1A_SHIFT () {7;}' unless defined(&R300_FPI2_ARG1A_SHIFT);
    eval 'sub R300_FPI2_ARG1A_MASK () {(31<< 7);}' unless defined(&R300_FPI2_ARG1A_MASK);
    eval 'sub R300_FPI2_ARG1A_NEG () {(1<< 12);}' unless defined(&R300_FPI2_ARG1A_NEG);
    eval 'sub R300_FPI2_ARG1A_ABS () {(1<< 13);}' unless defined(&R300_FPI2_ARG1A_ABS);
    eval 'sub R300_FPI2_ARG2A_SHIFT () {14;}' unless defined(&R300_FPI2_ARG2A_SHIFT);
    eval 'sub R300_FPI2_ARG2A_MASK () {(31<< 14);}' unless defined(&R300_FPI2_ARG2A_MASK);
    eval 'sub R300_FPI2_ARG2A_NEG () {(1<< 19);}' unless defined(&R300_FPI2_ARG2A_NEG);
    eval 'sub R300_FPI2_ARG2A_ABS () {(1<< 20);}' unless defined(&R300_FPI2_ARG2A_ABS);
    eval 'sub R300_FPI2_SPECIAL_LRP () {(1<< 21);}' unless defined(&R300_FPI2_SPECIAL_LRP);
    eval 'sub R300_FPI2_OUTA_MAD () {(0<< 23);}' unless defined(&R300_FPI2_OUTA_MAD);
    eval 'sub R300_FPI2_OUTA_DP4 () {(1<< 23);}' unless defined(&R300_FPI2_OUTA_DP4);
    eval 'sub R300_FPI2_OUTA_MIN () {(2<< 23);}' unless defined(&R300_FPI2_OUTA_MIN);
    eval 'sub R300_FPI2_OUTA_MAX () {(3<< 23);}' unless defined(&R300_FPI2_OUTA_MAX);
    eval 'sub R300_FPI2_OUTA_CMP () {(6<< 23);}' unless defined(&R300_FPI2_OUTA_CMP);
    eval 'sub R300_FPI2_OUTA_FRC () {(7<< 23);}' unless defined(&R300_FPI2_OUTA_FRC);
    eval 'sub R300_FPI2_OUTA_EX2 () {(8<< 23);}' unless defined(&R300_FPI2_OUTA_EX2);
    eval 'sub R300_FPI2_OUTA_LG2 () {(9<< 23);}' unless defined(&R300_FPI2_OUTA_LG2);
    eval 'sub R300_FPI2_OUTA_RCP () {(10<< 23);}' unless defined(&R300_FPI2_OUTA_RCP);
    eval 'sub R300_FPI2_OUTA_RSQ () {(11<< 23);}' unless defined(&R300_FPI2_OUTA_RSQ);
    eval 'sub R300_FPI2_OUTA_SAT () {(1<< 30);}' unless defined(&R300_FPI2_OUTA_SAT);
    eval 'sub R300_FPI2_UNKNOWN_31 () {(1<< 31);}' unless defined(&R300_FPI2_UNKNOWN_31);
    eval 'sub R300_RE_FOG_STATE () {0x4bc0;}' unless defined(&R300_RE_FOG_STATE);
    eval 'sub R300_FOG_ENABLE () {(1<< 0);}' unless defined(&R300_FOG_ENABLE);
    eval 'sub R300_FOG_MODE_LINEAR () {(0<< 1);}' unless defined(&R300_FOG_MODE_LINEAR);
    eval 'sub R300_FOG_MODE_EXP () {(1<< 1);}' unless defined(&R300_FOG_MODE_EXP);
    eval 'sub R300_FOG_MODE_EXP2 () {(2<< 1);}' unless defined(&R300_FOG_MODE_EXP2);
    eval 'sub R300_FOG_MODE_MASK () {(3<< 1);}' unless defined(&R300_FOG_MODE_MASK);
    eval 'sub R300_FOG_COLOR_R () {0x4bc8;}' unless defined(&R300_FOG_COLOR_R);
    eval 'sub R300_FOG_COLOR_G () {0x4bcc;}' unless defined(&R300_FOG_COLOR_G);
    eval 'sub R300_FOG_COLOR_B () {0x4bd0;}' unless defined(&R300_FOG_COLOR_B);
    eval 'sub R300_PP_ALPHA_TEST () {0x4bd4;}' unless defined(&R300_PP_ALPHA_TEST);
    eval 'sub R300_REF_ALPHA_MASK () {0xff;}' unless defined(&R300_REF_ALPHA_MASK);
    eval 'sub R300_ALPHA_TEST_FAIL () {(0<< 8);}' unless defined(&R300_ALPHA_TEST_FAIL);
    eval 'sub R300_ALPHA_TEST_LESS () {(1<< 8);}' unless defined(&R300_ALPHA_TEST_LESS);
    eval 'sub R300_ALPHA_TEST_LEQUAL () {(3<< 8);}' unless defined(&R300_ALPHA_TEST_LEQUAL);
    eval 'sub R300_ALPHA_TEST_EQUAL () {(2<< 8);}' unless defined(&R300_ALPHA_TEST_EQUAL);
    eval 'sub R300_ALPHA_TEST_GEQUAL () {(6<< 8);}' unless defined(&R300_ALPHA_TEST_GEQUAL);
    eval 'sub R300_ALPHA_TEST_GREATER () {(4<< 8);}' unless defined(&R300_ALPHA_TEST_GREATER);
    eval 'sub R300_ALPHA_TEST_NEQUAL () {(5<< 8);}' unless defined(&R300_ALPHA_TEST_NEQUAL);
    eval 'sub R300_ALPHA_TEST_PASS () {(7<< 8);}' unless defined(&R300_ALPHA_TEST_PASS);
    eval 'sub R300_ALPHA_TEST_OP_MASK () {(7<< 8);}' unless defined(&R300_ALPHA_TEST_OP_MASK);
    eval 'sub R300_ALPHA_TEST_ENABLE () {(1<< 11);}' unless defined(&R300_ALPHA_TEST_ENABLE);
    eval 'sub R300_PFS_PARAM_0_X () {0x4c00;}' unless defined(&R300_PFS_PARAM_0_X);
    eval 'sub R300_PFS_PARAM_0_Y () {0x4c04;}' unless defined(&R300_PFS_PARAM_0_Y);
    eval 'sub R300_PFS_PARAM_0_Z () {0x4c08;}' unless defined(&R300_PFS_PARAM_0_Z);
    eval 'sub R300_PFS_PARAM_0_W () {0x4c0c;}' unless defined(&R300_PFS_PARAM_0_W);
    eval 'sub R300_PFS_PARAM_31_X () {0x4df0;}' unless defined(&R300_PFS_PARAM_31_X);
    eval 'sub R300_PFS_PARAM_31_Y () {0x4df4;}' unless defined(&R300_PFS_PARAM_31_Y);
    eval 'sub R300_PFS_PARAM_31_Z () {0x4df8;}' unless defined(&R300_PFS_PARAM_31_Z);
    eval 'sub R300_PFS_PARAM_31_W () {0x4dfc;}' unless defined(&R300_PFS_PARAM_31_W);
    eval 'sub R300_RB3D_CBLEND () {0x4e04;}' unless defined(&R300_RB3D_CBLEND);
    eval 'sub R300_RB3D_ABLEND () {0x4e08;}' unless defined(&R300_RB3D_ABLEND);
    eval 'sub R300_BLEND_ENABLE () {(1<< 0);}' unless defined(&R300_BLEND_ENABLE);
    eval 'sub R300_BLEND_UNKNOWN () {(3<< 1);}' unless defined(&R300_BLEND_UNKNOWN);
    eval 'sub R300_BLEND_NO_SEPARATE () {(1<< 3);}' unless defined(&R300_BLEND_NO_SEPARATE);
    eval 'sub R300_FCN_MASK () {(3<< 12);}' unless defined(&R300_FCN_MASK);
    eval 'sub R300_COMB_FCN_ADD_CLAMP () {(0<< 12);}' unless defined(&R300_COMB_FCN_ADD_CLAMP);
    eval 'sub R300_COMB_FCN_ADD_NOCLAMP () {(1<< 12);}' unless defined(&R300_COMB_FCN_ADD_NOCLAMP);
    eval 'sub R300_COMB_FCN_SUB_CLAMP () {(2<< 12);}' unless defined(&R300_COMB_FCN_SUB_CLAMP);
    eval 'sub R300_COMB_FCN_SUB_NOCLAMP () {(3<< 12);}' unless defined(&R300_COMB_FCN_SUB_NOCLAMP);
    eval 'sub R300_COMB_FCN_MIN () {(4<< 12);}' unless defined(&R300_COMB_FCN_MIN);
    eval 'sub R300_COMB_FCN_MAX () {(5<< 12);}' unless defined(&R300_COMB_FCN_MAX);
    eval 'sub R300_COMB_FCN_RSUB_CLAMP () {(6<< 12);}' unless defined(&R300_COMB_FCN_RSUB_CLAMP);
    eval 'sub R300_COMB_FCN_RSUB_NOCLAMP () {(7<< 12);}' unless defined(&R300_COMB_FCN_RSUB_NOCLAMP);
    eval 'sub R300_BLEND_GL_ZERO () {(32);}' unless defined(&R300_BLEND_GL_ZERO);
    eval 'sub R300_BLEND_GL_ONE () {(33);}' unless defined(&R300_BLEND_GL_ONE);
    eval 'sub R300_BLEND_GL_SRC_COLOR () {(34);}' unless defined(&R300_BLEND_GL_SRC_COLOR);
    eval 'sub R300_BLEND_GL_ONE_MINUS_SRC_COLOR () {(35);}' unless defined(&R300_BLEND_GL_ONE_MINUS_SRC_COLOR);
    eval 'sub R300_BLEND_GL_DST_COLOR () {(36);}' unless defined(&R300_BLEND_GL_DST_COLOR);
    eval 'sub R300_BLEND_GL_ONE_MINUS_DST_COLOR () {(37);}' unless defined(&R300_BLEND_GL_ONE_MINUS_DST_COLOR);
    eval 'sub R300_BLEND_GL_SRC_ALPHA () {(38);}' unless defined(&R300_BLEND_GL_SRC_ALPHA);
    eval 'sub R300_BLEND_GL_ONE_MINUS_SRC_ALPHA () {(39);}' unless defined(&R300_BLEND_GL_ONE_MINUS_SRC_ALPHA);
    eval 'sub R300_BLEND_GL_DST_ALPHA () {(40);}' unless defined(&R300_BLEND_GL_DST_ALPHA);
    eval 'sub R300_BLEND_GL_ONE_MINUS_DST_ALPHA () {(41);}' unless defined(&R300_BLEND_GL_ONE_MINUS_DST_ALPHA);
    eval 'sub R300_BLEND_GL_SRC_ALPHA_SATURATE () {(42);}' unless defined(&R300_BLEND_GL_SRC_ALPHA_SATURATE);
    eval 'sub R300_BLEND_GL_CONST_COLOR () {(43);}' unless defined(&R300_BLEND_GL_CONST_COLOR);
    eval 'sub R300_BLEND_GL_ONE_MINUS_CONST_COLOR () {(44);}' unless defined(&R300_BLEND_GL_ONE_MINUS_CONST_COLOR);
    eval 'sub R300_BLEND_GL_CONST_ALPHA () {(45);}' unless defined(&R300_BLEND_GL_CONST_ALPHA);
    eval 'sub R300_BLEND_GL_ONE_MINUS_CONST_ALPHA () {(46);}' unless defined(&R300_BLEND_GL_ONE_MINUS_CONST_ALPHA);
    eval 'sub R300_BLEND_MASK () {(63);}' unless defined(&R300_BLEND_MASK);
    eval 'sub R300_SRC_BLEND_SHIFT () {(16);}' unless defined(&R300_SRC_BLEND_SHIFT);
    eval 'sub R300_DST_BLEND_SHIFT () {(24);}' unless defined(&R300_DST_BLEND_SHIFT);
    eval 'sub R300_RB3D_BLEND_COLOR () {0x4e10;}' unless defined(&R300_RB3D_BLEND_COLOR);
    eval 'sub R300_RB3D_COLORMASK () {0x4e0c;}' unless defined(&R300_RB3D_COLORMASK);
    eval 'sub R300_COLORMASK0_B () {(1<<0);}' unless defined(&R300_COLORMASK0_B);
    eval 'sub R300_COLORMASK0_G () {(1<<1);}' unless defined(&R300_COLORMASK0_G);
    eval 'sub R300_COLORMASK0_R () {(1<<2);}' unless defined(&R300_COLORMASK0_R);
    eval 'sub R300_COLORMASK0_A () {(1<<3);}' unless defined(&R300_COLORMASK0_A);
    eval 'sub R300_RB3D_COLOROFFSET0 () {0x4e28;}' unless defined(&R300_RB3D_COLOROFFSET0);
    eval 'sub R300_COLOROFFSET_MASK () {0xfffffff0;}' unless defined(&R300_COLOROFFSET_MASK);
    eval 'sub R300_RB3D_COLOROFFSET1 () {0x4e2c;}' unless defined(&R300_RB3D_COLOROFFSET1);
    eval 'sub R300_RB3D_COLOROFFSET2 () {0x4e30;}' unless defined(&R300_RB3D_COLOROFFSET2);
    eval 'sub R300_RB3D_COLOROFFSET3 () {0x4e34;}' unless defined(&R300_RB3D_COLOROFFSET3);
    eval 'sub R300_RB3D_COLORPITCH0 () {0x4e38;}' unless defined(&R300_RB3D_COLORPITCH0);
    eval 'sub R300_COLORPITCH_MASK () {0x1ff8;}' unless defined(&R300_COLORPITCH_MASK);
    eval 'sub R300_COLOR_TILE_ENABLE () {(1<< 16);}' unless defined(&R300_COLOR_TILE_ENABLE);
    eval 'sub R300_COLOR_MICROTILE_ENABLE () {(1<< 17);}' unless defined(&R300_COLOR_MICROTILE_ENABLE);
    eval 'sub R300_COLOR_ENDIAN_NO_SWAP () {(0<< 18);}' unless defined(&R300_COLOR_ENDIAN_NO_SWAP);
    eval 'sub R300_COLOR_ENDIAN_WORD_SWAP () {(1<< 18);}' unless defined(&R300_COLOR_ENDIAN_WORD_SWAP);
    eval 'sub R300_COLOR_ENDIAN_DWORD_SWAP () {(2<< 18);}' unless defined(&R300_COLOR_ENDIAN_DWORD_SWAP);
    eval 'sub R300_COLOR_FORMAT_RGB565 () {(2<< 22);}' unless defined(&R300_COLOR_FORMAT_RGB565);
    eval 'sub R300_COLOR_FORMAT_ARGB8888 () {(3<< 22);}' unless defined(&R300_COLOR_FORMAT_ARGB8888);
    eval 'sub R300_RB3D_COLORPITCH1 () {0x4e3c;}' unless defined(&R300_RB3D_COLORPITCH1);
    eval 'sub R300_RB3D_COLORPITCH2 () {0x4e40;}' unless defined(&R300_RB3D_COLORPITCH2);
    eval 'sub R300_RB3D_COLORPITCH3 () {0x4e44;}' unless defined(&R300_RB3D_COLORPITCH3);
    eval 'sub R300_RB3D_AARESOLVE_CTL () {0x4e88;}' unless defined(&R300_RB3D_AARESOLVE_CTL);
    eval 'sub R300_RB3D_DSTCACHE_UNKNOWN_02 () {0x2;}' unless defined(&R300_RB3D_DSTCACHE_UNKNOWN_02);
    eval 'sub R300_RB3D_DSTCACHE_UNKNOWN_0A () {0xa;}' unless defined(&R300_RB3D_DSTCACHE_UNKNOWN_0A);
    eval 'sub R300_ZB_CNTL () {0x4f00;}' unless defined(&R300_ZB_CNTL);
    eval 'sub R300_STENCIL_ENABLE () {(1<< 0);}' unless defined(&R300_STENCIL_ENABLE);
    eval 'sub R300_Z_ENABLE () {(1<< 1);}' unless defined(&R300_Z_ENABLE);
    eval 'sub R300_Z_WRITE_ENABLE () {(1<< 2);}' unless defined(&R300_Z_WRITE_ENABLE);
    eval 'sub R300_Z_SIGNED_COMPARE () {(1<< 3);}' unless defined(&R300_Z_SIGNED_COMPARE);
    eval 'sub R300_STENCIL_FRONT_BACK () {(1<< 4);}' unless defined(&R300_STENCIL_FRONT_BACK);
    eval 'sub R300_ZB_ZSTENCILCNTL () {0x4f04;}' unless defined(&R300_ZB_ZSTENCILCNTL);
    eval 'sub R300_ZS_NEVER () {0;}' unless defined(&R300_ZS_NEVER);
    eval 'sub R300_ZS_LESS () {1;}' unless defined(&R300_ZS_LESS);
    eval 'sub R300_ZS_LEQUAL () {2;}' unless defined(&R300_ZS_LEQUAL);
    eval 'sub R300_ZS_EQUAL () {3;}' unless defined(&R300_ZS_EQUAL);
    eval 'sub R300_ZS_GEQUAL () {4;}' unless defined(&R300_ZS_GEQUAL);
    eval 'sub R300_ZS_GREATER () {5;}' unless defined(&R300_ZS_GREATER);
    eval 'sub R300_ZS_NOTEQUAL () {6;}' unless defined(&R300_ZS_NOTEQUAL);
    eval 'sub R300_ZS_ALWAYS () {7;}' unless defined(&R300_ZS_ALWAYS);
    eval 'sub R300_ZS_MASK () {7;}' unless defined(&R300_ZS_MASK);
    eval 'sub R300_ZS_KEEP () {0;}' unless defined(&R300_ZS_KEEP);
    eval 'sub R300_ZS_ZERO () {1;}' unless defined(&R300_ZS_ZERO);
    eval 'sub R300_ZS_REPLACE () {2;}' unless defined(&R300_ZS_REPLACE);
    eval 'sub R300_ZS_INCR () {3;}' unless defined(&R300_ZS_INCR);
    eval 'sub R300_ZS_DECR () {4;}' unless defined(&R300_ZS_DECR);
    eval 'sub R300_ZS_INVERT () {5;}' unless defined(&R300_ZS_INVERT);
    eval 'sub R300_ZS_INCR_WRAP () {6;}' unless defined(&R300_ZS_INCR_WRAP);
    eval 'sub R300_ZS_DECR_WRAP () {7;}' unless defined(&R300_ZS_DECR_WRAP);
    eval 'sub R300_Z_FUNC_SHIFT () {0;}' unless defined(&R300_Z_FUNC_SHIFT);
    eval 'sub R300_S_FRONT_FUNC_SHIFT () {3;}' unless defined(&R300_S_FRONT_FUNC_SHIFT);
    eval 'sub R300_S_FRONT_SFAIL_OP_SHIFT () {6;}' unless defined(&R300_S_FRONT_SFAIL_OP_SHIFT);
    eval 'sub R300_S_FRONT_ZPASS_OP_SHIFT () {9;}' unless defined(&R300_S_FRONT_ZPASS_OP_SHIFT);
    eval 'sub R300_S_FRONT_ZFAIL_OP_SHIFT () {12;}' unless defined(&R300_S_FRONT_ZFAIL_OP_SHIFT);
    eval 'sub R300_S_BACK_FUNC_SHIFT () {15;}' unless defined(&R300_S_BACK_FUNC_SHIFT);
    eval 'sub R300_S_BACK_SFAIL_OP_SHIFT () {18;}' unless defined(&R300_S_BACK_SFAIL_OP_SHIFT);
    eval 'sub R300_S_BACK_ZPASS_OP_SHIFT () {21;}' unless defined(&R300_S_BACK_ZPASS_OP_SHIFT);
    eval 'sub R300_S_BACK_ZFAIL_OP_SHIFT () {24;}' unless defined(&R300_S_BACK_ZFAIL_OP_SHIFT);
    eval 'sub R300_ZB_STENCILREFMASK () {0x4f08;}' unless defined(&R300_ZB_STENCILREFMASK);
    eval 'sub R300_STENCILREF_SHIFT () {0;}' unless defined(&R300_STENCILREF_SHIFT);
    eval 'sub R300_STENCILREF_MASK () {0xff;}' unless defined(&R300_STENCILREF_MASK);
    eval 'sub R300_STENCILMASK_SHIFT () {8;}' unless defined(&R300_STENCILMASK_SHIFT);
    eval 'sub R300_STENCILMASK_MASK () {0xff00;}' unless defined(&R300_STENCILMASK_MASK);
    eval 'sub R300_STENCILWRITEMASK_SHIFT () {16;}' unless defined(&R300_STENCILWRITEMASK_SHIFT);
    eval 'sub R300_STENCILWRITEMASK_MASK () {0xff0000;}' unless defined(&R300_STENCILWRITEMASK_MASK);
    eval 'sub R300_ZB_FORMAT () {0x4f10;}' unless defined(&R300_ZB_FORMAT);
    eval 'sub R300_DEPTHFORMAT_16BIT_INT_Z () {(0<< 0);}' unless defined(&R300_DEPTHFORMAT_16BIT_INT_Z);
    eval 'sub R300_DEPTHFORMAT_16BIT_13E3 () {(1<< 0);}' unless defined(&R300_DEPTHFORMAT_16BIT_13E3);
    eval 'sub R300_DEPTHFORMAT_24BIT_INT_Z_8BIT_STENCIL () {(2<< 0);}' unless defined(&R300_DEPTHFORMAT_24BIT_INT_Z_8BIT_STENCIL);
    eval 'sub R300_INVERT_13E3_LEADING_ONES () {(0<< 4);}' unless defined(&R300_INVERT_13E3_LEADING_ONES);
    eval 'sub R300_INVERT_13E3_LEADING_ZEROS () {(1<< 4);}' unless defined(&R300_INVERT_13E3_LEADING_ZEROS);
    eval 'sub R300_ZB_ZTOP () {0x4f14;}' unless defined(&R300_ZB_ZTOP);
    eval 'sub R300_ZTOP_DISABLE () {(0<< 0);}' unless defined(&R300_ZTOP_DISABLE);
    eval 'sub R300_ZTOP_ENABLE () {(1<< 0);}' unless defined(&R300_ZTOP_ENABLE);
    eval 'sub R300_ZB_ZCACHE_CTLSTAT () {0x4f18;}' unless defined(&R300_ZB_ZCACHE_CTLSTAT);
    eval 'sub R300_ZB_ZCACHE_CTLSTAT_ZC_FLUSH_NO_EFFECT () {(0<< 0);}' unless defined(&R300_ZB_ZCACHE_CTLSTAT_ZC_FLUSH_NO_EFFECT);
    eval 'sub R300_ZB_ZCACHE_CTLSTAT_ZC_FLUSH_FLUSH_AND_FREE () {(1<< 0);}' unless defined(&R300_ZB_ZCACHE_CTLSTAT_ZC_FLUSH_FLUSH_AND_FREE);
    eval 'sub R300_ZB_ZCACHE_CTLSTAT_ZC_FREE_NO_EFFECT () {(0<< 1);}' unless defined(&R300_ZB_ZCACHE_CTLSTAT_ZC_FREE_NO_EFFECT);
    eval 'sub R300_ZB_ZCACHE_CTLSTAT_ZC_FREE_FREE () {(1<< 1);}' unless defined(&R300_ZB_ZCACHE_CTLSTAT_ZC_FREE_FREE);
    eval 'sub R300_ZB_ZCACHE_CTLSTAT_ZC_BUSY_IDLE () {(0<< 31);}' unless defined(&R300_ZB_ZCACHE_CTLSTAT_ZC_BUSY_IDLE);
    eval 'sub R300_ZB_ZCACHE_CTLSTAT_ZC_BUSY_BUSY () {(1<< 31);}' unless defined(&R300_ZB_ZCACHE_CTLSTAT_ZC_BUSY_BUSY);
    eval 'sub R300_ZB_BW_CNTL () {0x4f1c;}' unless defined(&R300_ZB_BW_CNTL);
    eval 'sub R300_HIZ_DISABLE () {(0<< 0);}' unless defined(&R300_HIZ_DISABLE);
    eval 'sub R300_HIZ_ENABLE () {(1<< 0);}' unless defined(&R300_HIZ_ENABLE);
    eval 'sub R300_HIZ_MIN () {(0<< 1);}' unless defined(&R300_HIZ_MIN);
    eval 'sub R300_HIZ_MAX () {(1<< 1);}' unless defined(&R300_HIZ_MAX);
    eval 'sub R300_FAST_FILL_DISABLE () {(0<< 2);}' unless defined(&R300_FAST_FILL_DISABLE);
    eval 'sub R300_FAST_FILL_ENABLE () {(1<< 2);}' unless defined(&R300_FAST_FILL_ENABLE);
    eval 'sub R300_RD_COMP_DISABLE () {(0<< 3);}' unless defined(&R300_RD_COMP_DISABLE);
    eval 'sub R300_RD_COMP_ENABLE () {(1<< 3);}' unless defined(&R300_RD_COMP_ENABLE);
    eval 'sub R300_WR_COMP_DISABLE () {(0<< 4);}' unless defined(&R300_WR_COMP_DISABLE);
    eval 'sub R300_WR_COMP_ENABLE () {(1<< 4);}' unless defined(&R300_WR_COMP_ENABLE);
    eval 'sub R300_ZB_CB_CLEAR_RMW () {(0<< 5);}' unless defined(&R300_ZB_CB_CLEAR_RMW);
    eval 'sub R300_ZB_CB_CLEAR_CACHE_LINEAR () {(1<< 5);}' unless defined(&R300_ZB_CB_CLEAR_CACHE_LINEAR);
    eval 'sub R300_FORCE_COMPRESSED_STENCIL_VALUE_DISABLE () {(0<< 6);}' unless defined(&R300_FORCE_COMPRESSED_STENCIL_VALUE_DISABLE);
    eval 'sub R300_FORCE_COMPRESSED_STENCIL_VALUE_ENABLE () {(1<< 6);}' unless defined(&R300_FORCE_COMPRESSED_STENCIL_VALUE_ENABLE);
    eval 'sub R500_ZEQUAL_OPTIMIZE_ENABLE () {(0<< 7);}' unless defined(&R500_ZEQUAL_OPTIMIZE_ENABLE);
    eval 'sub R500_ZEQUAL_OPTIMIZE_DISABLE () {(1<< 7);}' unless defined(&R500_ZEQUAL_OPTIMIZE_DISABLE);
    eval 'sub R500_SEQUAL_OPTIMIZE_ENABLE () {(0<< 8);}' unless defined(&R500_SEQUAL_OPTIMIZE_ENABLE);
    eval 'sub R500_SEQUAL_OPTIMIZE_DISABLE () {(1<< 8);}' unless defined(&R500_SEQUAL_OPTIMIZE_DISABLE);
    eval 'sub R500_BMASK_ENABLE () {(0<< 10);}' unless defined(&R500_BMASK_ENABLE);
    eval 'sub R500_BMASK_DISABLE () {(1<< 10);}' unless defined(&R500_BMASK_DISABLE);
    eval 'sub R500_HIZ_EQUAL_REJECT_DISABLE () {(0<< 11);}' unless defined(&R500_HIZ_EQUAL_REJECT_DISABLE);
    eval 'sub R500_HIZ_EQUAL_REJECT_ENABLE () {(1<< 11);}' unless defined(&R500_HIZ_EQUAL_REJECT_ENABLE);
    eval 'sub R500_HIZ_FP_EXP_BITS_DISABLE () {(0<< 12);}' unless defined(&R500_HIZ_FP_EXP_BITS_DISABLE);
    eval 'sub R500_HIZ_FP_EXP_BITS_1 () {(1<< 12);}' unless defined(&R500_HIZ_FP_EXP_BITS_1);
    eval 'sub R500_HIZ_FP_EXP_BITS_2 () {(2<< 12);}' unless defined(&R500_HIZ_FP_EXP_BITS_2);
    eval 'sub R500_HIZ_FP_EXP_BITS_3 () {(3<< 12);}' unless defined(&R500_HIZ_FP_EXP_BITS_3);
    eval 'sub R500_HIZ_FP_EXP_BITS_4 () {(4<< 12);}' unless defined(&R500_HIZ_FP_EXP_BITS_4);
    eval 'sub R500_HIZ_FP_EXP_BITS_5 () {(5<< 12);}' unless defined(&R500_HIZ_FP_EXP_BITS_5);
    eval 'sub R500_HIZ_FP_INVERT_LEADING_ONES () {(0<< 15);}' unless defined(&R500_HIZ_FP_INVERT_LEADING_ONES);
    eval 'sub R500_HIZ_FP_INVERT_LEADING_ZEROS () {(1<< 15);}' unless defined(&R500_HIZ_FP_INVERT_LEADING_ZEROS);
    eval 'sub R500_TILE_OVERWRITE_RECOMPRESSION_ENABLE () {(0<< 16);}' unless defined(&R500_TILE_OVERWRITE_RECOMPRESSION_ENABLE);
    eval 'sub R500_TILE_OVERWRITE_RECOMPRESSION_DISABLE () {(1<< 16);}' unless defined(&R500_TILE_OVERWRITE_RECOMPRESSION_DISABLE);
    eval 'sub R500_CONTIGUOUS_6XAA_SAMPLES_ENABLE () {(0<< 17);}' unless defined(&R500_CONTIGUOUS_6XAA_SAMPLES_ENABLE);
    eval 'sub R500_CONTIGUOUS_6XAA_SAMPLES_DISABLE () {(1<< 17);}' unless defined(&R500_CONTIGUOUS_6XAA_SAMPLES_DISABLE);
    eval 'sub R500_PEQ_PACKING_DISABLE () {(0<< 18);}' unless defined(&R500_PEQ_PACKING_DISABLE);
    eval 'sub R500_PEQ_PACKING_ENABLE () {(1<< 18);}' unless defined(&R500_PEQ_PACKING_ENABLE);
    eval 'sub R500_COVERED_PTR_MASKING_DISABLE () {(0<< 18);}' unless defined(&R500_COVERED_PTR_MASKING_DISABLE);
    eval 'sub R500_COVERED_PTR_MASKING_ENABLE () {(1<< 18);}' unless defined(&R500_COVERED_PTR_MASKING_ENABLE);
    eval 'sub R300_ZB_DEPTHOFFSET () {0x4f20;}' unless defined(&R300_ZB_DEPTHOFFSET);
    eval 'sub R300_ZB_DEPTHPITCH () {0x4f24;}' unless defined(&R300_ZB_DEPTHPITCH);
    eval 'sub R300_DEPTHPITCH_MASK () {0x3ffc;}' unless defined(&R300_DEPTHPITCH_MASK);
    eval 'sub R300_DEPTHMACROTILE_DISABLE () {(0<< 16);}' unless defined(&R300_DEPTHMACROTILE_DISABLE);
    eval 'sub R300_DEPTHMACROTILE_ENABLE () {(1<< 16);}' unless defined(&R300_DEPTHMACROTILE_ENABLE);
    eval 'sub R300_DEPTHMICROTILE_LINEAR () {(0<< 17);}' unless defined(&R300_DEPTHMICROTILE_LINEAR);
    eval 'sub R300_DEPTHMICROTILE_TILED () {(1<< 17);}' unless defined(&R300_DEPTHMICROTILE_TILED);
    eval 'sub R300_DEPTHMICROTILE_TILED_SQUARE () {(2<< 17);}' unless defined(&R300_DEPTHMICROTILE_TILED_SQUARE);
    eval 'sub R300_DEPTHENDIAN_NO_SWAP () {(0<< 18);}' unless defined(&R300_DEPTHENDIAN_NO_SWAP);
    eval 'sub R300_DEPTHENDIAN_WORD_SWAP () {(1<< 18);}' unless defined(&R300_DEPTHENDIAN_WORD_SWAP);
    eval 'sub R300_DEPTHENDIAN_DWORD_SWAP () {(2<< 18);}' unless defined(&R300_DEPTHENDIAN_DWORD_SWAP);
    eval 'sub R300_DEPTHENDIAN_HALF_DWORD_SWAP () {(3<< 18);}' unless defined(&R300_DEPTHENDIAN_HALF_DWORD_SWAP);
    eval 'sub R300_ZB_DEPTHCLEARVALUE () {0x4f28;}' unless defined(&R300_ZB_DEPTHCLEARVALUE);
    eval 'sub R300_ZB_ZMASK_OFFSET () {0x4f30;}' unless defined(&R300_ZB_ZMASK_OFFSET);
    eval 'sub R300_ZB_ZMASK_PITCH () {0x4f34;}' unless defined(&R300_ZB_ZMASK_PITCH);
    eval 'sub R300_ZB_ZMASK_WRINDEX () {0x4f38;}' unless defined(&R300_ZB_ZMASK_WRINDEX);
    eval 'sub R300_ZB_ZMASK_DWORD () {0x4f3c;}' unless defined(&R300_ZB_ZMASK_DWORD);
    eval 'sub R300_ZB_ZMASK_RDINDEX () {0x4f40;}' unless defined(&R300_ZB_ZMASK_RDINDEX);
    eval 'sub R300_ZB_HIZ_OFFSET () {0x4f44;}' unless defined(&R300_ZB_HIZ_OFFSET);
    eval 'sub R300_ZB_HIZ_WRINDEX () {0x4f48;}' unless defined(&R300_ZB_HIZ_WRINDEX);
    eval 'sub R300_ZB_HIZ_DWORD () {0x4f4c;}' unless defined(&R300_ZB_HIZ_DWORD);
    eval 'sub R300_ZB_HIZ_RDINDEX () {0x4f50;}' unless defined(&R300_ZB_HIZ_RDINDEX);
    eval 'sub R300_ZB_HIZ_PITCH () {0x4f54;}' unless defined(&R300_ZB_HIZ_PITCH);
    eval 'sub R300_ZB_ZPASS_DATA () {0x4f58;}' unless defined(&R300_ZB_ZPASS_DATA);
    eval 'sub R300_ZB_ZPASS_ADDR () {0x4f5c;}' unless defined(&R300_ZB_ZPASS_ADDR);
    eval 'sub R300_ZB_DEPTHXY_OFFSET () {0x4f60;}' unless defined(&R300_ZB_DEPTHXY_OFFSET);
    eval 'sub R300_DEPTHX_OFFSET_SHIFT () {1;}' unless defined(&R300_DEPTHX_OFFSET_SHIFT);
    eval 'sub R300_DEPTHX_OFFSET_MASK () {0x7fe;}' unless defined(&R300_DEPTHX_OFFSET_MASK);
    eval 'sub R300_DEPTHY_OFFSET_SHIFT () {17;}' unless defined(&R300_DEPTHY_OFFSET_SHIFT);
    eval 'sub R300_DEPTHY_OFFSET_MASK () {0x7fe0000;}' unless defined(&R300_DEPTHY_OFFSET_MASK);
    eval 'sub R500_ZB_FIFO_SIZE () {0x4fd0;}' unless defined(&R500_ZB_FIFO_SIZE);
    eval 'sub R500_OP_FIFO_SIZE_FULL () {(0<< 0);}' unless defined(&R500_OP_FIFO_SIZE_FULL);
    eval 'sub R500_OP_FIFO_SIZE_HALF () {(1<< 0);}' unless defined(&R500_OP_FIFO_SIZE_HALF);
    eval 'sub R500_OP_FIFO_SIZE_QUATER () {(2<< 0);}' unless defined(&R500_OP_FIFO_SIZE_QUATER);
    eval 'sub R500_OP_FIFO_SIZE_EIGTHS () {(4<< 0);}' unless defined(&R500_OP_FIFO_SIZE_EIGTHS);
    eval 'sub R500_ZB_STENCILREFMASK_BF () {0x4fd4;}' unless defined(&R500_ZB_STENCILREFMASK_BF);
    eval 'sub R500_STENCILREF_SHIFT () {0;}' unless defined(&R500_STENCILREF_SHIFT);
    eval 'sub R500_STENCILREF_MASK () {0xff;}' unless defined(&R500_STENCILREF_MASK);
    eval 'sub R500_STENCILMASK_SHIFT () {8;}' unless defined(&R500_STENCILMASK_SHIFT);
    eval 'sub R500_STENCILMASK_MASK () {0xff00;}' unless defined(&R500_STENCILMASK_MASK);
    eval 'sub R500_STENCILWRITEMASK_SHIFT () {16;}' unless defined(&R500_STENCILWRITEMASK_SHIFT);
    eval 'sub R500_STENCILWRITEMASK_MASK () {0xff0000;}' unless defined(&R500_STENCILWRITEMASK_MASK);
    eval 'sub R300_VPI_OUT_OP_DOT () {(1<< 0);}' unless defined(&R300_VPI_OUT_OP_DOT);
    eval 'sub R300_VPI_OUT_OP_MUL () {(2<< 0);}' unless defined(&R300_VPI_OUT_OP_MUL);
    eval 'sub R300_VPI_OUT_OP_ADD () {(3<< 0);}' unless defined(&R300_VPI_OUT_OP_ADD);
    eval 'sub R300_VPI_OUT_OP_MAD () {(4<< 0);}' unless defined(&R300_VPI_OUT_OP_MAD);
    eval 'sub R300_VPI_OUT_OP_DST () {(5<< 0);}' unless defined(&R300_VPI_OUT_OP_DST);
    eval 'sub R300_VPI_OUT_OP_FRC () {(6<< 0);}' unless defined(&R300_VPI_OUT_OP_FRC);
    eval 'sub R300_VPI_OUT_OP_MAX () {(7<< 0);}' unless defined(&R300_VPI_OUT_OP_MAX);
    eval 'sub R300_VPI_OUT_OP_MIN () {(8<< 0);}' unless defined(&R300_VPI_OUT_OP_MIN);
    eval 'sub R300_VPI_OUT_OP_SGE () {(9<< 0);}' unless defined(&R300_VPI_OUT_OP_SGE);
    eval 'sub R300_VPI_OUT_OP_SLT () {(10<< 0);}' unless defined(&R300_VPI_OUT_OP_SLT);
    eval 'sub R300_VPI_OUT_OP_UNK12 () {(12<< 0);}' unless defined(&R300_VPI_OUT_OP_UNK12);
    eval 'sub R300_VPI_OUT_OP_ARL () {(13<< 0);}' unless defined(&R300_VPI_OUT_OP_ARL);
    eval 'sub R300_VPI_OUT_OP_EXP () {(65<< 0);}' unless defined(&R300_VPI_OUT_OP_EXP);
    eval 'sub R300_VPI_OUT_OP_LOG () {(66<< 0);}' unless defined(&R300_VPI_OUT_OP_LOG);
    eval 'sub R300_VPI_OUT_OP_UNK67 () {(67<< 0);}' unless defined(&R300_VPI_OUT_OP_UNK67);
    eval 'sub R300_VPI_OUT_OP_LIT () {(68<< 0);}' unless defined(&R300_VPI_OUT_OP_LIT);
    eval 'sub R300_VPI_OUT_OP_POW () {(69<< 0);}' unless defined(&R300_VPI_OUT_OP_POW);
    eval 'sub R300_VPI_OUT_OP_RCP () {(70<< 0);}' unless defined(&R300_VPI_OUT_OP_RCP);
    eval 'sub R300_VPI_OUT_OP_RSQ () {(72<< 0);}' unless defined(&R300_VPI_OUT_OP_RSQ);
    eval 'sub R300_VPI_OUT_OP_UNK73 () {(73<< 0);}' unless defined(&R300_VPI_OUT_OP_UNK73);
    eval 'sub R300_VPI_OUT_OP_EX2 () {(75<< 0);}' unless defined(&R300_VPI_OUT_OP_EX2);
    eval 'sub R300_VPI_OUT_OP_LG2 () {(76<< 0);}' unless defined(&R300_VPI_OUT_OP_LG2);
    eval 'sub R300_VPI_OUT_OP_MAD_2 () {(128<< 0);}' unless defined(&R300_VPI_OUT_OP_MAD_2);
    eval 'sub R300_VPI_OUT_OP_UNK129 () {(129<< 0);}' unless defined(&R300_VPI_OUT_OP_UNK129);
    eval 'sub R300_VPI_OUT_REG_CLASS_TEMPORARY () {(0<< 8);}' unless defined(&R300_VPI_OUT_REG_CLASS_TEMPORARY);
    eval 'sub R300_VPI_OUT_REG_CLASS_ADDR () {(1<< 8);}' unless defined(&R300_VPI_OUT_REG_CLASS_ADDR);
    eval 'sub R300_VPI_OUT_REG_CLASS_RESULT () {(2<< 8);}' unless defined(&R300_VPI_OUT_REG_CLASS_RESULT);
    eval 'sub R300_VPI_OUT_REG_CLASS_MASK () {(31<< 8);}' unless defined(&R300_VPI_OUT_REG_CLASS_MASK);
    eval 'sub R300_VPI_OUT_REG_INDEX_SHIFT () {13;}' unless defined(&R300_VPI_OUT_REG_INDEX_SHIFT);
    eval 'sub R300_VPI_OUT_REG_INDEX_MASK () {(31<< 13);}' unless defined(&R300_VPI_OUT_REG_INDEX_MASK);
    eval 'sub R300_VPI_OUT_WRITE_X () {(1<< 20);}' unless defined(&R300_VPI_OUT_WRITE_X);
    eval 'sub R300_VPI_OUT_WRITE_Y () {(1<< 21);}' unless defined(&R300_VPI_OUT_WRITE_Y);
    eval 'sub R300_VPI_OUT_WRITE_Z () {(1<< 22);}' unless defined(&R300_VPI_OUT_WRITE_Z);
    eval 'sub R300_VPI_OUT_WRITE_W () {(1<< 23);}' unless defined(&R300_VPI_OUT_WRITE_W);
    eval 'sub R300_VPI_IN_REG_CLASS_TEMPORARY () {(0<< 0);}' unless defined(&R300_VPI_IN_REG_CLASS_TEMPORARY);
    eval 'sub R300_VPI_IN_REG_CLASS_ATTRIBUTE () {(1<< 0);}' unless defined(&R300_VPI_IN_REG_CLASS_ATTRIBUTE);
    eval 'sub R300_VPI_IN_REG_CLASS_PARAMETER () {(2<< 0);}' unless defined(&R300_VPI_IN_REG_CLASS_PARAMETER);
    eval 'sub R300_VPI_IN_REG_CLASS_NONE () {(9<< 0);}' unless defined(&R300_VPI_IN_REG_CLASS_NONE);
    eval 'sub R300_VPI_IN_REG_CLASS_MASK () {(31<< 0);}' unless defined(&R300_VPI_IN_REG_CLASS_MASK);
    eval 'sub R300_VPI_IN_REG_INDEX_SHIFT () {5;}' unless defined(&R300_VPI_IN_REG_INDEX_SHIFT);
    eval 'sub R300_VPI_IN_REG_INDEX_MASK () {(255<< 5);}' unless defined(&R300_VPI_IN_REG_INDEX_MASK);
    eval 'sub R300_VPI_IN_SELECT_X () {0;}' unless defined(&R300_VPI_IN_SELECT_X);
    eval 'sub R300_VPI_IN_SELECT_Y () {1;}' unless defined(&R300_VPI_IN_SELECT_Y);
    eval 'sub R300_VPI_IN_SELECT_Z () {2;}' unless defined(&R300_VPI_IN_SELECT_Z);
    eval 'sub R300_VPI_IN_SELECT_W () {3;}' unless defined(&R300_VPI_IN_SELECT_W);
    eval 'sub R300_VPI_IN_SELECT_ZERO () {4;}' unless defined(&R300_VPI_IN_SELECT_ZERO);
    eval 'sub R300_VPI_IN_SELECT_ONE () {5;}' unless defined(&R300_VPI_IN_SELECT_ONE);
    eval 'sub R300_VPI_IN_SELECT_MASK () {7;}' unless defined(&R300_VPI_IN_SELECT_MASK);
    eval 'sub R300_VPI_IN_X_SHIFT () {13;}' unless defined(&R300_VPI_IN_X_SHIFT);
    eval 'sub R300_VPI_IN_Y_SHIFT () {16;}' unless defined(&R300_VPI_IN_Y_SHIFT);
    eval 'sub R300_VPI_IN_Z_SHIFT () {19;}' unless defined(&R300_VPI_IN_Z_SHIFT);
    eval 'sub R300_VPI_IN_W_SHIFT () {22;}' unless defined(&R300_VPI_IN_W_SHIFT);
    eval 'sub R300_VPI_IN_NEG_X () {(1<< 25);}' unless defined(&R300_VPI_IN_NEG_X);
    eval 'sub R300_VPI_IN_NEG_Y () {(1<< 26);}' unless defined(&R300_VPI_IN_NEG_Y);
    eval 'sub R300_VPI_IN_NEG_Z () {(1<< 27);}' unless defined(&R300_VPI_IN_NEG_Z);
    eval 'sub R300_VPI_IN_NEG_W () {(1<< 28);}' unless defined(&R300_VPI_IN_NEG_W);
    eval 'sub R300_PRIM_TYPE_NONE () {(0<< 0);}' unless defined(&R300_PRIM_TYPE_NONE);
    eval 'sub R300_PRIM_TYPE_POINT () {(1<< 0);}' unless defined(&R300_PRIM_TYPE_POINT);
    eval 'sub R300_PRIM_TYPE_LINE () {(2<< 0);}' unless defined(&R300_PRIM_TYPE_LINE);
    eval 'sub R300_PRIM_TYPE_LINE_STRIP () {(3<< 0);}' unless defined(&R300_PRIM_TYPE_LINE_STRIP);
    eval 'sub R300_PRIM_TYPE_TRI_LIST () {(4<< 0);}' unless defined(&R300_PRIM_TYPE_TRI_LIST);
    eval 'sub R300_PRIM_TYPE_TRI_FAN () {(5<< 0);}' unless defined(&R300_PRIM_TYPE_TRI_FAN);
    eval 'sub R300_PRIM_TYPE_TRI_STRIP () {(6<< 0);}' unless defined(&R300_PRIM_TYPE_TRI_STRIP);
    eval 'sub R300_PRIM_TYPE_TRI_TYPE2 () {(7<< 0);}' unless defined(&R300_PRIM_TYPE_TRI_TYPE2);
    eval 'sub R300_PRIM_TYPE_RECT_LIST () {(8<< 0);}' unless defined(&R300_PRIM_TYPE_RECT_LIST);
    eval 'sub R300_PRIM_TYPE_3VRT_POINT_LIST () {(9<< 0);}' unless defined(&R300_PRIM_TYPE_3VRT_POINT_LIST);
    eval 'sub R300_PRIM_TYPE_3VRT_LINE_LIST () {(10<< 0);}' unless defined(&R300_PRIM_TYPE_3VRT_LINE_LIST);
    eval 'sub R300_PRIM_TYPE_POINT_SPRITES () {(11<< 0);}' unless defined(&R300_PRIM_TYPE_POINT_SPRITES);
    eval 'sub R300_PRIM_TYPE_LINE_LOOP () {(12<< 0);}' unless defined(&R300_PRIM_TYPE_LINE_LOOP);
    eval 'sub R300_PRIM_TYPE_QUADS () {(13<< 0);}' unless defined(&R300_PRIM_TYPE_QUADS);
    eval 'sub R300_PRIM_TYPE_QUAD_STRIP () {(14<< 0);}' unless defined(&R300_PRIM_TYPE_QUAD_STRIP);
    eval 'sub R300_PRIM_TYPE_POLYGON () {(15<< 0);}' unless defined(&R300_PRIM_TYPE_POLYGON);
    eval 'sub R300_PRIM_TYPE_MASK () {0xf;}' unless defined(&R300_PRIM_TYPE_MASK);
    eval 'sub R300_PRIM_WALK_IND () {(1<< 4);}' unless defined(&R300_PRIM_WALK_IND);
    eval 'sub R300_PRIM_WALK_LIST () {(2<< 4);}' unless defined(&R300_PRIM_WALK_LIST);
    eval 'sub R300_PRIM_WALK_RING () {(3<< 4);}' unless defined(&R300_PRIM_WALK_RING);
    eval 'sub R300_PRIM_WALK_MASK () {(3<< 4);}' unless defined(&R300_PRIM_WALK_MASK);
    eval 'sub R300_PRIM_COLOR_ORDER_BGRA () {(0<< 6);}' unless defined(&R300_PRIM_COLOR_ORDER_BGRA);
    eval 'sub R300_PRIM_COLOR_ORDER_RGBA () {(1<< 6);}' unless defined(&R300_PRIM_COLOR_ORDER_RGBA);
    eval 'sub R300_PRIM_NUM_VERTICES_SHIFT () {16;}' unless defined(&R300_PRIM_NUM_VERTICES_SHIFT);
    eval 'sub R300_PRIM_NUM_VERTICES_MASK () {0xffff;}' unless defined(&R300_PRIM_NUM_VERTICES_MASK);
    eval 'sub R300_PACKET3_3D_DRAW_VBUF () {0x2800;}' unless defined(&R300_PACKET3_3D_DRAW_VBUF);
    eval 'sub R300_PACKET3_3D_LOAD_VBPNTR () {0x2f00;}' unless defined(&R300_PACKET3_3D_LOAD_VBPNTR);
    eval 'sub R300_PACKET3_INDX_BUFFER () {0x3300;}' unless defined(&R300_PACKET3_INDX_BUFFER);
    eval 'sub R300_EB_UNK1_SHIFT () {24;}' unless defined(&R300_EB_UNK1_SHIFT);
    eval 'sub R300_EB_UNK1 () {(0x80<<24);}' unless defined(&R300_EB_UNK1);
    eval 'sub R300_EB_UNK2 () {0x810;}' unless defined(&R300_EB_UNK2);
    eval 'sub R300_PACKET3_3D_DRAW_VBUF_2 () {0x3400;}' unless defined(&R300_PACKET3_3D_DRAW_VBUF_2);
    eval 'sub R300_PACKET3_3D_DRAW_INDX_2 () {0x3600;}' unless defined(&R300_PACKET3_3D_DRAW_INDX_2);
    eval 'sub R300_CP_COLOR_FORMAT_CI8 () {2;}' unless defined(&R300_CP_COLOR_FORMAT_CI8);
    eval 'sub R300_CP_COLOR_FORMAT_ARGB1555 () {3;}' unless defined(&R300_CP_COLOR_FORMAT_ARGB1555);
    eval 'sub R300_CP_COLOR_FORMAT_RGB565 () {4;}' unless defined(&R300_CP_COLOR_FORMAT_RGB565);
    eval 'sub R300_CP_COLOR_FORMAT_ARGB8888 () {6;}' unless defined(&R300_CP_COLOR_FORMAT_ARGB8888);
    eval 'sub R300_CP_COLOR_FORMAT_RGB332 () {7;}' unless defined(&R300_CP_COLOR_FORMAT_RGB332);
    eval 'sub R300_CP_COLOR_FORMAT_RGB8 () {9;}' unless defined(&R300_CP_COLOR_FORMAT_RGB8);
    eval 'sub R300_CP_COLOR_FORMAT_ARGB4444 () {15;}' unless defined(&R300_CP_COLOR_FORMAT_ARGB4444);
    eval 'sub R300_CP_CMD_BITBLT_MULTI () {0xc0009b00;}' unless defined(&R300_CP_CMD_BITBLT_MULTI);
    eval 'sub R500_VAP_INDEX_OFFSET () {0x208c;}' unless defined(&R500_VAP_INDEX_OFFSET);
    eval 'sub R500_GA_US_VECTOR_INDEX () {0x4250;}' unless defined(&R500_GA_US_VECTOR_INDEX);
    eval 'sub R500_GA_US_VECTOR_DATA () {0x4254;}' unless defined(&R500_GA_US_VECTOR_DATA);
    eval 'sub R500_RS_IP_0 () {0x4074;}' unless defined(&R500_RS_IP_0);
    eval 'sub R500_RS_INST_0 () {0x4320;}' unless defined(&R500_RS_INST_0);
    eval 'sub R500_US_CONFIG () {0x4600;}' unless defined(&R500_US_CONFIG);
    eval 'sub R500_US_FC_CTRL () {0x4624;}' unless defined(&R500_US_FC_CTRL);
    eval 'sub R500_US_CODE_ADDR () {0x4630;}' unless defined(&R500_US_CODE_ADDR);
    eval 'sub R500_RB3D_COLOR_CLEAR_VALUE_AR () {0x46c0;}' unless defined(&R500_RB3D_COLOR_CLEAR_VALUE_AR);
    eval 'sub R500_RB3D_CONSTANT_COLOR_AR () {0x4ef8;}' unless defined(&R500_RB3D_CONSTANT_COLOR_AR);
}
1;
