1 /* 2 * Copyright 2010 Jerome Glisse <glisse@freedesktop.org> 3 * 4 * Permission is hereby granted, free of charge, to any person obtaining a 5 * copy of this software and associated documentation files (the "Software"), 6 * to deal in the Software without restriction, including without limitation 7 * on the rights to use, copy, modify, merge, publish, distribute, sub 8 * license, and/or sell copies of the Software, and to permit persons to whom 9 * the Software is furnished to do so, subject to the following conditions: 10 * 11 * The above copyright notice and this permission notice (including the next 12 * paragraph) shall be included in all copies or substantial portions of the 13 * Software. 14 * 15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 18 * THE AUTHOR(S) AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, 19 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 20 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 21 * USE OR OTHER DEALINGS IN THE SOFTWARE. 22 * 23 * Authors: 24 * Jerome Glisse 25 */ 26 #ifndef EVERGREEND_H 27 #define EVERGREEND_H 28 29 /* evergreen values */ 30 #define EVERGREEN_CONFIG_REG_OFFSET 0X00008000 31 #define EVERGREEN_CONFIG_REG_END 0X0000AC00 32 #define EVERGREEN_CONTEXT_REG_OFFSET 0X00028000 33 #define EVERGREEN_CONTEXT_REG_END 0X00029000 34 #define EVERGREEN_RESOURCE_OFFSET 0x00030000 35 #define EVERGREEN_RESOURCE_END 0x00038000 36 #define EVERGREEN_LOOP_CONST_OFFSET 0x0003A200 37 #define EVERGREEN_LOOP_CONST_END 0x0003A500 38 #define EVERGREEN_BOOL_CONST_OFFSET 0x0003A500 39 #define EVERGREEN_BOOL_CONST_END 0x0003A518 40 #define EVERGREEN_SAMPLER_OFFSET 0X0003C000 41 #define EVERGREEN_SAMPLER_END 0X0003C600 42 43 #define EVERGREEN_CTL_CONST_OFFSET 0x0003CFF0 44 #define EVERGREEN_CTL_CONST_END 0x0003FF0C 45 46 #define EVENT_TYPE_PS_PARTIAL_FLUSH 0x10 47 #define EVENT_TYPE_ZPASS_DONE 0x15 48 #define EVENT_TYPE_CACHE_FLUSH_AND_INV_EVENT 0x16 49 #define EVENT_TYPE_SO_VGTSTREAMOUT_FLUSH 0x1f 50 51 #define EVENT_TYPE(x) ((x) << 0) 52 #define EVENT_INDEX(x) ((x) << 8) 53 /* 0 - any non-TS event 54 * 1 - ZPASS_DONE 55 * 2 - SAMPLE_PIPELINESTAT 56 * 3 - SAMPLE_STREAMOUTSTAT* 57 * 4 - *S_PARTIAL_FLUSH 58 * 5 - TS events 59 */ 60 61 #define R600_TEXEL_PITCH_ALIGNMENT_MASK 0x7 62 63 #define PKT3_NOP 0x10 64 #define PKT3_DISPATCH_DIRECT 0x15 65 #define PKT3_DISPATCH_INDIRECT 0x16 66 #define PKT3_INDIRECT_BUFFER_END 0x17 67 #define PKT3_SET_PREDICATION 0x20 68 #define PKT3_REG_RMW 0x21 69 #define PKT3_COND_EXEC 0x22 70 #define PKT3_PRED_EXEC 0x23 71 #define PKT3_START_3D_CMDBUF 0x24 72 #define PKT3_DRAW_INDEX_2 0x27 73 #define PKT3_CONTEXT_CONTROL 0x28 74 #define PKT3_DRAW_INDEX_IMMD_BE 0x29 75 #define PKT3_INDEX_TYPE 0x2A 76 #define PKT3_DRAW_INDEX 0x2B 77 #define PKT3_DRAW_INDEX_AUTO 0x2D 78 #define PKT3_DRAW_INDEX_IMMD 0x2E 79 #define PKT3_NUM_INSTANCES 0x2F 80 #define PKT3_STRMOUT_BUFFER_UPDATE 0x34 81 #define PKT3_INDIRECT_BUFFER_MP 0x38 82 #define PKT3_MEM_SEMAPHORE 0x39 83 #define PKT3_MPEG_INDEX 0x3A 84 #define PKT3_WAIT_REG_MEM 0x3C 85 #define WAIT_REG_MEM_EQUAL 3 86 #define PKT3_MEM_WRITE 0x3D 87 #define PKT3_INDIRECT_BUFFER 0x32 88 #define PKT3_SURFACE_SYNC 0x43 89 #define PKT3_ME_INITIALIZE 0x44 90 #define PKT3_COND_WRITE 0x45 91 #define PKT3_EVENT_WRITE 0x46 92 #define PKT3_EVENT_WRITE_EOP 0x47 93 #define PKT3_ONE_REG_WRITE 0x57 94 #define PKT3_SET_CONFIG_REG 0x68 95 #define PKT3_SET_CONTEXT_REG 0x69 96 #define PKT3_SET_ALU_CONST 0x6A 97 #define PKT3_SET_BOOL_CONST 0x6B 98 #define PKT3_SET_LOOP_CONST 0x6C 99 #define PKT3_SET_RESOURCE 0x6D 100 #define PKT3_SET_SAMPLER 0x6E 101 #define PKT3_SET_CTL_CONST 0x6F 102 #define PKT3_SURFACE_BASE_UPDATE 0x73 103 104 #define PKT_TYPE_S(x) (((x) & 0x3) << 30) 105 #define PKT_TYPE_G(x) (((x) >> 30) & 0x3) 106 #define PKT_TYPE_C 0x3FFFFFFF 107 #define PKT_COUNT_S(x) (((x) & 0x3FFF) << 16) 108 #define PKT_COUNT_G(x) (((x) >> 16) & 0x3FFF) 109 #define PKT_COUNT_C 0xC000FFFF 110 #define PKT0_BASE_INDEX_S(x) (((x) & 0xFFFF) << 0) 111 #define PKT0_BASE_INDEX_G(x) (((x) >> 0) & 0xFFFF) 112 #define PKT0_BASE_INDEX_C 0xFFFF0000 113 #define PKT3_IT_OPCODE_S(x) (((x) & 0xFF) << 8) 114 #define PKT3_IT_OPCODE_G(x) (((x) >> 8) & 0xFF) 115 #define PKT3_IT_OPCODE_C 0xFFFF00FF 116 #define PKT3_PREDICATE(x) (((x) >> 0) & 0x1) 117 #define PKT0(index, count) (PKT_TYPE_S(0) | PKT0_BASE_INDEX_S(index) | PKT_COUNT_S(count)) 118 119 /* Registers */ 120 #define R_0084FC_CP_STRMOUT_CNTL 0x000084FC 121 #define S_0084FC_OFFSET_UPDATE_DONE(x) (((x) & 0x1) << 0) 122 #define R_008960_VGT_STRMOUT_BUFFER_FILLED_SIZE_0 0x008960 /* read-only */ 123 #define R_008964_VGT_STRMOUT_BUFFER_FILLED_SIZE_1 0x008964 /* read-only */ 124 #define R_008968_VGT_STRMOUT_BUFFER_FILLED_SIZE_2 0x008968 /* read-only */ 125 #define R_00896C_VGT_STRMOUT_BUFFER_FILLED_SIZE_3 0x00896C /* read-only */ 126 #define R_008C00_SQ_CONFIG 0x00008C00 127 #define S_008C00_VC_ENABLE(x) (((x) & 0x1) << 0) 128 #define G_008C00_VC_ENABLE(x) (((x) >> 0) & 0x1) 129 #define C_008C00_VC_ENABLE(x) 0xFFFFFFFE 130 #define S_008C00_EXPORT_SRC_C(x) (((x) & 0x1) << 1) 131 #define G_008C00_EXPORT_SRC_C(x) (((x) >> 1) & 0x1) 132 #define C_008C00_EXPORT_SRC_C(x) 0xFFFFFFFD 133 /* different */ 134 #define S_008C00_CS_PRIO(x) (((x) & 0x3) << 18) 135 #define G_008C00_CS_PRIO(x) (((x) >> 18) & 0x3) 136 #define C_008C00_CS_PRIO(x) 0xFFF3FFFF 137 #define S_008C00_LS_PRIO(x) (((x) & 0x3) << 20) 138 #define G_008C00_LS_PRIO(x) (((x) >> 20) & 0x3) 139 #define C_008C00_LS_PRIO(x) 0xFFCFFFFF 140 #define S_008C00_HS_PRIO(x) (((x) & 0x3) << 22) 141 #define G_008C00_HS_PRIO(x) (((x) >> 22) & 0x3) 142 #define C_008C00_HS_PRIO(x) 0xFF3FFFFF 143 #define S_008C00_PS_PRIO(x) (((x) & 0x3) << 24) 144 #define G_008C00_PS_PRIO(x) (((x) >> 24) & 0x3) 145 #define C_008C00_PS_PRIO(x) 0xFCFFFFFF 146 #define S_008C00_VS_PRIO(x) (((x) & 0x3) << 26) 147 #define G_008C00_VS_PRIO(x) (((x) >> 26) & 0x3) 148 #define C_008C00_VS_PRIO(x) 0xF3FFFFFF 149 #define S_008C00_GS_PRIO(x) (((x) & 0x3) << 28) 150 #define G_008C00_GS_PRIO(x) (((x) >> 28) & 0x3) 151 #define C_008C00_GS_PRIO(x) 0xCFFFFFFF 152 #define S_008C00_ES_PRIO(x) (((x) & 0x3) << 30) 153 #define G_008C00_ES_PRIO(x) (((x) >> 30) & 0x3) 154 #define C_008C00_ES_PRIO(x) 0x3FFFFFFF 155 #define R_008C04_SQ_GPR_RESOURCE_MGMT_1 0x00008C04 156 #define S_008C04_NUM_PS_GPRS(x) (((x) & 0xFF) << 0) 157 #define G_008C04_NUM_PS_GPRS(x) (((x) >> 0) & 0xFF) 158 #define C_008C04_NUM_PS_GPRS(x) 0xFFFFFF00 159 #define S_008C04_NUM_VS_GPRS(x) (((x) & 0xFF) << 16) 160 #define G_008C04_NUM_VS_GPRS(x) (((x) >> 16) & 0xFF) 161 #define C_008C04_NUM_VS_GPRS(x) 0xFF00FFFF 162 #define S_008C04_NUM_CLAUSE_TEMP_GPRS(x) (((x) & 0xF) << 28) 163 #define G_008C04_NUM_CLAUSE_TEMP_GPRS(x) (((x) >> 28) & 0xF) 164 #define C_008C04_NUM_CLAUSE_TEMP_GPRS(x) 0x0FFFFFFF 165 #define R_008C08_SQ_GPR_RESOURCE_MGMT_2 0x00008C08 166 #define S_008C08_NUM_GS_GPRS(x) (((x) & 0xFF) << 0) 167 #define G_008C08_NUM_GS_GPRS(x) (((x) >> 0) & 0xFF) 168 #define C_008C08_NUM_GS_GPRS(x) 0xFFFFFF00 169 #define S_008C08_NUM_ES_GPRS(x) (((x) & 0xFF) << 16) 170 #define G_008C08_NUM_ES_GPRS(x) (((x) >> 16) & 0xFF) 171 #define C_008C08_NUM_ES_GPRS(x) 0xFF00FFFF 172 #define R_008C0C_SQ_GPR_RESOURCE_MGMT_3 0x00008C0C 173 #define S_008C0C_NUM_HS_GPRS(x) (((x) & 0xFF) << 0) 174 #define G_008C0C_NUM_HS_GPRS(x) (((x) >> 0) & 0xFF) 175 #define C_008C0C_NUM_HS_GPRS(x) 0xFFFFFF00 176 #define S_008C0C_NUM_LS_GPRS(x) (((x) & 0xFF) << 16) 177 #define G_008C0C_NUM_LS_GPRS(x) (((x) >> 16) & 0xFF) 178 #define C_008C0C_NUM_LS_GPRS(x) 0xFF00FFFF 179 180 #define R_008C10_SQ_GLOBAL_GPR_RESOURCE_MGMT_1 0x00008C10 181 #define R_008C14_SQ_GLOBAL_GPR_RESOURCE_MGMT_2 0x00008C14 182 183 #define R_008C18_SQ_THREAD_RESOURCE_MGMT_1 0x00008C18 184 #define S_008C18_NUM_PS_THREADS(x) (((x) & 0xFF) << 0) 185 #define G_008C18_NUM_PS_THREADS(x) (((x) >> 0) & 0xFF) 186 #define C_008C18_NUM_PS_THREADS(x) 0xFFFFFF00 187 #define S_008C18_NUM_VS_THREADS(x) (((x) & 0xFF) << 8) 188 #define G_008C18_NUM_VS_THREADS(x) (((x) >> 8) & 0xFF) 189 #define C_008C18_NUM_VS_THREADS(x) 0xFFFF00FF 190 #define S_008C18_NUM_GS_THREADS(x) (((x) & 0xFF) << 16) 191 #define G_008C18_NUM_GS_THREADS(x) (((x) >> 16) & 0xFF) 192 #define C_008C18_NUM_GS_THREADS(x) 0xFF00FFFF 193 #define S_008C18_NUM_ES_THREADS(x) (((x) & 0xFF) << 24) 194 #define G_008C18_NUM_ES_THREADS(x) (((x) >> 24) & 0xFF) 195 #define C_008C18_NUM_ES_THREADS(x) 0x00FFFFFF 196 #define R_008C1C_SQ_THREAD_RESOURCE_MGMT_2 0x00008C1C 197 #define S_008C1C_NUM_HS_THREADS(x) (((x) & 0xFF) << 0) 198 #define G_008C1C_NUM_HS_THREADS(x) (((x) >> 0) & 0xFF) 199 #define C_008C1C_NUM_HS_THREADS(x) 0xFFFFFF00 200 #define S_008C1C_NUM_LS_THREADS(x) (((x) & 0xFF) << 8) 201 #define G_008C1C_NUM_LS_THREADS(x) (((x) >> 8) & 0xFF) 202 #define C_008C1C_NUM_LS_THREADS(x) 0xFFFF00FF 203 #define R_008C20_SQ_STACK_RESOURCE_MGMT_1 0x00008C20 204 #define S_008C20_NUM_PS_STACK_ENTRIES(x) (((x) & 0xFFF) << 0) 205 #define G_008C20_NUM_PS_STACK_ENTRIES(x) (((x) >> 0) & 0xFFF) 206 #define C_008C20_NUM_PS_STACK_ENTRIES(x) 0xFFFFF000 207 #define S_008C20_NUM_VS_STACK_ENTRIES(x) (((x) & 0xFFF) << 16) 208 #define G_008C20_NUM_VS_STACK_ENTRIES(x) (((x) >> 16) & 0xFFF) 209 #define C_008C20_NUM_VS_STACK_ENTRIES(x) 0xF000FFFF 210 #define R_008C24_SQ_STACK_RESOURCE_MGMT_2 0x00008C24 211 #define S_008C24_NUM_GS_STACK_ENTRIES(x) (((x) & 0xFFF) << 0) 212 #define G_008C24_NUM_GS_STACK_ENTRIES(x) (((x) >> 0) & 0xFFF) 213 #define C_008C24_NUM_GS_STACK_ENTRIES(x) 0xFFFFF000 214 #define S_008C24_NUM_ES_STACK_ENTRIES(x) (((x) & 0xFFF) << 16) 215 #define G_008C24_NUM_ES_STACK_ENTRIES(x) (((x) >> 16) & 0xFFF) 216 #define C_008C24_NUM_ES_STACK_ENTRIES(x) 0xF000FFFF 217 #define R_008C28_SQ_STACK_RESOURCE_MGMT_3 0x00008C28 218 #define S_008C28_NUM_HS_STACK_ENTRIES(x) (((x) & 0xFFF) << 0) 219 #define G_008C28_NUM_HS_STACK_ENTRIES(x) (((x) >> 0) & 0xFFF) 220 #define C_008C28_NUM_HS_STACK_ENTRIES(x) 0xFFFFF000 221 #define S_008C28_NUM_LS_STACK_ENTRIES(x) (((x) & 0xFFF) << 16) 222 #define G_008C28_NUM_LS_STACK_ENTRIES(x) (((x) >> 16) & 0xFFF) 223 #define C_008C28_NUM_LS_STACK_ENTRIES(x) 0xF000FFFF 224 #define R_008E2C_SQ_LDS_RESOURCE_MGMT 0x00008E2C 225 #define S_008E2C_NUM_PS_LDS(x) (((x) & 0xFFFF) << 0) 226 #define G_008E2C_NUM_PS_LDS(x) (((x) >> 0) & 0xFFFF) 227 #define C_008E2C_NUM_PS_LDS(x) 0x0000FFFF 228 #define S_008E2C_NUM_LS_LDS(x) (((x) & 0xFFFF) << 16) 229 #define G_008E2C_NUM_LS_LDS(x) (((x) >> 16) & 0xFFFF) 230 #define C_008E2C_NUM_LS_LDS(x) 0xFFFF0000 231 232 #define R_008CF0_SQ_MS_FIFO_SIZES 0x00008CF0 233 #define S_008CF0_CACHE_FIFO_SIZE(x) (((x) & 0xFF) << 0) 234 #define G_008CF0_CACHE_FIFO_SIZE(x) (((x) >> 0) & 0xFF) 235 #define C_008CF0_CACHE_FIFO_SIZE(x) 0xFFFFFF00 236 #define S_008CF0_FETCH_FIFO_HIWATER(x) (((x) & 0x1F) << 8) 237 #define G_008CF0_FETCH_FIFO_HIWATER(x) (((x) >> 8) & 0x1F) 238 #define C_008CF0_FETCH_FIFO_HIWATER(x) 0xFFFFE0FF 239 #define S_008CF0_DONE_FIFO_HIWATER(x) (((x) & 0xFF) << 16) 240 #define G_008CF0_DONE_FIFO_HIWATER(x) (((x) >> 16) & 0xFF) 241 #define C_008CF0_DONE_FIFO_HIWATER(x) 0xFF00FFFF 242 #define S_008CF0_ALU_UPDATE_FIFO_HIWATER(x) (((x) & 0x1F) << 24) 243 #define G_008CF0_ALU_UPDATE_FIFO_HIWATER(x) (((x) >> 24) & 0x1F) 244 #define C_008CF0_ALU_UPDATE_FIFO_HIWATER(x) 0xE0FFFFFF 245 246 #define R_008E20_SQ_STATIC_THREAD_MGMT1 0x8E20 247 #define R_008E24_SQ_STATIC_THREAD_MGMT2 0x8E24 248 #define R_008E28_SQ_STATIC_THREAD_MGMT3 0x8E28 249 250 #define R_00899C_VGT_COMPUTE_START_X 0x0000899C 251 #define R_0089A0_VGT_COMPUTE_START_Y 0x000089A0 252 #define R_0089A4_VGT_COMPUTE_START_Z 0x000089A4 253 #define R_0089AC_VGT_COMPUTE_THREAD_GROUP_SIZE 0x000089AC 254 255 #define R_009100_SPI_CONFIG_CNTL 0x00009100 256 #define R_00913C_SPI_CONFIG_CNTL_1 0x0000913C 257 #define S_00913C_VTX_DONE_DELAY(x) (((x) & 0xF) << 0) 258 #define G_00913C_VTX_DONE_DELAY(x) (((x) >> 0) & 0xF ) 259 #define C_00913C_VTX_DONE_DELAY(x) 0xFFFFFFF0 260 261 262 #define R_028C64_CB_COLOR0_PITCH 0x028C64 263 #define S_028C64_PITCH_TILE_MAX(x) (((x) & 0x7FF) << 0) 264 #define G_028C64_PITCH_TILE_MAX(x) (((x) >> 0) & 0x7FF) 265 #define C_028C64_PITCH_TILE_MAX 0xFFFFF800 266 #define R_028C68_CB_COLOR0_SLICE 0x028C68 267 #define S_028C68_SLICE_TILE_MAX(x) (((x) & 0x3FFFFF) << 0) 268 #define G_028C68_SLICE_TILE_MAX(x) (((x) >> 0) & 0x3FFFFF) 269 #define C_028C68_SLICE_TILE_MAX 0xFFC00000 270 #define R_028C70_CB_COLOR0_INFO 0x028C70 271 #define S_028C70_ENDIAN(x) (((x) & 0x3) << 0) 272 #define G_028C70_ENDIAN(x) (((x) >> 0) & 0x3) 273 #define C_028C70_ENDIAN 0xFFFFFFFC 274 #define S_028C70_FORMAT(x) (((x) & 0x3F) << 2) 275 #define G_028C70_FORMAT(x) (((x) >> 2) & 0x3F) 276 #define C_028C70_FORMAT 0xFFFFFF03 277 #define V_028C70_COLOR_INVALID 0x00000000 278 #define V_028C70_COLOR_8 0x00000001 279 #define V_028C70_COLOR_4_4 0x00000002 280 #define V_028C70_COLOR_3_3_2 0x00000003 281 #define V_028C70_COLOR_16 0x00000005 282 #define V_028C70_COLOR_16_FLOAT 0x00000006 283 #define V_028C70_COLOR_8_8 0x00000007 284 #define V_028C70_COLOR_5_6_5 0x00000008 285 #define V_028C70_COLOR_6_5_5 0x00000009 286 #define V_028C70_COLOR_1_5_5_5 0x0000000A 287 #define V_028C70_COLOR_4_4_4_4 0x0000000B 288 #define V_028C70_COLOR_5_5_5_1 0x0000000C 289 #define V_028C70_COLOR_32 0x0000000D 290 #define V_028C70_COLOR_32_FLOAT 0x0000000E 291 #define V_028C70_COLOR_16_16 0x0000000F 292 #define V_028C70_COLOR_16_16_FLOAT 0x00000010 293 #define V_028C70_COLOR_8_24 0x00000011 294 #define V_028C70_COLOR_8_24_FLOAT 0x00000012 295 #define V_028C70_COLOR_24_8 0x00000013 296 #define V_028C70_COLOR_24_8_FLOAT 0x00000014 297 #define V_028C70_COLOR_10_11_11 0x00000015 298 #define V_028C70_COLOR_10_11_11_FLOAT 0x00000016 299 #define V_028C70_COLOR_11_11_10 0x00000017 300 #define V_028C70_COLOR_11_11_10_FLOAT 0x00000018 301 #define V_028C70_COLOR_2_10_10_10 0x00000019 302 #define V_028C70_COLOR_8_8_8_8 0x0000001A 303 #define V_028C70_COLOR_10_10_10_2 0x0000001B 304 #define V_028C70_COLOR_X24_8_32_FLOAT 0x0000001C 305 #define V_028C70_COLOR_32_32 0x0000001D 306 #define V_028C70_COLOR_32_32_FLOAT 0x0000001E 307 #define V_028C70_COLOR_16_16_16_16 0x0000001F 308 #define V_028C70_COLOR_16_16_16_16_FLOAT 0x00000020 309 #define V_028C70_COLOR_32_32_32_32 0x00000022 310 #define V_028C70_COLOR_32_32_32_32_FLOAT 0x00000023 311 #define V_028C70_COLOR_32_32_32_FLOAT 0x00000030 312 #define S_028C70_ARRAY_MODE(x) (((x) & 0xF) << 8) 313 #define G_028C70_ARRAY_MODE(x) (((x) >> 8) & 0xF) 314 #define C_028C70_ARRAY_MODE 0xFFFFF0FF 315 #define V_028C70_ARRAY_LINEAR_GENERAL 0x00000000 316 #define V_028C70_ARRAY_LINEAR_ALIGNED 0x00000001 317 #define V_028C70_ARRAY_1D_TILED_THIN1 0x00000002 318 #define V_028C70_ARRAY_2D_TILED_THIN1 0x00000004 319 #define S_028C70_NUMBER_TYPE(x) (((x) & 0x7) << 12) 320 #define G_028C70_NUMBER_TYPE(x) (((x) >> 12) & 0x7) 321 #define C_028C70_NUMBER_TYPE 0xFFFF8FFF 322 #define V_028C70_NUMBER_UNORM 0x00000000 323 #define V_028C70_NUMBER_SNORM 0x00000001 324 #define V_028C70_NUMBER_USCALED 0x00000002 325 #define V_028C70_NUMBER_SSCALED 0x00000003 326 #define V_028C70_NUMBER_UINT 0x00000004 327 #define V_028C70_NUMBER_SINT 0x00000005 328 #define V_028C70_NUMBER_SRGB 0x00000006 329 #define V_028C70_NUMBER_FLOAT 0x00000007 330 #define S_028C70_COMP_SWAP(x) (((x) & 0x3) << 15) 331 #define G_028C70_COMP_SWAP(x) (((x) >> 15) & 0x3) 332 #define C_028C70_COMP_SWAP 0xFFFE7FFF 333 #define V_028C70_SWAP_STD 0x00000000 334 #define V_028C70_SWAP_ALT 0x00000001 335 #define V_028C70_SWAP_STD_REV 0x00000002 336 #define V_028C70_SWAP_ALT_REV 0x00000003 337 #define S_028C70_FAST_CLEAR(x) (((x) & 0x1) << 17) 338 #define G_028C70_FAST_CLEAR(x) (((x) >> 17) & 0x1) 339 #define C_028C70_FAST_CLEAR 0xFFFDFFFF 340 #define S_028C70_COMPRESSION(x) (((x) & 0x3) << 18) 341 #define G_028C70_COMPRESSION(x) (((x) >> 18) & 0x3) 342 #define C_028C70_COMPRESSION 0xFFF3FFFF 343 #define S_028C70_BLEND_CLAMP(x) (((x) & 0x1) << 19) 344 #define G_028C70_BLEND_CLAMP(x) (((x) >> 19) & 0x1) 345 #define C_028C70_BLEND_CLAMP 0xFFF7FFFF 346 #define S_028C70_BLEND_BYPASS(x) (((x) & 0x1) << 20) 347 #define G_028C70_BLEND_BYPASS(x) (((x) >> 20) & 0x1) 348 #define C_028C70_BLEND_BYPASS 0xFFEFFFFF 349 #define S_028C70_SIMPLE_FLOAT(x) (((x) & 0x1) << 21) 350 #define G_028C70_SIMPLE_FLOAT(x) (((x) >> 21) & 0x1) 351 #define C_028C70_SIMPLE_FLOAT 0xFFDFFFFF 352 #define S_028C70_ROUND_MODE(x) (((x) & 0x1) << 22) 353 #define G_028C70_ROUND_MODE(x) (((x) >> 22) & 0x1) 354 #define C_028C70_ROUND_MODE 0xFFBFFFFF 355 #define S_028C70_TILE_COMPACT(x) (((x) & 0x1) << 23) 356 #define G_028C70_TILE_COMPACT(x) (((x) >> 23) & 0x1) 357 #define C_028C70_TILE_COMPACT 0xFF7FFFFF 358 #define S_028C70_SOURCE_FORMAT(x) (((x) & 0x3) << 24) 359 #define G_028C70_SOURCE_FORMAT(x) (((x) >> 24) & 0x3) 360 #define C_028C70_SOURCE_FORMAT 0xFCFFFFFF 361 #define V_028C70_EXPORT_4C_32BPC 0x0 362 #define V_028C70_EXPORT_4C_16BPC 0x1 363 #define V_028C70_EXPORT_2C_32BPC 0x2 /* Do not use */ 364 #define S_028C70_RAT(x) (((x) & 0x1) << 26) 365 #define G_028C70_RAT(x) (((x) >> 26) & 0x1) 366 #define C_028C70_RAT 0xFBFFFFFF 367 #define S_028C70_RESOURCE_TYPE(x) (((x) & 0x7) << 27) 368 #define G_028C70_RESOURCE_TYPE(x) (((x) >> 27) & 0x7) 369 #define C_028C70_RESOURCE_TYPE 0xC7FFFFFF 370 371 #define R_028C74_CB_COLOR0_ATTRIB 0x028C74 372 #define S_028C74_NON_DISP_TILING_ORDER(x) (((x) & 0x1) << 4) 373 #define G_028C74_NON_DISP_TILING_ORDER(x) (((x) >> 4) & 0x1) 374 #define C_028C74_NON_DISP_TILING_ORDER 0xFFFFFFEF 375 #define S_028C74_TILE_SPLIT(x) (((x) & 0xf) << 5) 376 #define S_028C74_NUM_BANKS(x) (((x) & 0x3) << 10) 377 #define S_028C74_BANK_WIDTH(x) (((x) & 0x3) << 13) 378 #define S_028C74_BANK_HEIGHT(x) (((x) & 0x3) << 16) 379 #define S_028C74_MACRO_TILE_ASPECT(x) (((x) & 0x3) << 19) 380 #define S_028C74_FMASK_BANK_HEIGHT(x) (((x) & 0x3) << 22) 381 #define S_028C74_NUM_SAMPLES(x) (((x) & 0x7) << 24) /* cayman only */ 382 #define S_028C74_NUM_FRAGMENTS(x) (((x) & 0x3) << 27) /* cayman only */ 383 #define S_028C74_FORCE_DST_ALPHA_1(x) (((x) & 0x1) << 31) /* cayman only */ 384 385 #define R_028C78_CB_COLOR0_DIM 0x028C78 386 #define S_028C78_WIDTH_MAX(x) (((x) & 0xFFFF) << 0) 387 #define G_028C78_WIDTH_MAX(x) (((x) >> 0) & 0xFFFF) 388 #define C_028C78_WIDTH_MAX 0xFFFF0000 389 #define S_028C78_HEIGHT_MAX(x) (((x) & 0xFFFF) << 16) 390 #define G_028C78_HEIGHT_MAX(x) (((x) >> 16) & 0xFFFF) 391 #define C_028C78_HEIGHT_MAX 0x0000FFFF 392 393 394 /* alpha same */ 395 #define R_028410_SX_ALPHA_TEST_CONTROL 0x028410 396 #define S_028410_ALPHA_FUNC(x) (((x) & 0x7) << 0) 397 #define G_028410_ALPHA_FUNC(x) (((x) >> 0) & 0x7) 398 #define C_028410_ALPHA_FUNC 0xFFFFFFF8 399 #define S_028410_ALPHA_TEST_ENABLE(x) (((x) & 0x1) << 3) 400 #define G_028410_ALPHA_TEST_ENABLE(x) (((x) >> 3) & 0x1) 401 #define C_028410_ALPHA_TEST_ENABLE 0xFFFFFFF7 402 #define S_028410_ALPHA_TEST_BYPASS(x) (((x) & 0x1) << 8) 403 #define G_028410_ALPHA_TEST_BYPASS(x) (((x) >> 8) & 0x1) 404 #define C_028410_ALPHA_TEST_BYPASS 0xFFFFFEFF 405 406 #define R_0286EC_SPI_COMPUTE_NUM_THREAD_X 0x0286EC 407 #define R_0286F0_SPI_COMPUTE_NUM_THREAD_Y 0x0286F0 408 #define R_0286F4_SPI_COMPUTE_NUM_THREAD_Z 0x0286F4 409 #define R_028B74_VGT_DISPATCH_INITIATOR 0x028B74 410 411 #define R_028800_DB_DEPTH_CONTROL 0x028800 412 #define S_028800_STENCIL_ENABLE(x) (((x) & 0x1) << 0) 413 #define G_028800_STENCIL_ENABLE(x) (((x) >> 0) & 0x1) 414 #define C_028800_STENCIL_ENABLE 0xFFFFFFFE 415 #define S_028800_Z_ENABLE(x) (((x) & 0x1) << 1) 416 #define G_028800_Z_ENABLE(x) (((x) >> 1) & 0x1) 417 #define C_028800_Z_ENABLE 0xFFFFFFFD 418 #define S_028800_Z_WRITE_ENABLE(x) (((x) & 0x1) << 2) 419 #define G_028800_Z_WRITE_ENABLE(x) (((x) >> 2) & 0x1) 420 #define C_028800_Z_WRITE_ENABLE 0xFFFFFFFB 421 #define S_028800_ZFUNC(x) (((x) & 0x7) << 4) 422 #define G_028800_ZFUNC(x) (((x) >> 4) & 0x7) 423 #define C_028800_ZFUNC 0xFFFFFF8F 424 #define S_028800_BACKFACE_ENABLE(x) (((x) & 0x1) << 7) 425 #define G_028800_BACKFACE_ENABLE(x) (((x) >> 7) & 0x1) 426 #define C_028800_BACKFACE_ENABLE 0xFFFFFF7F 427 #define S_028800_STENCILFUNC(x) (((x) & 0x7) << 8) 428 #define G_028800_STENCILFUNC(x) (((x) >> 8) & 0x7) 429 #define C_028800_STENCILFUNC 0xFFFFF8FF 430 #define V_028800_STENCILFUNC_NEVER 0x00000000 431 #define V_028800_STENCILFUNC_LESS 0x00000001 432 #define V_028800_STENCILFUNC_EQUAL 0x00000002 433 #define V_028800_STENCILFUNC_LEQUAL 0x00000003 434 #define V_028800_STENCILFUNC_GREATER 0x00000004 435 #define V_028800_STENCILFUNC_NOTEQUAL 0x00000005 436 #define V_028800_STENCILFUNC_GEQUAL 0x00000006 437 #define V_028800_STENCILFUNC_ALWAYS 0x00000007 438 #define S_028800_STENCILFAIL(x) (((x) & 0x7) << 11) 439 #define G_028800_STENCILFAIL(x) (((x) >> 11) & 0x7) 440 #define C_028800_STENCILFAIL 0xFFFFC7FF 441 #define V_028800_STENCIL_KEEP 0x00000000 442 #define V_028800_STENCIL_ZERO 0x00000001 443 #define V_028800_STENCIL_REPLACE 0x00000002 444 #define V_028800_STENCIL_INCR 0x00000003 445 #define V_028800_STENCIL_DECR 0x00000004 446 #define V_028800_STENCIL_INVERT 0x00000005 447 #define V_028800_STENCIL_INCR_WRAP 0x00000006 448 #define V_028800_STENCIL_DECR_WRAP 0x00000007 449 #define S_028800_STENCILZPASS(x) (((x) & 0x7) << 14) 450 #define G_028800_STENCILZPASS(x) (((x) >> 14) & 0x7) 451 #define C_028800_STENCILZPASS 0xFFFE3FFF 452 #define S_028800_STENCILZFAIL(x) (((x) & 0x7) << 17) 453 #define G_028800_STENCILZFAIL(x) (((x) >> 17) & 0x7) 454 #define C_028800_STENCILZFAIL 0xFFF1FFFF 455 #define S_028800_STENCILFUNC_BF(x) (((x) & 0x7) << 20) 456 #define G_028800_STENCILFUNC_BF(x) (((x) >> 20) & 0x7) 457 #define C_028800_STENCILFUNC_BF 0xFF8FFFFF 458 #define S_028800_STENCILFAIL_BF(x) (((x) & 0x7) << 23) 459 #define G_028800_STENCILFAIL_BF(x) (((x) >> 23) & 0x7) 460 #define C_028800_STENCILFAIL_BF 0xFC7FFFFF 461 #define S_028800_STENCILZPASS_BF(x) (((x) & 0x7) << 26) 462 #define G_028800_STENCILZPASS_BF(x) (((x) >> 26) & 0x7) 463 #define C_028800_STENCILZPASS_BF 0xE3FFFFFF 464 #define S_028800_STENCILZFAIL_BF(x) (((x) & 0x7) << 29) 465 #define G_028800_STENCILZFAIL_BF(x) (((x) >> 29) & 0x7) 466 #define C_028800_STENCILZFAIL_BF 0x1FFFFFFF 467 468 #define R_028808_CB_COLOR_CONTROL 0x028808 469 #define S_028808_DEGAMMA_ENABLE(x) (((x) & 0x1) << 3) 470 #define G_028808_DEGAMMA_ENABLE(x) (((x) >> 3) & 0x1) 471 #define C_028808_DEGAMMA_ENABLE 0xFFFFFFF7 472 #define S_028808_MODE(x) (((x) & 0x7) << 4) 473 #define G_028808_MODE(x) (((x) >> 4) & 0x7) 474 #define C_028808_MODE 0xFFFFFF8F 475 #define V_028808_CB_DISABLE 0x00000000 476 #define V_028808_CB_NORMAL 0x00000001 477 #define V_028808_CB_ELIMINATE_FAST_CLEAR 0x00000002 478 #define V_028808_CB_RESOLVE 0x00000003 479 #define V_028808_CB_DECOMPRESS 0x00000004 480 #define V_028808_CB_FASK_DECOMPRESS 0x00000005 481 #define S_028808_ROP3(x) (((x) & 0xFF) << 16) 482 #define G_028808_ROP3(x) (((x) >> 16) & 0xFF) 483 #define C_028808_ROP3 0xFF00FFFF 484 #define R_028810_PA_CL_CLIP_CNTL 0x028810 485 #define S_028810_UCP_ENA_0(x) (((x) & 0x1) << 0) 486 #define G_028810_UCP_ENA_0(x) (((x) >> 0) & 0x1) 487 #define C_028810_UCP_ENA_0 0xFFFFFFFE 488 #define S_028810_UCP_ENA_1(x) (((x) & 0x1) << 1) 489 #define G_028810_UCP_ENA_1(x) (((x) >> 1) & 0x1) 490 #define C_028810_UCP_ENA_1 0xFFFFFFFD 491 #define S_028810_UCP_ENA_2(x) (((x) & 0x1) << 2) 492 #define G_028810_UCP_ENA_2(x) (((x) >> 2) & 0x1) 493 #define C_028810_UCP_ENA_2 0xFFFFFFFB 494 #define S_028810_UCP_ENA_3(x) (((x) & 0x1) << 3) 495 #define G_028810_UCP_ENA_3(x) (((x) >> 3) & 0x1) 496 #define C_028810_UCP_ENA_3 0xFFFFFFF7 497 #define S_028810_UCP_ENA_4(x) (((x) & 0x1) << 4) 498 #define G_028810_UCP_ENA_4(x) (((x) >> 4) & 0x1) 499 #define C_028810_UCP_ENA_4 0xFFFFFFEF 500 #define S_028810_UCP_ENA_5(x) (((x) & 0x1) << 5) 501 #define G_028810_UCP_ENA_5(x) (((x) >> 5) & 0x1) 502 #define C_028810_UCP_ENA_5 0xFFFFFFDF 503 #define S_028810_PS_UCP_Y_SCALE_NEG(x) (((x) & 0x1) << 13) 504 #define G_028810_PS_UCP_Y_SCALE_NEG(x) (((x) >> 13) & 0x1) 505 #define C_028810_PS_UCP_Y_SCALE_NEG 0xFFFFDFFF 506 #define S_028810_PS_UCP_MODE(x) (((x) & 0x3) << 14) 507 #define G_028810_PS_UCP_MODE(x) (((x) >> 14) & 0x3) 508 #define C_028810_PS_UCP_MODE 0xFFFF3FFF 509 #define S_028810_CLIP_DISABLE(x) (((x) & 0x1) << 16) 510 #define G_028810_CLIP_DISABLE(x) (((x) >> 16) & 0x1) 511 #define C_028810_CLIP_DISABLE 0xFFFEFFFF 512 #define S_028810_UCP_CULL_ONLY_ENA(x) (((x) & 0x1) << 17) 513 #define G_028810_UCP_CULL_ONLY_ENA(x) (((x) >> 17) & 0x1) 514 #define C_028810_UCP_CULL_ONLY_ENA 0xFFFDFFFF 515 #define S_028810_BOUNDARY_EDGE_FLAG_ENA(x) (((x) & 0x1) << 18) 516 #define G_028810_BOUNDARY_EDGE_FLAG_ENA(x) (((x) >> 18) & 0x1) 517 #define C_028810_BOUNDARY_EDGE_FLAG_ENA 0xFFFBFFFF 518 #define S_028810_DX_CLIP_SPACE_DEF(x) (((x) & 0x1) << 19) 519 #define G_028810_DX_CLIP_SPACE_DEF(x) (((x) >> 19) & 0x1) 520 #define C_028810_DX_CLIP_SPACE_DEF 0xFFF7FFFF 521 #define S_028810_DIS_CLIP_ERR_DETECT(x) (((x) & 0x1) << 20) 522 #define G_028810_DIS_CLIP_ERR_DETECT(x) (((x) >> 20) & 0x1) 523 #define C_028810_DIS_CLIP_ERR_DETECT 0xFFEFFFFF 524 #define S_028810_VTX_KILL_OR(x) (((x) & 0x1) << 21) 525 #define G_028810_VTX_KILL_OR(x) (((x) >> 21) & 0x1) 526 #define C_028810_VTX_KILL_OR 0xFFDFFFFF 527 #define S_028810_DX_LINEAR_ATTR_CLIP_ENA(x) (((x) & 0x1) << 24) 528 #define G_028810_DX_LINEAR_ATTR_CLIP_ENA(x) (((x) >> 24) & 0x1) 529 #define C_028810_DX_LINEAR_ATTR_CLIP_ENA 0xFEFFFFFF 530 #define S_028810_VTE_VPORT_PROVOKE_DISABLE(x) (((x) & 0x1) << 25) 531 #define G_028810_VTE_VPORT_PROVOKE_DISABLE(x) (((x) >> 25) & 0x1) 532 #define C_028810_VTE_VPORT_PROVOKE_DISABLE 0xFDFFFFFF 533 #define S_028810_ZCLIP_NEAR_DISABLE(x) (((x) & 0x1) << 26) 534 #define G_028810_ZCLIP_NEAR_DISABLE(x) (((x) >> 26) & 0x1) 535 #define C_028810_ZCLIP_NEAR_DISABLE 0xFBFFFFFF 536 #define S_028810_ZCLIP_FAR_DISABLE(x) (((x) & 0x1) << 27) 537 #define G_028810_ZCLIP_FAR_DISABLE(x) (((x) >> 27) & 0x1) 538 #define C_028810_ZCLIP_FAR_DISABLE 0xF7FFFFFF 539 540 #define R_028040_DB_Z_INFO 0x028040 541 #define S_028040_FORMAT(x) (((x) & 0x3) << 0) 542 #define G_028040_FORMAT(x) (((x) >> 0) & 0x3) 543 #define C_028040_FORMAT 0xFFFFFFFC 544 #define V_028040_Z_INVALID 0x00000000 545 #define V_028040_Z_16 0x00000001 546 #define V_028040_Z_24 0x00000002 547 #define V_028040_Z_32_FLOAT 0x00000003 548 #define S_028040_NUM_SAMPLES(x) (((x) & 0x3) << 2) /* cayman only */ 549 #define S_028040_ARRAY_MODE(x) (((x) & 0xF) << 4) 550 #define G_028040_ARRAY_MODE(x) (((x) >> 4) & 0xF) 551 #define C_028040_ARRAY_MODE 0xFFFFFF0F 552 #define S_028040_READ_SIZE(x) (((x) & 0x1) << 28) 553 #define G_028040_READ_SIZE(x) (((x) >> 28) & 0x1) 554 #define C_028040_READ_SIZE 0xEFFFFFFF 555 #define S_028040_TILE_SURFACE_ENABLE(x) (((x) & 0x1) << 29) 556 #define G_028040_TILE_SURFACE_ENABLE(x) (((x) >> 29) & 0x1) 557 #define C_028040_TILE_SURFACE_ENABLE 0xDFFFFFFF 558 #define S_028040_ZRANGE_PRECISION(x) (((x) & 0x1) << 31) 559 #define G_028040_ZRANGE_PRECISION(x) (((x) >> 31) & 0x1) 560 #define C_028040_ZRANGE_PRECISION 0x7FFFFFFF 561 #define S_028040_TILE_SPLIT(x) (((x) & 0x7) << 8) 562 #define S_028040_NUM_BANKS(x) (((x) & 0x3) << 12) 563 #define S_028040_BANK_WIDTH(x) (((x) & 0x3) << 16) 564 #define S_028040_BANK_HEIGHT(x) (((x) & 0x3) << 20) 565 #define S_028040_MACRO_TILE_ASPECT(x) (((x) & 0x3) << 24) 566 567 #define R_028044_DB_STENCIL_INFO 0x028044 568 #define S_028044_FORMAT(x) (((x) & 0x1) << 0) 569 #define G_028044_FORMAT(x) (((x) >> 0) & 0x1) 570 #define C_028044_FORMAT 0xFFFFFFFE 571 #define S_028044_TILE_SPLIT(x) (((x) & 0x7) << 8) 572 573 #define R_028058_DB_DEPTH_SIZE 0x028058 574 #define S_028058_PITCH_TILE_MAX(x) (((x) & 0x7FF) << 0) 575 #define G_028058_PITCH_TILE_MAX(x) (((x) >> 0) & 0x7FF) 576 #define C_028058_PITCH_TILE_MAX 0xFFFFF800 577 #define S_028058_HEIGHT_TILE_MAX(x) (((x) & 0x7FF) << 11) 578 #define G_028058_HEIGHT_TILE_MAX(x) (((x) >> 11) & 0x7FF) 579 #define C_028058_HEIGHT_TILE_MAX 0xFFC007FF 580 581 #define R_02805C_DB_DEPTH_SLICE 0x02805C 582 #define S_02805C_SLICE_TILE_MAX(x) (((x) & 0x3FFFFF) << 0) 583 #define G_02805C_SLICE_TILE_MAX(x) (((x) >> 0) & 0x3FFFFF) 584 #define C_02805C_SLICE_TILE_MAX 0xFFC00000 585 586 #define R_028430_DB_STENCILREFMASK 0x028430 587 #define S_028430_STENCILREF(x) (((x) & 0xFF) << 0) 588 #define G_028430_STENCILREF(x) (((x) >> 0) & 0xFF) 589 #define C_028430_STENCILREF 0xFFFFFF00 590 #define S_028430_STENCILMASK(x) (((x) & 0xFF) << 8) 591 #define G_028430_STENCILMASK(x) (((x) >> 8) & 0xFF) 592 #define C_028430_STENCILMASK 0xFFFF00FF 593 #define S_028430_STENCILWRITEMASK(x) (((x) & 0xFF) << 16) 594 #define G_028430_STENCILWRITEMASK(x) (((x) >> 16) & 0xFF) 595 #define C_028430_STENCILWRITEMASK 0xFF00FFFF 596 #define R_028434_DB_STENCILREFMASK_BF 0x028434 597 #define S_028434_STENCILREF_BF(x) (((x) & 0xFF) << 0) 598 #define G_028434_STENCILREF_BF(x) (((x) >> 0) & 0xFF) 599 #define C_028434_STENCILREF_BF 0xFFFFFF00 600 #define S_028434_STENCILMASK_BF(x) (((x) & 0xFF) << 8) 601 #define G_028434_STENCILMASK_BF(x) (((x) >> 8) & 0xFF) 602 #define C_028434_STENCILMASK_BF 0xFFFF00FF 603 #define S_028434_STENCILWRITEMASK_BF(x) (((x) & 0xFF) << 16) 604 #define G_028434_STENCILWRITEMASK_BF(x) (((x) >> 16) & 0xFF) 605 #define C_028434_STENCILWRITEMASK_BF 0xFF00FFFF 606 #define R_028780_CB_BLEND0_CONTROL 0x028780 607 #define S_028780_COLOR_SRCBLEND(x) (((x) & 0x1F) << 0) 608 #define G_028780_COLOR_SRCBLEND(x) (((x) >> 0) & 0x1F) 609 #define C_028780_COLOR_SRCBLEND 0xFFFFFFE0 610 #define V_028780_BLEND_ZERO 0x00000000 611 #define V_028780_BLEND_ONE 0x00000001 612 #define V_028780_BLEND_SRC_COLOR 0x00000002 613 #define V_028780_BLEND_ONE_MINUS_SRC_COLOR 0x00000003 614 #define V_028780_BLEND_SRC_ALPHA 0x00000004 615 #define V_028780_BLEND_ONE_MINUS_SRC_ALPHA 0x00000005 616 #define V_028780_BLEND_DST_ALPHA 0x00000006 617 #define V_028780_BLEND_ONE_MINUS_DST_ALPHA 0x00000007 618 #define V_028780_BLEND_DST_COLOR 0x00000008 619 #define V_028780_BLEND_ONE_MINUS_DST_COLOR 0x00000009 620 #define V_028780_BLEND_SRC_ALPHA_SATURATE 0x0000000A 621 #define V_028780_BLEND_BOTH_SRC_ALPHA 0x0000000B 622 #define V_028780_BLEND_BOTH_INV_SRC_ALPHA 0x0000000C 623 #define V_028780_BLEND_CONST_COLOR 0x0000000D 624 #define V_028780_BLEND_ONE_MINUS_CONST_COLOR 0x0000000E 625 #define V_028780_BLEND_SRC1_COLOR 0x0000000F 626 #define V_028780_BLEND_INV_SRC1_COLOR 0x00000010 627 #define V_028780_BLEND_SRC1_ALPHA 0x00000011 628 #define V_028780_BLEND_INV_SRC1_ALPHA 0x00000012 629 #define V_028780_BLEND_CONST_ALPHA 0x00000013 630 #define V_028780_BLEND_ONE_MINUS_CONST_ALPHA 0x00000014 631 #define S_028780_COLOR_COMB_FCN(x) (((x) & 0x7) << 5) 632 #define G_028780_COLOR_COMB_FCN(x) (((x) >> 5) & 0x7) 633 #define C_028780_COLOR_COMB_FCN 0xFFFFFF1F 634 #define V_028780_COMB_DST_PLUS_SRC 0x00000000 635 #define V_028780_COMB_SRC_MINUS_DST 0x00000001 636 #define V_028780_COMB_MIN_DST_SRC 0x00000002 637 #define V_028780_COMB_MAX_DST_SRC 0x00000003 638 #define V_028780_COMB_DST_MINUS_SRC 0x00000004 639 #define S_028780_COLOR_DESTBLEND(x) (((x) & 0x1F) << 8) 640 #define G_028780_COLOR_DESTBLEND(x) (((x) >> 8) & 0x1F) 641 #define C_028780_COLOR_DESTBLEND 0xFFFFE0FF 642 #define S_028780_OPACITY_WEIGHT(x) (((x) & 0x1) << 13) 643 #define G_028780_OPACITY_WEIGHT(x) (((x) >> 13) & 0x1) 644 #define C_028780_OPACITY_WEIGHT 0xFFFFDFFF 645 #define S_028780_ALPHA_SRCBLEND(x) (((x) & 0x1F) << 16) 646 #define G_028780_ALPHA_SRCBLEND(x) (((x) >> 16) & 0x1F) 647 #define C_028780_ALPHA_SRCBLEND 0xFFE0FFFF 648 #define S_028780_ALPHA_COMB_FCN(x) (((x) & 0x7) << 21) 649 #define G_028780_ALPHA_COMB_FCN(x) (((x) >> 21) & 0x7) 650 #define C_028780_ALPHA_COMB_FCN 0xFF1FFFFF 651 #define S_028780_ALPHA_DESTBLEND(x) (((x) & 0x1F) << 24) 652 #define G_028780_ALPHA_DESTBLEND(x) (((x) >> 24) & 0x1F) 653 #define C_028780_ALPHA_DESTBLEND 0xE0FFFFFF 654 #define S_028780_SEPARATE_ALPHA_BLEND(x) (((x) & 0x1) << 29) 655 #define G_028780_SEPARATE_ALPHA_BLEND(x) (((x) >> 29) & 0x1) 656 #define C_028780_SEPARATE_ALPHA_BLEND 0xDFFFFFFF 657 #define S_028780_BLEND_CONTROL_ENABLE(x) (((x) & 0x1) << 30) 658 #define G_028780_BLEND_CONTROL_ENABLE(x) (((x) >> 30) & 0x1) 659 #define C_028780_BLEND_CONTROL_ENABLE 0xEFFFFFFF 660 #define R_028814_PA_SU_SC_MODE_CNTL 0x028814 661 #define S_028814_CULL_FRONT(x) (((x) & 0x1) << 0) 662 #define G_028814_CULL_FRONT(x) (((x) >> 0) & 0x1) 663 #define C_028814_CULL_FRONT 0xFFFFFFFE 664 #define S_028814_CULL_BACK(x) (((x) & 0x1) << 1) 665 #define G_028814_CULL_BACK(x) (((x) >> 1) & 0x1) 666 #define C_028814_CULL_BACK 0xFFFFFFFD 667 #define S_028814_FACE(x) (((x) & 0x1) << 2) 668 #define G_028814_FACE(x) (((x) >> 2) & 0x1) 669 #define C_028814_FACE 0xFFFFFFFB 670 #define S_028814_POLY_MODE(x) (((x) & 0x3) << 3) 671 #define G_028814_POLY_MODE(x) (((x) >> 3) & 0x3) 672 #define C_028814_POLY_MODE 0xFFFFFFE7 673 #define S_028814_POLYMODE_FRONT_PTYPE(x) (((x) & 0x7) << 5) 674 #define G_028814_POLYMODE_FRONT_PTYPE(x) (((x) >> 5) & 0x7) 675 #define C_028814_POLYMODE_FRONT_PTYPE 0xFFFFFF1F 676 #define S_028814_POLYMODE_BACK_PTYPE(x) (((x) & 0x7) << 8) 677 #define G_028814_POLYMODE_BACK_PTYPE(x) (((x) >> 8) & 0x7) 678 #define C_028814_POLYMODE_BACK_PTYPE 0xFFFFF8FF 679 #define S_028814_POLY_OFFSET_FRONT_ENABLE(x) (((x) & 0x1) << 11) 680 #define G_028814_POLY_OFFSET_FRONT_ENABLE(x) (((x) >> 11) & 0x1) 681 #define C_028814_POLY_OFFSET_FRONT_ENABLE 0xFFFFF7FF 682 #define S_028814_POLY_OFFSET_BACK_ENABLE(x) (((x) & 0x1) << 12) 683 #define G_028814_POLY_OFFSET_BACK_ENABLE(x) (((x) >> 12) & 0x1) 684 #define C_028814_POLY_OFFSET_BACK_ENABLE 0xFFFFEFFF 685 #define S_028814_POLY_OFFSET_PARA_ENABLE(x) (((x) & 0x1) << 13) 686 #define G_028814_POLY_OFFSET_PARA_ENABLE(x) (((x) >> 13) & 0x1) 687 #define C_028814_POLY_OFFSET_PARA_ENABLE 0xFFFFDFFF 688 #define S_028814_VTX_WINDOW_OFFSET_ENABLE(x) (((x) & 0x1) << 16) 689 #define G_028814_VTX_WINDOW_OFFSET_ENABLE(x) (((x) >> 16) & 0x1) 690 #define C_028814_VTX_WINDOW_OFFSET_ENABLE 0xFFFEFFFF 691 #define S_028814_PROVOKING_VTX_LAST(x) (((x) & 0x1) << 19) 692 #define G_028814_PROVOKING_VTX_LAST(x) (((x) >> 19) & 0x1) 693 #define C_028814_PROVOKING_VTX_LAST 0xFFF7FFFF 694 #define S_028814_PERSP_CORR_DIS(x) (((x) & 0x1) << 20) 695 #define G_028814_PERSP_CORR_DIS(x) (((x) >> 20) & 0x1) 696 #define C_028814_PERSP_CORR_DIS 0xFFEFFFFF 697 #define S_028814_MULTI_PRIM_IB_ENA(x) (((x) & 0x1) << 21) 698 #define G_028814_MULTI_PRIM_IB_ENA(x) (((x) >> 21) & 0x1) 699 #define C_028814_MULTI_PRIM_IB_ENA 0xFFDFFFFF 700 701 #define R_028ABC_DB_HTILE_SURFACE 0x028ABC 702 #define S_028ABC_HTILE_WIDTH(x) (((x) & 0x1) << 0) 703 #define G_028ABC_HTILE_WIDTH(x) (((x) >> 0) & 0x1) 704 #define C_028ABC_HTILE_WIDTH 0xFFFFFFFE 705 #define S_028ABC_HTILE_HEIGHT(x) (((x) & 0x1) << 1) 706 #define G_028ABC_HTILE_HEIGHT(x) (((x) >> 1) & 0x1) 707 #define C_028ABC_HTILE_HEIGHT 0xFFFFFFFD 708 #define S_028ABC_LINEAR(x) (((x) & 0x1) << 2) 709 #define G_028ABC_LINEAR(x) (((x) >> 2) & 0x1) 710 #define C_028ABC_LINEAR 0xFFFFFFFB 711 #define S_028ABC_FULL_CACHE(x) (((x) & 0x1) << 3) 712 #define G_028ABC_FULL_CACHE(x) (((x) >> 3) & 0x1) 713 #define C_028ABC_FULL_CACHE 0xFFFFFFF7 714 #define S_028ABC_HTILE_USES_PRELOAD_WIN(x) (((x) & 0x1) << 4) 715 #define G_028ABC_HTILE_USES_PRELOAD_WIN(x) (((x) >> 4) & 0x1) 716 #define C_028ABC_HTILE_USES_PRELOAD_WIN 0xFFFFFFEF 717 #define S_028ABC_PRELOAD(x) (((x) & 0x1) << 5) 718 #define G_028ABC_PRELOAD(x) (((x) >> 5) & 0x1) 719 #define C_028ABC_PRELOAD 0xFFFFFFDF 720 #define S_028ABC_PREFETCH_WIDTH(x) (((x) & 0x3F) << 6) 721 #define G_028ABC_PREFETCH_WIDTH(x) (((x) >> 6) & 0x3F) 722 #define C_028ABC_PREFETCH_WIDTH 0xFFFFF03F 723 #define S_028ABC_PREFETCH_HEIGHT(x) (((x) & 0x3F) << 12) 724 #define G_028ABC_PREFETCH_HEIGHT(x) (((x) >> 12) & 0x3F) 725 #define C_028ABC_PREFETCH_HEIGHT 0xFFFC0FFF 726 #define R_02880C_DB_SHADER_CONTROL 0x02880C 727 #define S_02880C_Z_EXPORT_ENABLE(x) (((x) & 0x1) << 0) 728 #define G_02880C_Z_EXPORT_ENABLE(x) (((x) >> 0) & 0x1) 729 #define C_02880C_Z_EXPORT_ENABLE 0xFFFFFFFE 730 #define S_02880C_STENCIL_EXPORT_ENABLE(x) (((x) & 0x1) << 1) 731 #define G_02880C_STENCIL_EXPORT_ENABLE(x) (((x) >> 1) & 0x1) 732 #define C_02880C_STENCIL_EXPORT_ENABLE 0xFFFFFFFD 733 #define S_02880C_Z_ORDER(x) (((x) & 0x3) << 4) 734 #define G_02880C_Z_ORDER(x) (((x) >> 4) & 0x3) 735 #define C_02880C_Z_ORDER 0xFFFFFCFF 736 #define V_02880C_LATE_Z 0 737 #define V_02880C_EARLY_Z_THEN_LATE_Z 1 738 #define V_02880C_RE_Z 2 739 #define V_02880C_EARLY_Z_THEN_RE_Z 3 740 #define S_02880C_KILL_ENABLE(x) (((x) & 0x1) << 6) 741 #define G_02880C_KILL_ENABLE(x) (((x) >> 6) & 0x1) 742 #define C_02880C_KILL_ENABLE 0xFFFFFFBF 743 #define S_02880C_DUAL_EXPORT_ENABLE(x) (((x) & 0x1) << 9) 744 #define G_02880C_DUAL_EXPORT_ENABLE(x) (((x) >> 9) & 0x1) 745 #define C_02880C_DUAL_EXPORT_ENABLE 0xFFFFFDFF 746 #define S_02880C_DB_SOURCE_FORMAT(x) (((x) & 0x3) << 13) 747 #define G_02880C_DB_SOURCE_FORMAT(x) (((x) >> 13) & 0x3) 748 #define C_02880C_DB_SOURCE_FORMAT 0xFFFF9FFF 749 #define V_02880C_EXPORT_DB_FULL 0x00 750 #define V_02880C_EXPORT_DB_FOUR16 0x01 751 #define V_02880C_EXPORT_DB_TWO 0x02 752 #define S_02880C_ALPHA_TO_MASK_DISABLE(x) (((x) & 0x1) << 12) 753 754 #define R_028A00_PA_SU_POINT_SIZE 0x028A00 755 #define S_028A00_HEIGHT(x) (((x) & 0xFFFF) << 0) 756 #define G_028A00_HEIGHT(x) (((x) >> 0) & 0xFFFF) 757 #define C_028A00_HEIGHT 0xFFFF0000 758 #define S_028A00_WIDTH(x) (((x) & 0xFFFF) << 16) 759 #define G_028A00_WIDTH(x) (((x) >> 16) & 0xFFFF) 760 #define C_028A00_WIDTH 0x0000FFFF 761 #define R_028A0C_PA_SC_LINE_STIPPLE 0x028A0C 762 #define S_028A0C_LINE_PATTERN(x) (((x) & 0xFFFF) << 0) 763 #define S_028A0C_REPEAT_COUNT(x) (((x) & 0xFF) << 16) 764 #define S_028A0C_PATTERN_BIT_ORDER(x) (((x) & 0x1) << 28) 765 #define S_028A0C_AUTO_RESET_CNTL(x) (((x) & 0x3) << 29) 766 #define R_028A40_VGT_GS_MODE 0x028A40 767 #define S_028A40_MODE(x) (((x) & 0x3) << 0) 768 #define G_028A40_MODE(x) (((x) >> 0) & 0x3) 769 #define C_028A40_MODE 0xFFFFFFFC 770 #define S_028A40_ES_PASSTHRU(x) (((x) & 0x1) << 2) 771 #define G_028A40_ES_PASSTHRU(x) (((x) >> 2) & 0x1) 772 #define C_028A40_ES_PASSTHRU 0xFFFFFFFB 773 #define S_028A40_CUT_MODE(x) (((x) & 0x3) << 3) 774 #define G_028A40_CUT_MODE(x) (((x) >> 3) & 0x3) 775 #define C_028A40_CUT_MODE 0xFFFFFFE7 776 #define S_028A40_COMPUTE_MODE(x) (x << 14) 777 #define S_028A40_PARTIAL_THD_AT_EOI(x) (x << 17) 778 #define R_028A6C_VGT_GS_OUT_PRIM_TYPE 0x028A6C 779 #define S_028A6C_OUTPRIM_TYPE(x) (((x) & 0x3F) << 0) 780 #define V_028A6C_OUTPRIM_TYPE_POINTLIST 0 781 #define V_028A6C_OUTPRIM_TYPE_LINESTRIP 1 782 #define V_028A6C_OUTPRIM_TYPE_TRISTRIP 2 783 #define R_008040_WAIT_UNTIL 0x008040 784 #define S_008040_WAIT_CP_DMA_IDLE(x) (((x) & 0x1) << 8) 785 #define G_008040_WAIT_CP_DMA_IDLE(x) (((x) >> 8) & 0x1) 786 #define C_008040_WAIT_CP_DMA_IDLE 0xFFFFFEFF 787 #define S_008040_WAIT_CMDFIFO(x) (((x) & 0x1) << 10) 788 #define G_008040_WAIT_CMDFIFO(x) (((x) >> 10) & 0x1) 789 #define C_008040_WAIT_CMDFIFO 0xFFFFFBFF 790 #define S_008040_WAIT_2D_IDLE(x) (((x) & 0x1) << 14) 791 #define G_008040_WAIT_2D_IDLE(x) (((x) >> 14) & 0x1) 792 #define C_008040_WAIT_2D_IDLE 0xFFFFBFFF 793 #define S_008040_WAIT_3D_IDLE(x) (((x) & 0x1) << 15) 794 #define G_008040_WAIT_3D_IDLE(x) (((x) >> 15) & 0x1) 795 #define C_008040_WAIT_3D_IDLE 0xFFFF7FFF 796 #define S_008040_WAIT_2D_IDLECLEAN(x) (((x) & 0x1) << 16) 797 #define G_008040_WAIT_2D_IDLECLEAN(x) (((x) >> 16) & 0x1) 798 #define C_008040_WAIT_2D_IDLECLEAN 0xFFFEFFFF 799 #define S_008040_WAIT_3D_IDLECLEAN(x) (((x) & 0x1) << 17) 800 #define G_008040_WAIT_3D_IDLECLEAN(x) (((x) >> 17) & 0x1) 801 #define C_008040_WAIT_3D_IDLECLEAN 0xFFFDFFFF 802 #define S_008040_WAIT_EXTERN_SIG(x) (((x) & 0x1) << 19) 803 #define G_008040_WAIT_EXTERN_SIG(x) (((x) >> 19) & 0x1) 804 #define C_008040_WAIT_EXTERN_SIG 0xFFF7FFFF 805 #define S_008040_CMDFIFO_ENTRIES(x) (((x) & 0x1F) << 20) 806 #define G_008040_CMDFIFO_ENTRIES(x) (((x) >> 20) & 0x1F) 807 #define C_008040_CMDFIFO_ENTRIES 0xFE0FFFFF 808 809 /* diff */ 810 #define R_0286CC_SPI_PS_IN_CONTROL_0 0x0286CC 811 #define S_0286CC_NUM_INTERP(x) (((x) & 0x3F) << 0) 812 #define G_0286CC_NUM_INTERP(x) (((x) >> 0) & 0x3F) 813 #define C_0286CC_NUM_INTERP 0xFFFFFFC0 814 #define S_0286CC_POSITION_ENA(x) (((x) & 0x1) << 8) 815 #define G_0286CC_POSITION_ENA(x) (((x) >> 8) & 0x1) 816 #define C_0286CC_POSITION_ENA 0xFFFFFEFF 817 #define S_0286CC_POSITION_CENTROID(x) (((x) & 0x1) << 9) 818 #define G_0286CC_POSITION_CENTROID(x) (((x) >> 9) & 0x1) 819 #define C_0286CC_POSITION_CENTROID 0xFFFFFDFF 820 #define S_0286CC_POSITION_ADDR(x) (((x) & 0x1F) << 10) 821 #define G_0286CC_POSITION_ADDR(x) (((x) >> 10) & 0x1F) 822 #define C_0286CC_POSITION_ADDR 0xFFFF83FF 823 #define S_0286CC_PARAM_GEN(x) (((x) & 0xF) << 15) 824 #define G_0286CC_PARAM_GEN(x) (((x) >> 15) & 0xF) 825 #define C_0286CC_PARAM_GEN 0xFFF87FFF 826 #define S_0286CC_PERSP_GRADIENT_ENA(x) (((x) & 0x1) << 28) 827 #define G_0286CC_PERSP_GRADIENT_ENA(x) (((x) >> 28) & 0x1) 828 #define C_0286CC_PERSP_GRADIENT_ENA 0xEFFFFFFF 829 #define S_0286CC_LINEAR_GRADIENT_ENA(x) (((x) & 0x1) << 29) 830 #define G_0286CC_LINEAR_GRADIENT_ENA(x) (((x) >> 29) & 0x1) 831 #define C_0286CC_LINEAR_GRADIENT_ENA 0xDFFFFFFF 832 #define S_0286CC_POSITION_SAMPLE(x) (((x) & 0x1) << 30) 833 #define G_0286CC_POSITION_SAMPLE(x) (((x) >> 30) & 0x1) 834 #define C_0286CC_POSITION_SAMPLE 0xBFFFFFFF 835 #define R_0286D0_SPI_PS_IN_CONTROL_1 0x0286D0 836 #define S_0286D0_FRONT_FACE_ENA(x) (((x) & 0x1) << 8) 837 #define G_0286D0_FRONT_FACE_ENA(x) (((x) >> 8) & 0x1) 838 #define C_0286D0_FRONT_FACE_ENA 0xFFFFFEFF 839 #define S_0286D0_FRONT_FACE_CHAN(x) (((x) & 0x3) << 9) 840 #define G_0286D0_FRONT_FACE_CHAN(x) (((x) >> 9) & 0x3) 841 #define C_0286D0_FRONT_FACE_CHAN 0xFFFFF9FF 842 #define S_0286D0_FRONT_FACE_ALL_BITS(x) (((x) & 0x1) << 11) 843 #define G_0286D0_FRONT_FACE_ALL_BITS(x) (((x) >> 11) & 0x1) 844 #define C_0286D0_FRONT_FACE_ALL_BITS 0xFFFFF7FF 845 #define S_0286D0_FRONT_FACE_ADDR(x) (((x) & 0x1F) << 12) 846 #define G_0286D0_FRONT_FACE_ADDR(x) (((x) >> 12) & 0x1F) 847 #define C_0286D0_FRONT_FACE_ADDR 0xFFFE0FFF 848 #define S_0286D0_FOG_ADDR(x) (((x) & 0x7F) << 17) 849 #define G_0286D0_FOG_ADDR(x) (((x) >> 17) & 0x7F) 850 #define C_0286D0_FOG_ADDR 0xFF01FFFF 851 #define S_0286D0_FIXED_PT_POSITION_ENA(x) (((x) & 0x1) << 24) 852 #define G_0286D0_FIXED_PT_POSITION_ENA(x) (((x) >> 24) & 0x1) 853 #define C_0286D0_FIXED_PT_POSITION_ENA 0xFEFFFFFF 854 #define S_0286D0_FIXED_PT_POSITION_ADDR(x) (((x) & 0x1F) << 25) 855 #define G_0286D0_FIXED_PT_POSITION_ADDR(x) (((x) >> 25) & 0x1F) 856 #define C_0286D0_FIXED_PT_POSITION_ADDR 0xC1FFFFFF 857 #define R_0286C4_SPI_VS_OUT_CONFIG 0x0286C4 858 #define S_0286C4_VS_PER_COMPONENT(x) (((x) & 0x1) << 0) 859 #define G_0286C4_VS_PER_COMPONENT(x) (((x) >> 0) & 0x1) 860 #define C_0286C4_VS_PER_COMPONENT 0xFFFFFFFE 861 #define S_0286C4_VS_EXPORT_COUNT(x) (((x) & 0x1F) << 1) 862 #define G_0286C4_VS_EXPORT_COUNT(x) (((x) >> 1) & 0x1F) 863 #define C_0286C4_VS_EXPORT_COUNT 0xFFFFFFC1 864 #define S_0286C4_VS_EXPORTS_FOG(x) (((x) & 0x1) << 8) 865 #define G_0286C4_VS_EXPORTS_FOG(x) (((x) >> 8) & 0x1) 866 #define C_0286C4_VS_EXPORTS_FOG 0xFFFFFEFF 867 #define S_0286C4_VS_OUT_FOG_VEC_ADDR(x) (((x) & 0x1F) << 9) 868 #define G_0286C4_VS_OUT_FOG_VEC_ADDR(x) (((x) >> 9) & 0x1F) 869 #define C_0286C4_VS_OUT_FOG_VEC_ADDR 0xFFFFC1FF 870 871 #define R_0286E0_SPI_BARYC_CNTL 0x0286E0 872 #define S_0286E0_PERSP_CENTER_ENA(x) (((x) & 0x3) << 0) 873 #define G_0286E0_PERSP_CENTER_ENA(x) (((x) >> 0) & 0x3) 874 #define C_0286E0_PERSP_CENTER_ENA 0xFFFFFFFC 875 #define S_0286E0_PERSP_CENTROID_ENA(x) (((x) & 0x3) << 4) 876 #define G_0286E0_PERSP_CENTROID_ENA(x) (((x) >> 4) & 0x3) 877 #define C_0286E0_PERSP_CENTROID_ENA 0xFFFFFFCF 878 #define S_0286E0_PERSP_SAMPLE_ENA(x) (((x) & 0x3) << 8) 879 #define G_0286E0_PERSP_SAMPLE_ENA(x) (((x) >> 8) & 0x3) 880 #define C_0286E0_PERSP_SAMPLE_ENA 0xFFFFFCFF 881 #define S_0286E0_PERSP_PULL_MODEL_ENA(x) (((x) & 0x3) << 12) 882 #define G_0286E0_PERSP_PULL_MODEL_ENA(x) (((x) >> 12) & 0x3) 883 #define C_0286E0_PERSP_PULL_MODEL_ENA 0xFFFFCFFF 884 #define S_0286E0_LINEAR_CENTER_ENA(x) (((x) & 0x3) << 16) 885 #define G_0286E0_LINEAR_CENTER_ENA(x) (((x) >> 16) & 0x3) 886 #define C_0286E0_LINEAR_CENTER_ENA 0xFFFCFFFF 887 #define S_0286E0_LINEAR_CENTROID_ENA(x) (((x) & 0x3) << 20) 888 #define G_0286E0_LINEAR_CENTROID_ENA(x) (((x) >> 20) & 0x3) 889 #define C_0286E0_LINEAR_CENTROID_ENA 0xFFCFFFFF 890 #define S_0286E0_LINEAR_SAMPLE_ENA(x) (((x) & 0x3) << 24) 891 #define G_0286E0_LINEAR_SAMPLE_ENA(x) (((x) >> 24) & 0x3) 892 #define C_0286E0_LINEAR_SAMPLE_ENA 0xFCFFFFFF 893 894 895 /* new - diff */ 896 #define R_028250_PA_SC_VPORT_SCISSOR_0_TL 0x028250 897 #define S_028250_TL_X(x) (((x) & 0x7FFF) << 0) 898 #define G_028250_TL_X(x) (((x) >> 0) & 0x7FFF) 899 #define C_028250_TL_X 0xFFFF8000 900 #define S_028250_TL_Y(x) (((x) & 0x7FFF) << 16) 901 #define G_028250_TL_Y(x) (((x) >> 16) & 0x7FFF) 902 #define C_028250_TL_Y 0x8000FFFF 903 #define S_028250_WINDOW_OFFSET_DISABLE(x) (((x) & 0x1) << 31) 904 #define G_028250_WINDOW_OFFSET_DISABLE(x) (((x) >> 31) & 0x1) 905 #define C_028250_WINDOW_OFFSET_DISABLE 0x7FFFFFFF 906 #define R_028254_PA_SC_VPORT_SCISSOR_0_BR 0x028254 907 #define S_028254_BR_X(x) (((x) & 0x7FFF) << 0) 908 #define G_028254_BR_X(x) (((x) >> 0) & 0x7FFF) 909 #define C_028254_BR_X 0xFFFF8000 910 #define S_028254_BR_Y(x) (((x) & 0x7FFF) << 16) 911 #define G_028254_BR_Y(x) (((x) >> 16) & 0x7FFF) 912 #define C_028254_BR_Y 0x8000FFFF 913 /* diff */ 914 #define R_028240_PA_SC_GENERIC_SCISSOR_TL 0x028240 915 #define S_028240_TL_X(x) (((x) & 0x7FFF) << 0) 916 #define G_028240_TL_X(x) (((x) >> 0) & 0x7FFF) 917 #define C_028240_TL_X 0xFFFF8000 918 #define S_028240_TL_Y(x) (((x) & 0x7FFF) << 16) 919 #define G_028240_TL_Y(x) (((x) >> 16) & 0x7FFF) 920 #define C_028240_TL_Y 0x8000FFFF 921 #define S_028240_WINDOW_OFFSET_DISABLE(x) (((x) & 0x1) << 31) 922 #define G_028240_WINDOW_OFFSET_DISABLE(x) (((x) >> 31) & 0x1) 923 #define C_028240_WINDOW_OFFSET_DISABLE 0x7FFFFFFF 924 #define R_028244_PA_SC_GENERIC_SCISSOR_BR 0x028244 925 #define S_028244_BR_X(x) (((x) & 0x7FFF) << 0) 926 #define G_028244_BR_X(x) (((x) >> 0) & 0x7FFF) 927 #define C_028244_BR_X 0xFFFF8000 928 #define S_028244_BR_Y(x) (((x) & 0x7FFF) << 16) 929 #define G_028244_BR_Y(x) (((x) >> 16) & 0x7FFF) 930 #define C_028244_BR_Y 0x8000FFFF 931 /* diff */ 932 #define R_028030_PA_SC_SCREEN_SCISSOR_TL 0x028030 933 #define S_028030_TL_X(x) (((x) & 0xFFFF) << 0) 934 #define G_028030_TL_X(x) (((x) >> 0) & 0xFFFF) 935 #define C_028030_TL_X 0xFFFF0000 936 #define S_028030_TL_Y(x) (((x) & 0xFFFF) << 16) 937 #define G_028030_TL_Y(x) (((x) >> 16) & 0xFFFF) 938 #define C_028030_TL_Y 0x0000FFFF 939 #define R_028034_PA_SC_SCREEN_SCISSOR_BR 0x028034 940 #define S_028034_BR_X(x) (((x) & 0xFFFF) << 0) 941 #define G_028034_BR_X(x) (((x) >> 0) & 0xFFFF) 942 #define C_028034_BR_X 0xFFFF0000 943 #define S_028034_BR_Y(x) (((x) & 0xFFFF) << 16) 944 #define G_028034_BR_Y(x) (((x) >> 16) & 0xFFFF) 945 #define C_028034_BR_Y 0x0000FFFF 946 /* diff */ 947 #define R_028204_PA_SC_WINDOW_SCISSOR_TL 0x028204 948 #define S_028204_TL_X(x) (((x) & 0x7FFF) << 0) 949 #define G_028204_TL_X(x) (((x) >> 0) & 0x7FFF) 950 #define C_028204_TL_X 0xFFFF8000 951 #define S_028204_TL_Y(x) (((x) & 0x7FFF) << 16) 952 #define G_028204_TL_Y(x) (((x) >> 16) & 0x7FFF) 953 #define C_028204_TL_Y 0x8000FFFF 954 #define S_028204_WINDOW_OFFSET_DISABLE(x) (((x) & 0x1) << 31) 955 #define G_028204_WINDOW_OFFSET_DISABLE(x) (((x) >> 31) & 0x1) 956 #define C_028204_WINDOW_OFFSET_DISABLE 0x7FFFFFFF 957 #define R_028208_PA_SC_WINDOW_SCISSOR_BR 0x028208 958 #define S_028208_BR_X(x) (((x) & 0x7FFF) << 0) 959 #define G_028208_BR_X(x) (((x) >> 0) & 0x7FFF) 960 #define C_028208_BR_X 0xFFFF8000 961 #define S_028208_BR_Y(x) (((x) & 0x7FFF) << 16) 962 #define G_028208_BR_Y(x) (((x) >> 16) & 0x7FFF) 963 #define C_028208_BR_Y 0x8000FFFF 964 965 #define R_0287F0_VGT_DRAW_INITIATOR 0x0287F0 966 #define S_0287F0_SOURCE_SELECT(x) (((x) & 0x3) << 0) 967 #define G_0287F0_SOURCE_SELECT(x) (((x) >> 0) & 0x3) 968 #define C_0287F0_SOURCE_SELECT 0xFFFFFFFC 969 #define S_0287F0_MAJOR_MODE(x) (((x) & 0x3) << 2) 970 #define G_0287F0_MAJOR_MODE(x) (((x) >> 2) & 0x3) 971 #define C_0287F0_MAJOR_MODE 0xFFFFFFF3 972 #define S_0287F0_SPRITE_EN(x) (((x) & 0x1) << 4) 973 #define G_0287F0_SPRITE_EN(x) (((x) >> 4) & 0x1) 974 #define C_0287F0_SPRITE_EN 0xFFFFFFEF 975 #define S_0287F0_NOT_EOP(x) (((x) & 0x1) << 5) 976 #define G_0287F0_NOT_EOP(x) (((x) >> 5) & 0x1) 977 #define C_0287F0_NOT_EOP 0xFFFFFFDF 978 #define S_0287F0_USE_OPAQUE(x) (((x) & 0x1) << 6) 979 #define G_0287F0_USE_OPAQUE(x) (((x) >> 6) & 0x1) 980 #define C_0287F0_USE_OPAQUE 0xFFFFFFBF 981 982 #define R_030000_SQ_TEX_RESOURCE_WORD0_0 0x030000 983 #define S_030000_DIM(x) (((x) & 0x7) << 0) 984 #define G_030000_DIM(x) (((x) >> 0) & 0x7) 985 #define C_030000_DIM 0xFFFFFFF8 986 #define V_030000_SQ_TEX_DIM_1D 0x00000000 987 #define V_030000_SQ_TEX_DIM_2D 0x00000001 988 #define V_030000_SQ_TEX_DIM_3D 0x00000002 989 #define V_030000_SQ_TEX_DIM_CUBEMAP 0x00000003 990 #define V_030000_SQ_TEX_DIM_1D_ARRAY 0x00000004 991 #define V_030000_SQ_TEX_DIM_2D_ARRAY 0x00000005 992 #define V_030000_SQ_TEX_DIM_2D_MSAA 0x00000006 993 #define V_030000_SQ_TEX_DIM_2D_ARRAY_MSAA 0x00000007 994 #define S_030000_NON_DISP_TILING_ORDER(x) (((x) & 0x1) << 5) 995 #define G_030000_NON_DISP_TILING_ORDER(x) (((x) >> 5) & 0x1) 996 #define C_030000_NON_DISP_TILING_ORDER 0xFFFFFFDF 997 #define CM_S_030000_NON_DISP_TILING_ORDER(x) (((x) & 0x3) << 4) 998 #define CM_G_030000_NON_DISP_TILING_ORDER(x) (((x) >> 4) & 0x3) 999 #define CM_C_030000_NON_DISP_TILING_ORDER 0xFFFFFFCF 1000 #define S_030000_PITCH(x) (((x) & 0xFFF) << 6) 1001 #define G_030000_PITCH(x) (((x) >> 6) & 0xFFF) 1002 #define C_030000_PITCH 0xFFFC003F 1003 #define S_030000_TEX_WIDTH(x) (((x) & 0x3FFF) << 18) 1004 #define G_030000_TEX_WIDTH(x) (((x) >> 18) & 0x3FFF) 1005 #define C_030000_TEX_WIDTH 0x0003FFFF 1006 #define R_030004_SQ_TEX_RESOURCE_WORD1_0 0x030004 1007 #define S_030004_TEX_HEIGHT(x) (((x) & 0x3FFF) << 0) 1008 #define G_030004_TEX_HEIGHT(x) (((x) >> 0) & 0x3FFF) 1009 #define C_030004_TEX_HEIGHT 0xFFFFC000 1010 #define S_030004_TEX_DEPTH(x) (((x) & 0x1FFF) << 14) 1011 #define G_030004_TEX_DEPTH(x) (((x) >> 14) & 0x1FFF) 1012 #define C_030004_TEX_DEPTH 0xF8003FFF 1013 #define S_030004_ARRAY_MODE(x) (((x) & 0xF) << 28) 1014 #define G_030004_ARRAY_MODE(x) (((x) >> 28) & 0xF) 1015 #define C_030004_ARRAY_MODE 0x0FFFFFFF 1016 #define R_030008_SQ_TEX_RESOURCE_WORD2_0 0x030008 1017 #define S_030008_BASE_ADDRESS(x) (((x) & 0xFFFFFFFF) << 0) 1018 #define G_030008_BASE_ADDRESS(x) (((x) >> 0) & 0xFFFFFFFF) 1019 #define C_030008_BASE_ADDRESS 0x00000000 1020 #define R_03000C_SQ_TEX_RESOURCE_WORD3_0 0x03000C 1021 #define S_03000C_MIP_ADDRESS(x) (((x) & 0xFFFFFFFF) << 0) 1022 #define G_03000C_MIP_ADDRESS(x) (((x) >> 0) & 0xFFFFFFFF) 1023 #define C_03000C_MIP_ADDRESS 0x00000000 1024 #define R_030010_SQ_TEX_RESOURCE_WORD4_0 0x030010 1025 #define S_030010_FORMAT_COMP_X(x) (((x) & 0x3) << 0) 1026 #define G_030010_FORMAT_COMP_X(x) (((x) >> 0) & 0x3) 1027 #define C_030010_FORMAT_COMP_X 0xFFFFFFFC 1028 #define V_030010_SQ_FORMAT_COMP_UNSIGNED 0x00000000 1029 #define V_030010_SQ_FORMAT_COMP_SIGNED 0x00000001 1030 #define V_030010_SQ_FORMAT_COMP_UNSIGNED_BIASED 0x00000002 1031 #define S_030010_FORMAT_COMP_Y(x) (((x) & 0x3) << 2) 1032 #define G_030010_FORMAT_COMP_Y(x) (((x) >> 2) & 0x3) 1033 #define C_030010_FORMAT_COMP_Y 0xFFFFFFF3 1034 #define S_030010_FORMAT_COMP_Z(x) (((x) & 0x3) << 4) 1035 #define G_030010_FORMAT_COMP_Z(x) (((x) >> 4) & 0x3) 1036 #define C_030010_FORMAT_COMP_Z 0xFFFFFFCF 1037 #define S_030010_FORMAT_COMP_W(x) (((x) & 0x3) << 6) 1038 #define G_030010_FORMAT_COMP_W(x) (((x) >> 6) & 0x3) 1039 #define C_030010_FORMAT_COMP_W 0xFFFFFF3F 1040 #define S_030010_NUM_FORMAT_ALL(x) (((x) & 0x3) << 8) 1041 #define G_030010_NUM_FORMAT_ALL(x) (((x) >> 8) & 0x3) 1042 #define C_030010_NUM_FORMAT_ALL 0xFFFFFCFF 1043 #define V_030010_SQ_NUM_FORMAT_NORM 0x00000000 1044 #define V_030010_SQ_NUM_FORMAT_INT 0x00000001 1045 #define V_030010_SQ_NUM_FORMAT_SCALED 0x00000002 1046 #define S_030010_SRF_MODE_ALL(x) (((x) & 0x1) << 10) 1047 #define G_030010_SRF_MODE_ALL(x) (((x) >> 10) & 0x1) 1048 #define C_030010_SRF_MODE_ALL 0xFFFFFBFF 1049 #define V_030010_SRF_MODE_ZERO_CLAMP_MINUS_ONE 0x00000000 1050 #define V_030010_SRF_MODE_NO_ZERO 0x00000001 1051 #define S_030010_FORCE_DEGAMMA(x) (((x) & 0x1) << 11) 1052 #define G_030010_FORCE_DEGAMMA(x) (((x) >> 11) & 0x1) 1053 #define C_030010_FORCE_DEGAMMA 0xFFFFF7FF 1054 #define S_030010_ENDIAN_SWAP(x) (((x) & 0x3) << 12) 1055 #define G_030010_ENDIAN_SWAP(x) (((x) >> 12) & 0x3) 1056 #define C_030010_ENDIAN_SWAP 0xFFFFCFFF 1057 #define S_030010_LOG2_NUM_FRAGMENTS(x) (((x) & 0x3) << 14) /* cayman only */ 1058 #define S_030010_DST_SEL_X(x) (((x) & 0x7) << 16) 1059 #define G_030010_DST_SEL_X(x) (((x) >> 16) & 0x7) 1060 #define C_030010_DST_SEL_X 0xFFF8FFFF 1061 #define V_030010_SQ_SEL_X 0x00000000 1062 #define V_030010_SQ_SEL_Y 0x00000001 1063 #define V_030010_SQ_SEL_Z 0x00000002 1064 #define V_030010_SQ_SEL_W 0x00000003 1065 #define V_030010_SQ_SEL_0 0x00000004 1066 #define V_030010_SQ_SEL_1 0x00000005 1067 #define S_030010_DST_SEL_Y(x) (((x) & 0x7) << 19) 1068 #define G_030010_DST_SEL_Y(x) (((x) >> 19) & 0x7) 1069 #define C_030010_DST_SEL_Y 0xFFC7FFFF 1070 #define S_030010_DST_SEL_Z(x) (((x) & 0x7) << 22) 1071 #define G_030010_DST_SEL_Z(x) (((x) >> 22) & 0x7) 1072 #define C_030010_DST_SEL_Z 0xFE3FFFFF 1073 #define S_030010_DST_SEL_W(x) (((x) & 0x7) << 25) 1074 #define G_030010_DST_SEL_W(x) (((x) >> 25) & 0x7) 1075 #define C_030010_DST_SEL_W 0xF1FFFFFF 1076 #define S_030010_BASE_LEVEL(x) (((x) & 0xF) << 28) 1077 #define G_030010_BASE_LEVEL(x) (((x) >> 28) & 0xF) 1078 #define C_030010_BASE_LEVEL 0x0FFFFFFF 1079 #define R_030014_SQ_TEX_RESOURCE_WORD5_0 0x030014 1080 #define S_030014_LAST_LEVEL(x) (((x) & 0xF) << 0) 1081 #define G_030014_LAST_LEVEL(x) (((x) >> 0) & 0xF) 1082 #define C_030014_LAST_LEVEL 0xFFFFFFF0 1083 #define S_030014_BASE_ARRAY(x) (((x) & 0x1FFF) << 4) 1084 #define G_030014_BASE_ARRAY(x) (((x) >> 4) & 0x1FFF) 1085 #define C_030014_BASE_ARRAY 0xFFFE000F 1086 #define S_030014_LAST_ARRAY(x) (((x) & 0x1FFF) << 17) 1087 #define G_030014_LAST_ARRAY(x) (((x) >> 17) & 0x1FFF) 1088 #define C_030014_LAST_ARRAY 0xC001FFFF 1089 #define R_030018_SQ_TEX_RESOURCE_WORD6_0 0x030018 1090 #define S_030018_MAX_ANISO(x) (((x) & 0x7) << 0) 1091 #define G_030018_MAX_ANISO(x) (((x) >> 0) & 0x7) 1092 #define C_030018_MAX_ANISO 0xFFFFFFF8 1093 #define S_030018_PERF_MODULATION(x) (((x) & 0x7) << 3) 1094 #define G_030018_PERF_MODULATION(x) (((x) >> 3) & 0x7) 1095 #define C_030018_PERF_MODULATION 0xFFFFFFC7 1096 #define S_030018_INTERLACED(x) (((x) & 0x1) << 6) 1097 #define G_030018_INTERLACED(x) (((x) >> 6) & 0x1) 1098 #define C_030018_INTERLACED 0xFFFFFFBF 1099 #define S_030018_TILE_SPLIT(x) (((x) & 0x7) << 29) 1100 #define R_03001C_SQ_TEX_RESOURCE_WORD7_0 0x03001C 1101 #define S_03001C_MACRO_TILE_ASPECT(x) (((x) & 0x3) << 6) 1102 #define S_03001C_BANK_WIDTH(x) (((x) & 0x3) << 8) 1103 #define S_03001C_BANK_HEIGHT(x) (((x) & 0x3) << 10) 1104 #define S_03001C_NUM_BANKS(x) (((x) & 0x3) << 16) 1105 #define S_03001C_TYPE(x) (((x) & 0x3) << 30) 1106 #define G_03001C_TYPE(x) (((x) >> 30) & 0x3) 1107 #define C_03001C_TYPE 0x3FFFFFFF 1108 #define V_03001C_SQ_TEX_VTX_INVALID_TEXTURE 0x00000000 1109 #define V_03001C_SQ_TEX_VTX_INVALID_BUFFER 0x00000001 1110 #define V_03001C_SQ_TEX_VTX_VALID_TEXTURE 0x00000002 1111 #define V_03001C_SQ_TEX_VTX_VALID_BUFFER 0x00000003 1112 #define S_03001C_DATA_FORMAT(x) (((x) & 0x3F) << 0) 1113 #define G_03001C_DATA_FORMAT(x) (((x) >> 0) & 0x3F) 1114 #define C_03001C_DATA_FORMAT 0xFFFFFFC0 1115 1116 #define R_030008_SQ_VTX_CONSTANT_WORD2_0 0x030008 1117 #define S_030008_BASE_ADDRESS_HI(x) (((x) & 0xFF) << 0) 1118 #define G_030008_BASE_ADDRESS_HI(x) (((x) >> 0) & 0xFF) 1119 #define C_030008_BASE_ADDRESS_HI 0xFFFFFF00 1120 #define S_030008_STRIDE(x) (((x) & 0x7FF) << 8) 1121 #define G_030008_STRIDE(x) (((x) >> 8) & 0x7FF) 1122 #define C_030008_STRIDE 0xFFF800FF 1123 #define S_030008_CLAMP_X(x) (((x) & 0x1) << 19) 1124 #define G_030008_CLAMP_X(x) (((x) >> 19) & 0x1) 1125 #define C_030008_CLAMP_X 0xFFF7FFFF 1126 #define S_030008_DATA_FORMAT(x) (((x) & 0x3F) << 20) 1127 #define G_030008_DATA_FORMAT(x) (((x) >> 20) & 0x3F) 1128 #define C_030008_DATA_FORMAT 0xFC0FFFFF 1129 #define S_030008_NUM_FORMAT_ALL(x) (((x) & 0x3) << 26) 1130 #define G_030008_NUM_FORMAT_ALL(x) (((x) >> 26) & 0x3) 1131 #define C_030008_NUM_FORMAT_ALL 0xF3FFFFFF 1132 #define V_030008_SQ_NUM_FORMAT_NORM 0x00000000 1133 #define V_030008_SQ_NUM_FORMAT_INT 0x00000001 1134 #define V_030008_SQ_NUM_FORMAT_SCALED 0x00000002 1135 #define S_030008_FORMAT_COMP_ALL(x) (((x) & 0x1) << 28) 1136 #define G_030008_FORMAT_COMP_ALL(x) (((x) >> 28) & 0x1) 1137 #define C_030008_FORMAT_COMP_ALL 0xEFFFFFFF 1138 #define S_030008_SRF_MODE_ALL(x) (((x) & 0x1) << 29) 1139 #define G_030008_SRF_MODE_ALL(x) (((x) >> 29) & 0x1) 1140 #define C_030008_SRF_MODE_ALL 0xDFFFFFFF 1141 #define S_030008_ENDIAN_SWAP(x) (((x) & 0x3) << 30) 1142 #define G_030008_ENDIAN_SWAP(x) (((x) >> 30) & 0x3) 1143 #define C_030008_ENDIAN_SWAP 0x3FFFFFFF 1144 1145 #define R_03000C_SQ_VTX_CONSTANT_WORD3_0 0x03000C 1146 #define S_03000C_DST_SEL_X(x) (((x) & 0x7) << 3) 1147 #define G_03000C_DST_SEL_X(x) (((x) >> 3) & 0x7) 1148 #define V_03000C_SQ_SEL_X 0x00000000 1149 #define V_03000C_SQ_SEL_Y 0x00000001 1150 #define V_03000C_SQ_SEL_Z 0x00000002 1151 #define V_03000C_SQ_SEL_W 0x00000003 1152 #define V_03000C_SQ_SEL_0 0x00000004 1153 #define V_03000C_SQ_SEL_1 0x00000005 1154 #define S_03000C_DST_SEL_Y(x) (((x) & 0x7) << 6) 1155 #define G_03000C_DST_SEL_Y(x) (((x) >> 6) & 0x7) 1156 #define S_03000C_DST_SEL_Z(x) (((x) & 0x7) << 9) 1157 #define G_03000C_DST_SEL_Z(x) (((x) >> 9) & 0x7) 1158 #define S_03000C_DST_SEL_W(x) (((x) & 0x7) << 12) 1159 #define G_03000C_DST_SEL_W(x) (((x) >> 12) & 0x7) 1160 1161 #define R_00A400_TD_PS_SAMPLER0_BORDER_INDEX 0x00A400 1162 #define R_00A404_TD_PS_SAMPLER0_BORDER_RED 0x00A404 1163 #define R_00A408_TD_PS_SAMPLER0_BORDER_GREEN 0x00A408 1164 #define R_00A40C_TD_PS_SAMPLER0_BORDER_BLUE 0x00A40C 1165 #define R_00A410_TD_PS_SAMPLER0_BORDER_ALPHA 0x00A410 1166 #define R_00A414_TD_VS_SAMPLER0_BORDER_INDEX 0x00A414 1167 #define R_00A418_TD_VS_SAMPLER0_BORDER_RED 0x00A418 1168 #define R_00A41C_TD_VS_SAMPLER0_BORDER_GREEN 0x00A41C 1169 #define R_00A420_TD_VS_SAMPLER0_BORDER_BLUE 0x00A420 1170 #define R_00A424_TD_VS_SAMPLER0_BORDER_ALPHA 0x00A424 1171 #define R_00A428_TD_GS_SAMPLER0_BORDER_INDEX 0x00A428 1172 #define R_00A42C_TD_GS_SAMPLER0_BORDER_RED 0x00A42C 1173 #define R_00A430_TD_GS_SAMPLER0_BORDER_GREEN 0x00A430 1174 #define R_00A434_TD_GS_SAMPLER0_BORDER_BLUE 0x00A434 1175 #define R_00A438_TD_GS_SAMPLER0_BORDER_ALPHA 0x00A438 1176 1177 #define R_03C000_SQ_TEX_SAMPLER_WORD0_0 0x03C000 1178 #define S_03C000_CLAMP_X(x) (((x) & 0x7) << 0) 1179 #define G_03C000_CLAMP_X(x) (((x) >> 0) & 0x7) 1180 #define C_03C000_CLAMP_X 0xFFFFFFF8 1181 #define V_03C000_SQ_TEX_WRAP 0x00000000 1182 #define V_03C000_SQ_TEX_MIRROR 0x00000001 1183 #define V_03C000_SQ_TEX_CLAMP_LAST_TEXEL 0x00000002 1184 #define V_03C000_SQ_TEX_MIRROR_ONCE_LAST_TEXEL 0x00000003 1185 #define V_03C000_SQ_TEX_CLAMP_HALF_BORDER 0x00000004 1186 #define V_03C000_SQ_TEX_MIRROR_ONCE_HALF_BORDER 0x00000005 1187 #define V_03C000_SQ_TEX_CLAMP_BORDER 0x00000006 1188 #define V_03C000_SQ_TEX_MIRROR_ONCE_BORDER 0x00000007 1189 #define S_03C000_CLAMP_Y(x) (((x) & 0x7) << 3) 1190 #define G_03C000_CLAMP_Y(x) (((x) >> 3) & 0x7) 1191 #define C_03C000_CLAMP_Y 0xFFFFFFC7 1192 #define S_03C000_CLAMP_Z(x) (((x) & 0x7) << 6) 1193 #define G_03C000_CLAMP_Z(x) (((x) >> 6) & 0x7) 1194 #define C_03C000_CLAMP_Z 0xFFFFFE3F 1195 #define S_03C000_XY_MAG_FILTER(x) (((x) & 0x3) << 9) 1196 #define G_03C000_XY_MAG_FILTER(x) (((x) >> 9) & 0x3) 1197 #define C_03C000_XY_MAG_FILTER 0xFFFFF9FF 1198 #define V_03C000_SQ_TEX_XY_FILTER_POINT 0x00000000 1199 #define V_03C000_SQ_TEX_XY_FILTER_BILINEAR 0x00000001 1200 #define S_03C000_XY_MIN_FILTER(x) (((x) & 0x3) << 11) 1201 #define G_03C000_XY_MIN_FILTER(x) (((x) >> 11) & 0x3) 1202 #define C_03C000_XY_MIN_FILTER 0xFFFFE7FF 1203 #define S_03C000_Z_FILTER(x) (((x) & 0x3) << 13) 1204 #define G_03C000_Z_FILTER(x) (((x) >> 13) & 0x3) 1205 #define C_03C000_Z_FILTER 0xFFFF9FFF 1206 #define V_03C000_SQ_TEX_Z_FILTER_NONE 0x00000000 1207 #define V_03C000_SQ_TEX_Z_FILTER_POINT 0x00000001 1208 #define V_03C000_SQ_TEX_Z_FILTER_LINEAR 0x00000002 1209 #define S_03C000_MIP_FILTER(x) (((x) & 0x3) << 15) 1210 #define G_03C000_MIP_FILTER(x) (((x) >> 15) & 0x3) 1211 #define C_03C000_MIP_FILTER 0xFFFE7FFF 1212 #define S_03C000_MAX_ANISO(x) (((x) & 0x7) << 17) 1213 #define G_03C000_MAX_ANISO(x) (((x) >> 17) & 0x7) 1214 #define C_03C000_MAX_ANISO 0xFFF1FFFF 1215 #define S_03C000_BORDER_COLOR_TYPE(x) (((x) & 0x3) << 20) 1216 #define G_03C000_BORDER_COLOR_TYPE(x) (((x) >> 20) & 0x3) 1217 #define C_03C000_BORDER_COLOR_TYPE 0xFFCFFFFF 1218 #define V_03C000_SQ_TEX_BORDER_COLOR_TRANS_BLACK 0x00000000 1219 #define V_03C000_SQ_TEX_BORDER_COLOR_OPAQUE_BLACK 0x00000001 1220 #define V_03C000_SQ_TEX_BORDER_COLOR_OPAQUE_WHITE 0x00000002 1221 #define V_03C000_SQ_TEX_BORDER_COLOR_REGISTER 0x00000003 1222 #define S_03C000_DEPTH_COMPARE_FUNCTION(x) (((x) & 0x7) << 22) 1223 #define G_03C000_DEPTH_COMPARE_FUNCTION(x) (((x) >> 22) & 0x7) 1224 #define C_03C000_DEPTH_COMPARE_FUNCTION 0xFE3FFFFF 1225 #define V_03C000_SQ_TEX_DEPTH_COMPARE_NEVER 0x00000000 1226 #define V_03C000_SQ_TEX_DEPTH_COMPARE_LESS 0x00000001 1227 #define V_03C000_SQ_TEX_DEPTH_COMPARE_EQUAL 0x00000002 1228 #define V_03C000_SQ_TEX_DEPTH_COMPARE_LESSEQUAL 0x00000003 1229 #define V_03C000_SQ_TEX_DEPTH_COMPARE_GREATER 0x00000004 1230 #define V_03C000_SQ_TEX_DEPTH_COMPARE_NOTEQUAL 0x00000005 1231 #define V_03C000_SQ_TEX_DEPTH_COMPARE_GREATEREQUAL 0x00000006 1232 #define V_03C000_SQ_TEX_DEPTH_COMPARE_ALWAYS 0x00000007 1233 #define S_03C000_CHROMA_KEY(x) (((x) & 0x3) << 25) 1234 #define G_03C000_CHROMA_KEY(x) (((x) >> 25) & 0x3) 1235 #define C_03C000_CHROMA_KEY 0xF9FFFFFF 1236 #define V_03C000_SQ_TEX_CHROMA_KEY_DISABLE 0x00000000 1237 #define V_03C000_SQ_TEX_CHROMA_KEY_KILL 0x00000001 1238 #define V_03C000_SQ_TEX_CHROMA_KEY_BLEND 0x00000002 1239 1240 #define R_03C004_SQ_TEX_SAMPLER_WORD1_0 0x03C004 1241 #define S_03C004_MIN_LOD(x) (((x) & 0xFFF) << 0) 1242 #define G_03C004_MIN_LOD(x) (((x) >> 0) & 0xFFF) 1243 #define C_03C004_MIN_LOD 0xFFFFF000 1244 #define S_03C004_MAX_LOD(x) (((x) & 0xFFF) << 12) 1245 #define G_03C004_MAX_LOD(x) (((x) >> 12) & 0xFFF) 1246 #define C_03C004_MAX_LOD 0xFF000FFF 1247 1248 #define S_03C004_PERF_MIP(x) (((x) & 0xF) << 24) 1249 #define G_03C004_PERF_MIP(x) (((x) >> 24) & 0xF) 1250 #define C_03C004_PERF_MIP 0xF0FFFFFF 1251 #define S_03C004_PERF_Z(x) (((x) & 0xF) << 28) 1252 #define G_03C004_PERF_Z(x) (((x) >> 24) & 0xF) 1253 #define C_03C004_PERF_Z 0x0FFFFFFF 1254 1255 #define R_03C008_SQ_TEX_SAMPLER_WORD2_0 0x03C008 1256 #define S_03C008_LOD_BIAS(x) (((x) & 0x3FFF) << 0) 1257 #define G_03C008_LOD_BIAS(x) (((x) >> 0) & 0x3FFF) 1258 #define C_03C008_LOD_BIAS 0xFFFFC000 1259 #define S_03C008_LOD_BIAS_SEC(x) (((x) & 0x3F) << 14) 1260 #define G_03C008_LOD_BIAS_SEC(x) (((x) >> 14) & 0x3F) 1261 #define C_03C008_LOD_BIAS_SEC 0xFFF03FFF 1262 #define S_03C008_MC_COORD_TRUNCATE(x) (((x) & 0x1) << 20) 1263 #define G_03C008_MC_COORD_TRUNCATE(x) (((x) >> 20) & 0x1) 1264 #define C_03C008_MC_COORD_TRUNCATE 0xFFEFFFFF 1265 #define S_03C008_FORCE_DEGAMMA(x) (((x) & 0x1) << 21) 1266 #define G_03C008_FORCE_DEGAMMA(x) (((x) >> 21) & 0x1) 1267 #define C_03C008_FORCE_DEGAMMA 0xFFDFFFFF 1268 #define S_03C008_ANISO_BIAS(x) (((x) & 0x3f) << 22) 1269 #define G_03C008_ANISO_BIAS(x) (((x) >> 22) & 0x3f) 1270 #define C_03C008_ANISO_BIAS (~(0x3f << 22)) 1271 #define S_03C008_TRUNCATE_COORD(x) (((x) & 0x1) << 28) 1272 #define G_03C008_TRUNCATE_COORD(x) (((x) >> 28) & 0x1) 1273 #define C_03C008_TRUNCATE_COORD (~(1 << 28)) 1274 #define S_03C008_DISABLE_CUBE_WRAP(x) (((x) & 0x1) << 29) 1275 #define G_03C008_DISABLE_CUBE_WRAP(x) (((x) >> 29) & 0x1) 1276 #define C_03C008_DISABLE_CUBE_WRAP (~(1 << 29)) 1277 #define S_03C008_TYPE(x) (((x) & 0x1) << 31) 1278 #define G_03C008_TYPE(x) (((x) >> 31) & 0x1) 1279 #define C_03C008_TYPE 0x7FFFFFFF 1280 1281 #define R_008958_VGT_PRIMITIVE_TYPE 0x008958 1282 #define S_008958_PRIM_TYPE(x) (((x) & 0x3F) << 0) 1283 #define G_008958_PRIM_TYPE(x) (((x) >> 0) & 0x3F) 1284 #define C_008958_PRIM_TYPE 0xFFFFFFC0 1285 #define V_008958_DI_PT_NONE 0x00000000 1286 #define V_008958_DI_PT_POINTLIST 0x00000001 1287 #define V_008958_DI_PT_LINELIST 0x00000002 1288 #define V_008958_DI_PT_LINESTRIP 0x00000003 1289 #define V_008958_DI_PT_TRILIST 0x00000004 1290 #define V_008958_DI_PT_TRIFAN 0x00000005 1291 #define V_008958_DI_PT_TRISTRIP 0x00000006 1292 #define V_008958_DI_PT_UNUSED_0 0x00000007 1293 #define V_008958_DI_PT_UNUSED_1 0x00000008 1294 #define V_008958_DI_PT_UNUSED_2 0x00000009 1295 #define V_008958_DI_PT_LINELIST_ADJ 0x0000000A 1296 #define V_008958_DI_PT_LINESTRIP_ADJ 0x0000000B 1297 #define V_008958_DI_PT_TRILIST_ADJ 0x0000000C 1298 #define V_008958_DI_PT_TRISTRIP_ADJ 0x0000000D 1299 #define V_008958_DI_PT_UNUSED_3 0x0000000E 1300 #define V_008958_DI_PT_UNUSED_4 0x0000000F 1301 #define V_008958_DI_PT_TRI_WITH_WFLAGS 0x00000010 1302 #define V_008958_DI_PT_RECTLIST 0x00000011 1303 #define V_008958_DI_PT_LINELOOP 0x00000012 1304 #define V_008958_DI_PT_QUADLIST 0x00000013 1305 #define V_008958_DI_PT_QUADSTRIP 0x00000014 1306 #define V_008958_DI_PT_POLYGON 0x00000015 1307 #define V_008958_DI_PT_2D_COPY_RECT_LIST_V0 0x00000016 1308 #define V_008958_DI_PT_2D_COPY_RECT_LIST_V1 0x00000017 1309 #define V_008958_DI_PT_2D_COPY_RECT_LIST_V2 0x00000018 1310 #define V_008958_DI_PT_2D_COPY_RECT_LIST_V3 0x00000019 1311 #define V_008958_DI_PT_2D_FILL_RECT_LIST 0x0000001A 1312 #define V_008958_DI_PT_2D_LINE_STRIP 0x0000001B 1313 #define V_008958_DI_PT_2D_TRI_STRIP 0x0000001C 1314 #define R_02881C_PA_CL_VS_OUT_CNTL 0x02881C 1315 #define S_02881C_CLIP_DIST_ENA_0(x) (((x) & 0x1) << 0) 1316 #define G_02881C_CLIP_DIST_ENA_0(x) (((x) >> 0) & 0x1) 1317 #define C_02881C_CLIP_DIST_ENA_0 0xFFFFFFFE 1318 #define S_02881C_CLIP_DIST_ENA_1(x) (((x) & 0x1) << 1) 1319 #define G_02881C_CLIP_DIST_ENA_1(x) (((x) >> 1) & 0x1) 1320 #define C_02881C_CLIP_DIST_ENA_1 0xFFFFFFFD 1321 #define S_02881C_CLIP_DIST_ENA_2(x) (((x) & 0x1) << 2) 1322 #define G_02881C_CLIP_DIST_ENA_2(x) (((x) >> 2) & 0x1) 1323 #define C_02881C_CLIP_DIST_ENA_2 0xFFFFFFFB 1324 #define S_02881C_CLIP_DIST_ENA_3(x) (((x) & 0x1) << 3) 1325 #define G_02881C_CLIP_DIST_ENA_3(x) (((x) >> 3) & 0x1) 1326 #define C_02881C_CLIP_DIST_ENA_3 0xFFFFFFF7 1327 #define S_02881C_CLIP_DIST_ENA_4(x) (((x) & 0x1) << 4) 1328 #define G_02881C_CLIP_DIST_ENA_4(x) (((x) >> 4) & 0x1) 1329 #define C_02881C_CLIP_DIST_ENA_4 0xFFFFFFEF 1330 #define S_02881C_CLIP_DIST_ENA_5(x) (((x) & 0x1) << 5) 1331 #define G_02881C_CLIP_DIST_ENA_5(x) (((x) >> 5) & 0x1) 1332 #define C_02881C_CLIP_DIST_ENA_5 0xFFFFFFDF 1333 #define S_02881C_CLIP_DIST_ENA_6(x) (((x) & 0x1) << 6) 1334 #define G_02881C_CLIP_DIST_ENA_6(x) (((x) >> 6) & 0x1) 1335 #define C_02881C_CLIP_DIST_ENA_6 0xFFFFFFBF 1336 #define S_02881C_CLIP_DIST_ENA_7(x) (((x) & 0x1) << 7) 1337 #define G_02881C_CLIP_DIST_ENA_7(x) (((x) >> 7) & 0x1) 1338 #define C_02881C_CLIP_DIST_ENA_7 0xFFFFFF7F 1339 #define S_02881C_CULL_DIST_ENA_0(x) (((x) & 0x1) << 8) 1340 #define G_02881C_CULL_DIST_ENA_0(x) (((x) >> 8) & 0x1) 1341 #define C_02881C_CULL_DIST_ENA_0 0xFFFFFEFF 1342 #define S_02881C_CULL_DIST_ENA_1(x) (((x) & 0x1) << 9) 1343 #define G_02881C_CULL_DIST_ENA_1(x) (((x) >> 9) & 0x1) 1344 #define C_02881C_CULL_DIST_ENA_1 0xFFFFFDFF 1345 #define S_02881C_CULL_DIST_ENA_2(x) (((x) & 0x1) << 10) 1346 #define G_02881C_CULL_DIST_ENA_2(x) (((x) >> 10) & 0x1) 1347 #define C_02881C_CULL_DIST_ENA_2 0xFFFFFBFF 1348 #define S_02881C_CULL_DIST_ENA_3(x) (((x) & 0x1) << 11) 1349 #define G_02881C_CULL_DIST_ENA_3(x) (((x) >> 11) & 0x1) 1350 #define C_02881C_CULL_DIST_ENA_3 0xFFFFF7FF 1351 #define S_02881C_CULL_DIST_ENA_4(x) (((x) & 0x1) << 12) 1352 #define G_02881C_CULL_DIST_ENA_4(x) (((x) >> 12) & 0x1) 1353 #define C_02881C_CULL_DIST_ENA_4 0xFFFFEFFF 1354 #define S_02881C_CULL_DIST_ENA_5(x) (((x) & 0x1) << 13) 1355 #define G_02881C_CULL_DIST_ENA_5(x) (((x) >> 13) & 0x1) 1356 #define C_02881C_CULL_DIST_ENA_5 0xFFFFDFFF 1357 #define S_02881C_CULL_DIST_ENA_6(x) (((x) & 0x1) << 14) 1358 #define G_02881C_CULL_DIST_ENA_6(x) (((x) >> 14) & 0x1) 1359 #define C_02881C_CULL_DIST_ENA_6 0xFFFFBFFF 1360 #define S_02881C_CULL_DIST_ENA_7(x) (((x) & 0x1) << 15) 1361 #define G_02881C_CULL_DIST_ENA_7(x) (((x) >> 15) & 0x1) 1362 #define C_02881C_CULL_DIST_ENA_7 0xFFFF7FFF 1363 #define S_02881C_USE_VTX_POINT_SIZE(x) (((x) & 0x1) << 16) 1364 #define G_02881C_USE_VTX_POINT_SIZE(x) (((x) >> 16) & 0x1) 1365 #define C_02881C_USE_VTX_POINT_SIZE 0xFFFEFFFF 1366 #define S_02881C_USE_VTX_EDGE_FLAG(x) (((x) & 0x1) << 17) 1367 #define G_02881C_USE_VTX_EDGE_FLAG(x) (((x) >> 17) & 0x1) 1368 #define C_02881C_USE_VTX_EDGE_FLAG 0xFFFDFFFF 1369 #define S_02881C_USE_VTX_RENDER_TARGET_INDX(x) (((x) & 0x1) << 18) 1370 #define G_02881C_USE_VTX_RENDER_TARGET_INDX(x) (((x) >> 18) & 0x1) 1371 #define C_02881C_USE_VTX_RENDER_TARGET_INDX 0xFFFBFFFF 1372 #define S_02881C_USE_VTX_VIEWPORT_INDX(x) (((x) & 0x1) << 19) 1373 #define G_02881C_USE_VTX_VIEWPORT_INDX(x) (((x) >> 19) & 0x1) 1374 #define C_02881C_USE_VTX_VIEWPORT_INDX 0xFFF7FFFF 1375 #define S_02881C_USE_VTX_KILL_FLAG(x) (((x) & 0x1) << 20) 1376 #define G_02881C_USE_VTX_KILL_FLAG(x) (((x) >> 20) & 0x1) 1377 #define C_02881C_USE_VTX_KILL_FLAG 0xFFEFFFFF 1378 #define S_02881C_VS_OUT_MISC_VEC_ENA(x) (((x) & 0x1) << 21) 1379 #define G_02881C_VS_OUT_MISC_VEC_ENA(x) (((x) >> 21) & 0x1) 1380 #define C_02881C_VS_OUT_MISC_VEC_ENA 0xFFDFFFFF 1381 #define S_02881C_VS_OUT_CCDIST0_VEC_ENA(x) (((x) & 0x1) << 22) 1382 #define G_02881C_VS_OUT_CCDIST0_VEC_ENA(x) (((x) >> 22) & 0x1) 1383 #define C_02881C_VS_OUT_CCDIST0_VEC_ENA 0xFFBFFFFF 1384 #define S_02881C_VS_OUT_CCDIST1_VEC_ENA(x) (((x) & 0x1) << 23) 1385 #define G_02881C_VS_OUT_CCDIST1_VEC_ENA(x) (((x) >> 23) & 0x1) 1386 #define C_02881C_VS_OUT_CCDIST1_VEC_ENA 0xFF7FFFFF 1387 /* diff */ 1388 #define R_028860_SQ_PGM_RESOURCES_VS 0x028860 1389 #define S_028860_NUM_GPRS(x) (((x) & 0xFF) << 0) 1390 #define G_028860_NUM_GPRS(x) (((x) >> 0) & 0xFF) 1391 #define C_028860_NUM_GPRS 0xFFFFFF00 1392 #define S_028860_STACK_SIZE(x) (((x) & 0xFF) << 8) 1393 #define G_028860_STACK_SIZE(x) (((x) >> 8) & 0xFF) 1394 #define C_028860_STACK_SIZE 0xFFFF00FF 1395 #define S_028860_DX10_CLAMP(x) (((x) & 0x1) << 21) 1396 #define G_028860_DX10_CLAMP(x) (((x) >> 21) & 0x1) 1397 #define C_028860_DX10_CLAMP 0xFFDFFFFF 1398 #define S_028860_UNCACHED_FIRST_INST(x) (((x) & 0x1) << 28) 1399 #define G_028860_UNCACHED_FIRST_INST(x) (((x) >> 28) & 0x1) 1400 #define C_028860_UNCACHED_FIRST_INST 0xEFFFFFFF 1401 1402 #define R_028864_SQ_PGM_RESOURCES_2_VS 0x028864 1403 #define S_028864_SINGLE_ROUND(x) (((x) & 0x3) << 0) 1404 #define G_028864_SINGLE_ROUND(x) (((x) >> 0) & 0x3) 1405 #define C_028864_SINGLE_ROUND 0xFFFFFFFC 1406 #define V_SQ_ROUND_NEAREST_EVEN 0x00 1407 #define V_SQ_ROUND_PLUS_INFINITY 0x01 1408 #define V_SQ_ROUND_MINUS_INFINITY 0x02 1409 #define V_SQ_ROUND_TO_ZERO 0x03 1410 #define S_028864_DOUBLE_ROUND(x) (((x) & 0x3) << 2) 1411 #define G_028864_DOUBLE_ROUND(x) (((x) >> 2) & 0x3) 1412 #define C_028864_DOUBLE_ROUND 0xFFFFFFF3 1413 #define S_028864_ALLOW_SINGLE_DENORM_IN(x) (((x) & 0x1) << 4) 1414 #define G_028864_ALLOW_SINGLE_DENORM_IN(x) (((x) >> 4) & 0x1) 1415 #define C_028864_ALLOW_SINGLE_DENORM_IN 0xFFFFFFEF 1416 #define S_028864_ALLOW_SINGLE_DENORM_OUT(x) (((x) & 0x1) << 5) 1417 #define G_028864_ALLOW_SINGLE_DENORM_OUT(x) (((x) >> 5) & 0x1) 1418 #define C_028864_ALLOW_SINGLE_DENORM_OUT 0xFFFFFFDF 1419 #define S_028864_ALLOW_DOUBLE_DENORM_IN(x) (((x) & 0x1) << 6) 1420 #define G_028864_ALLOW_DOUBLE_DENORM_IN(x) (((x) >> 6) & 0x1) 1421 #define C_028864_ALLOW_DOUBLE_DENORM_IN 0xFFFFFFBF 1422 #define S_028864_ALLOW_DOUBLE_DENORM_OUT(x) (((x) & 0x1) << 7) 1423 #define G_028864_ALLOW_DOUBLE_DENORM_OUT(x) (((x) >> 7) & 0x1) 1424 #define C_028864_ALLOW_DOUBLE_DENORM_OUT 0xFFFFFF7F 1425 1426 #define R_028844_SQ_PGM_RESOURCES_PS 0x028844 1427 #define S_028844_NUM_GPRS(x) (((x) & 0xFF) << 0) 1428 #define G_028844_NUM_GPRS(x) (((x) >> 0) & 0xFF) 1429 #define C_028844_NUM_GPRS 0xFFFFFF00 1430 #define S_028844_STACK_SIZE(x) (((x) & 0xFF) << 8) 1431 #define G_028844_STACK_SIZE(x) (((x) >> 8) & 0xFF) 1432 #define C_028844_STACK_SIZE 0xFFFF00FF 1433 #define S_028844_DX10_CLAMP(x) (((x) & 0x1) << 21) 1434 #define G_028844_DX10_CLAMP(x) (((x) >> 21) & 0x1) 1435 #define C_028844_DX10_CLAMP 0xFFDFFFFF 1436 #define S_028844_PRIME_CACHE_ON_DRAW(x) (((x) & 0x1) << 23) 1437 #define G_028844_PRIME_CACHE_ON_DRAW(x) (((x) >> 23) & 0x1) 1438 #define C_028844_PRIME_CACHE_ON_DRAW 0xFF7FFFFF 1439 #define S_028844_UNCACHED_FIRST_INST(x) (((x) & 0x1) << 28) 1440 #define G_028844_UNCACHED_FIRST_INST(x) (((x) >> 28) & 0x1) 1441 #define C_028844_UNCACHED_FIRST_INST 0xEFFFFFFF 1442 #define S_028844_CLAMP_CONSTS(x) (((x) & 0x1) << 31) 1443 #define G_028844_CLAMP_CONSTS(x) (((x) >> 31) & 0x1) 1444 #define C_028844_CLAMP_CONSTS 0x7FFFFFFF 1445 1446 #define R_028848_SQ_PGM_RESOURCES_2_PS 0x028848 1447 #define S_028848_SINGLE_ROUND(x) (((x) & 0x3) << 0) 1448 #define G_028848_SINGLE_ROUND(x) (((x) >> 0) & 0x3) 1449 #define C_028848_SINGLE_ROUND 0xFFFFFFFC 1450 #define S_028848_DOUBLE_ROUND(x) (((x) & 0x3) << 2) 1451 #define G_028848_DOUBLE_ROUND(x) (((x) >> 2) & 0x3) 1452 #define C_028848_DOUBLE_ROUND 0xFFFFFFF3 1453 #define S_028848_ALLOW_SINGLE_DENORM_IN(x) (((x) & 0x1) << 4) 1454 #define G_028848_ALLOW_SINGLE_DENORM_IN(x) (((x) >> 4) & 0x1) 1455 #define C_028848_ALLOW_SINGLE_DENORM_IN 0xFFFFFFEF 1456 #define S_028848_ALLOW_SINGLE_DENORM_OUT(x) (((x) & 0x1) << 5) 1457 #define G_028848_ALLOW_SINGLE_DENORM_OUT(x) (((x) >> 5) & 0x1) 1458 #define C_028848_ALLOW_SINGLE_DENORM_OUT 0xFFFFFFDF 1459 #define S_028848_ALLOW_DOUBLE_DENORM_IN(x) (((x) & 0x1) << 6) 1460 #define G_028848_ALLOW_DOUBLE_DENORM_IN(x) (((x) >> 6) & 0x1) 1461 #define C_028848_ALLOW_DOUBLE_DENORM_IN 0xFFFFFFBF 1462 #define S_028848_ALLOW_DOUBLE_DENORM_OUT(x) (((x) & 0x1) << 7) 1463 #define G_028848_ALLOW_DOUBLE_DENORM_OUT(x) (((x) >> 7) & 0x1) 1464 #define C_028848_ALLOW_DOUBLE_DENORM_OUT 0xFFFFFF7F 1465 1466 #define R_0288D4_SQ_PGM_RESOURCES_LS 0x0288d4 1467 #define S_0288D4_NUM_GPRS(x) (((x) & 0xFF) << 0) 1468 #define G_0288D4_NUM_GPRS(x) (((x) >> 0) & 0xFF) 1469 #define C_0288D4_NUM_GPRS 0xFFFFFF00 1470 #define S_0288D4_STACK_SIZE(x) (((x) & 0xFF) << 8) 1471 #define G_0288D4_STACK_SIZE(x) (((x) >> 8) & 0xFF) 1472 #define C_0288D4_STACK_SIZE 0xFFFF00FF 1473 #define S_0288D4_DX10_CLAMP(x) (((x) & 0x1) << 21) 1474 #define G_0288D4_DX10_CLAMP(x) (((x) >> 21) & 0x1) 1475 #define C_0288D4_DX10_CLAMP 0xFFDFFFFF 1476 #define S_0288D4_PRIME_CACHE_ON_DRAW(x) (((x) & 0x1) << 23) 1477 #define G_0288D4_PRIME_CACHE_ON_DRAW(x) (((x) >> 23) & 0x1) 1478 #define S_0288D4_UNCACHED_FIRST_INST(x) (((x) & 0x1) << 28) 1479 #define G_0288D4_UNCACHED_FIRST_INST(x) (((x) >> 28) & 0x1) 1480 #define C_0288D4_UNCACHED_FIRST_INST 0xEFFFFFFF 1481 #define S_0288D4_CLAMP_CONSTS(x) (((x) & 0x1) << 31) 1482 #define G_0288D4_CLAMP_CONSTS(x) (((x) >> 31) & 0x1) 1483 #define C_0288D4_CLAMP_CONSTS 0x7FFFFFFF 1484 1485 #define R_0288D8_SQ_PGM_RESOURCES_LS_2 0x0288d8 1486 1487 1488 #define R_0288D4_SQ_PGM_RESOURCES_LS 0x0288d4 1489 #define S_0288D4_NUM_GPRS(x) (((x) & 0xFF) << 0) 1490 #define G_0288D4_NUM_GPRS(x) (((x) >> 0) & 0xFF) 1491 #define C_0288D4_NUM_GPRS 0xFFFFFF00 1492 #define S_0288D4_STACK_SIZE(x) (((x) & 0xFF) << 8) 1493 #define G_0288D4_STACK_SIZE(x) (((x) >> 8) & 0xFF) 1494 #define C_0288D4_STACK_SIZE 0xFFFF00FF 1495 #define S_0288D4_DX10_CLAMP(x) (((x) & 0x1) << 21) 1496 #define G_0288D4_DX10_CLAMP(x) (((x) >> 21) & 0x1) 1497 #define C_0288D4_DX10_CLAMP 0xFFDFFFFF 1498 #define S_0288D4_PRIME_CACHE_ON_DRAW(x) (((x) & 0x1) << 23) 1499 #define G_0288D4_PRIME_CACHE_ON_DRAW(x) (((x) >> 23) & 0x1) 1500 #define S_0288D4_UNCACHED_FIRST_INST(x) (((x) & 0x1) << 28) 1501 #define G_0288D4_UNCACHED_FIRST_INST(x) (((x) >> 28) & 0x1) 1502 #define C_0288D4_UNCACHED_FIRST_INST 0xEFFFFFFF 1503 #define S_0288D4_CLAMP_CONSTS(x) (((x) & 0x1) << 31) 1504 #define G_0288D4_CLAMP_CONSTS(x) (((x) >> 31) & 0x1) 1505 #define C_0288D4_CLAMP_CONSTS 0x7FFFFFFF 1506 1507 #define R_0288D8_SQ_PGM_RESOURCES_LS_2 0x0288d8 1508 1509 1510 #define R_028644_SPI_PS_INPUT_CNTL_0 0x028644 1511 #define S_028644_SEMANTIC(x) (((x) & 0xFF) << 0) 1512 #define G_028644_SEMANTIC(x) (((x) >> 0) & 0xFF) 1513 #define C_028644_SEMANTIC 0xFFFFFF00 1514 #define S_028644_DEFAULT_VAL(x) (((x) & 0x3) << 8) 1515 #define G_028644_DEFAULT_VAL(x) (((x) >> 8) & 0x3) 1516 #define C_028644_DEFAULT_VAL 0xFFFFFCFF 1517 #define S_028644_FLAT_SHADE(x) (((x) & 0x1) << 10) 1518 #define G_028644_FLAT_SHADE(x) (((x) >> 10) & 0x1) 1519 #define C_028644_FLAT_SHADE 0xFFFFFBFF 1520 #define S_028644_SEL_CENTROID(x) (((x) & 0x1) << 11) 1521 #define G_028644_SEL_CENTROID(x) (((x) >> 11) & 0x1) 1522 #define C_028644_SEL_CENTROID 0xFFFFF7FF 1523 #define S_028644_SEL_LINEAR(x) (((x) & 0x1) << 12) 1524 #define G_028644_SEL_LINEAR(x) (((x) >> 12) & 0x1) 1525 #define C_028644_SEL_LINEAR 0xFFFFEFFF 1526 #define S_028644_CYL_WRAP(x) (((x) & 0xF) << 13) 1527 #define G_028644_CYL_WRAP(x) (((x) >> 13) & 0xF) 1528 #define C_028644_CYL_WRAP 0xFFFE1FFF 1529 #define S_028644_PT_SPRITE_TEX(x) (((x) & 0x1) << 17) 1530 #define G_028644_PT_SPRITE_TEX(x) (((x) >> 17) & 0x1) 1531 #define C_028644_PT_SPRITE_TEX 0xFFFDFFFF 1532 #define S_028644_SEL_SAMPLE(x) (((x) & 0x1) << 18) 1533 #define G_028644_SEL_SAMPLE(x) (((x) >> 18) & 0x1) 1534 #define C_028644_SEL_SAMPLE 0xFFFBFFFF 1535 #define R_0286D4_SPI_INTERP_CONTROL_0 0x0286D4 1536 #define S_0286D4_FLAT_SHADE_ENA(x) (((x) & 0x1) << 0) 1537 #define G_0286D4_FLAT_SHADE_ENA(x) (((x) >> 0) & 0x1) 1538 #define C_0286D4_FLAT_SHADE_ENA 0xFFFFFFFE 1539 #define S_0286D4_PNT_SPRITE_ENA(x) (((x) & 0x1) << 1) 1540 #define G_0286D4_PNT_SPRITE_ENA(x) (((x) >> 1) & 0x1) 1541 #define C_0286D4_PNT_SPRITE_ENA 0xFFFFFFFD 1542 #define S_0286D4_PNT_SPRITE_OVRD_X(x) (((x) & 0x7) << 2) 1543 #define G_0286D4_PNT_SPRITE_OVRD_X(x) (((x) >> 2) & 0x7) 1544 #define C_0286D4_PNT_SPRITE_OVRD_X 0xFFFFFFE3 1545 #define S_0286D4_PNT_SPRITE_OVRD_Y(x) (((x) & 0x7) << 5) 1546 #define G_0286D4_PNT_SPRITE_OVRD_Y(x) (((x) >> 5) & 0x7) 1547 #define C_0286D4_PNT_SPRITE_OVRD_Y 0xFFFFFF1F 1548 #define S_0286D4_PNT_SPRITE_OVRD_Z(x) (((x) & 0x7) << 8) 1549 #define G_0286D4_PNT_SPRITE_OVRD_Z(x) (((x) >> 8) & 0x7) 1550 #define C_0286D4_PNT_SPRITE_OVRD_Z 0xFFFFF8FF 1551 #define S_0286D4_PNT_SPRITE_OVRD_W(x) (((x) & 0x7) << 11) 1552 #define G_0286D4_PNT_SPRITE_OVRD_W(x) (((x) >> 11) & 0x7) 1553 #define C_0286D4_PNT_SPRITE_OVRD_W 0xFFFFC7FF 1554 #define S_0286D4_PNT_SPRITE_TOP_1(x) (((x) & 0x1) << 14) 1555 #define G_0286D4_PNT_SPRITE_TOP_1(x) (((x) >> 14) & 0x1) 1556 #define C_0286D4_PNT_SPRITE_TOP_1 0xFFFFBFFF 1557 1558 #define SQ_TEX_INST_LD 0x03 1559 #define SQ_TEX_INST_GET_GRADIENTS_H 0x7 1560 #define SQ_TEX_INST_GET_GRADIENTS_V 0x8 1561 1562 #define SQ_TEX_INST_SAMPLE 0x10 1563 #define SQ_TEX_INST_SAMPLE_L 0x11 1564 #define SQ_TEX_INST_SAMPLE_C 0x18 1565 1566 #define R_008A14_PA_CL_ENHANCE 0x00008A14 1567 #define R_008D8C_SQ_DYN_GPR_CNTL_PS_FLUSH_REQ 0x00008D8C 1568 #define R_028000_DB_RENDER_CONTROL 0x00028000 1569 #define S_028000_DEPTH_CLEAR_ENABLE(x) (((x) & 0x1) << 0) 1570 #define S_028000_STENCIL_CLEAR_ENABLE(x) (((x) & 0x1) << 1) 1571 #define S_028000_DEPTH_COPY_ENABLE(x) (((x) & 0x1) << 2) 1572 #define S_028000_STENCIL_COPY_ENABLE(x) (((x) & 0x1) << 3) 1573 #define S_028000_RESUMMARIZE_ENABLE(x) (((x) & 0x1) << 4) 1574 #define S_028000_STENCIL_COMPRESS_DISABLE(x) (((x) & 0x1) << 5) 1575 #define S_028000_DEPTH_COMPRESS_DISABLE(x) (((x) & 0x1) << 6) 1576 #define S_028000_COPY_CENTROID(x) (((x) & 0x1) << 7) 1577 #define S_028000_COPY_SAMPLE(x) (((x) & 0x7) << 8) 1578 #define S_028000_COLOR_DISABLE(x) (((x) & 0x1) << 12) 1579 #define R_028004_DB_COUNT_CONTROL 0x00028004 1580 #define S_028004_ZPASS_INCREMENT_DISABLE (((x) & 0x1) << 0) 1581 #define S_028004_PERFECT_ZPASS_COUNTS(x) (((x) & 0x1) << 1) 1582 #define S_028004_SAMPLE_RATE(x) (((x) & 0x7) << 4) /* cayman only */ 1583 #define R_028008_DB_DEPTH_VIEW 0x00028008 1584 #define S_028008_SLICE_START(x) (((x) & 0x7FF) << 0) 1585 #define G_028008_SLICE_START(x) (((x) >> 0) & 0x7FF) 1586 #define C_028008_SLICE_START 0xFFFFF800 1587 #define S_028008_SLICE_MAX(x) (((x) & 0x7FF) << 13) 1588 #define G_028008_SLICE_MAX(x) (((x) >> 13) & 0x7FF) 1589 #define C_028008_SLICE_MAX 0xFF001FFF 1590 #define R_02800C_DB_RENDER_OVERRIDE 0x0002800C 1591 #define V_02800C_FORCE_OFF 0 1592 #define V_02800C_FORCE_ENABLE 1 1593 #define V_02800C_FORCE_DISABLE 2 1594 #define S_02800C_FORCE_HIZ_ENABLE(x) (((x) & 0x3) << 0) 1595 #define G_02800C_FORCE_HIZ_ENABLE(x) (((x) >> 0) & 0x3) 1596 #define C_02800C_FORCE_HIZ_ENABLE 0xFFFFFFFC 1597 #define S_02800C_FORCE_HIS_ENABLE0(x) (((x) & 0x3) << 2) 1598 #define G_02800C_FORCE_HIS_ENABLE0(x) (((x) >> 2) & 0x3) 1599 #define C_02800C_FORCE_HIS_ENABLE0 0xFFFFFFF3 1600 #define S_02800C_FORCE_HIS_ENABLE1(x) (((x) & 0x3) << 4) 1601 #define G_02800C_FORCE_HIS_ENABLE1(x) (((x) >> 4) & 0x3) 1602 #define C_02800C_FORCE_HIS_ENABLE1 0xFFFFFFCF 1603 #define S_02800C_FORCE_SHADER_Z_ORDER(x) (((x) & 0x1) << 6) 1604 #define G_02800C_FORCE_SHADER_Z_ORDER(x) (((x) >> 6) & 0x1) 1605 #define C_02800C_FORCE_SHADER_Z_ORDER 0xFFFFFFBF 1606 #define S_02800C_FAST_Z_DISABLE(x) (((x) & 0x1) << 7) 1607 #define G_02800C_FAST_Z_DISABLE(x) (((x) >> 7) & 0x1) 1608 #define C_02800C_FAST_Z_DISABLE 0xFFFFFF7F 1609 #define S_02800C_FAST_STENCIL_DISABLE(x) (((x) & 0x1) << 8) 1610 #define G_02800C_FAST_STENCIL_DISABLE(x) (((x) >> 8) & 0x1) 1611 #define C_02800C_FAST_STENCIL_DISABLE 0xFFFFFEFF 1612 #define S_02800C_NOOP_CULL_DISABLE(x) (((x) & 0x1) << 9) 1613 #define G_02800C_NOOP_CULL_DISABLE(x) (((x) >> 9) & 0x1) 1614 #define C_02800C_NOOP_CULL_DISABLE 0xFFFFFDFF 1615 #define S_02800C_FORCE_COLOR_KILL(x) (((x) & 0x1) << 10) 1616 #define G_02800C_FORCE_COLOR_KILL(x) (((x) >> 10) & 0x1) 1617 #define C_02800C_FORCE_COLOR_KILL 0xFFFFFBFF 1618 #define S_02800C_FORCE_Z_READ(x) (((x) & 0x1) << 11) 1619 #define G_02800C_FORCE_Z_READ(x) (((x) >> 11) & 0x1) 1620 #define C_02800C_FORCE_Z_READ 0xFFFFF7FF 1621 #define S_02800C_FORCE_STENCIL_READ(x) (((x) & 0x1) << 12) 1622 #define G_02800C_FORCE_STENCIL_READ(x) (((x) >> 12) & 0x1) 1623 #define C_02800C_FORCE_STENCIL_READ 0xFFFFEFFF 1624 #define S_02800C_FORCE_FULL_Z_RANGE(x) (((x) & 0x3) << 13) 1625 #define G_02800C_FORCE_FULL_Z_RANGE(x) (((x) >> 13) & 0x3) 1626 #define C_02800C_FORCE_FULL_Z_RANGE 0xFFFF9FFF 1627 #define S_02800C_FORCE_QC_SMASK_CONFLICT(x) (((x) & 0x1) << 15) 1628 #define G_02800C_FORCE_QC_SMASK_CONFLICT(x) (((x) >> 15) & 0x1) 1629 #define C_02800C_FORCE_QC_SMASK_CONFLICT 0xFFFF7FFF 1630 #define S_02800C_DISABLE_VIEWPORT_CLAMP(x) (((x) & 0x1) << 16) 1631 #define G_02800C_DISABLE_VIEWPORT_CLAMP(x) (((x) >> 16) & 0x1) 1632 #define C_02800C_DISABLE_VIEWPORT_CLAMP 0xFFFEFFFF 1633 #define S_02800C_IGNORE_SC_ZRANGE(x) (((x) & 0x1) << 17) 1634 #define G_02800C_IGNORE_SC_ZRANGE(x) (((x) >> 17) & 0x1) 1635 #define C_02800C_IGNORE_SC_ZRANGE 0xFFFDFFFF 1636 #define R_028010_DB_RENDER_OVERRIDE2 0x00028010 1637 #define R_028014_DB_HTILE_DATA_BASE 0x00028014 1638 #define R_028028_DB_STENCIL_CLEAR 0x00028028 1639 #define R_02802C_DB_DEPTH_CLEAR 0x0002802C 1640 #define R_028048_DB_Z_READ_BASE 0x00028048 1641 #define R_02804C_DB_STENCIL_READ_BASE 0x0002804C 1642 #define R_028050_DB_Z_WRITE_BASE 0x00028050 1643 #define R_028054_DB_STENCIL_WRITE_BASE 0x00028054 1644 #define R_028140_ALU_CONST_BUFFER_SIZE_PS_0 0x00028140 1645 #define R_028144_ALU_CONST_BUFFER_SIZE_PS_1 0x00028144 1646 #define R_028180_ALU_CONST_BUFFER_SIZE_VS_0 0x00028180 1647 #define R_028184_ALU_CONST_BUFFER_SIZE_VS_1 0x00028184 1648 #define R_028200_PA_SC_WINDOW_OFFSET 0x00028200 1649 #define R_02820C_PA_SC_CLIPRECT_RULE 0x0002820C 1650 #define R_028210_PA_SC_CLIPRECT_0_TL 0x00028210 1651 #define R_028214_PA_SC_CLIPRECT_0_BR 0x00028214 1652 #define R_028218_PA_SC_CLIPRECT_1_TL 0x00028218 1653 #define R_02821C_PA_SC_CLIPRECT_1_BR 0x0002821C 1654 #define R_028220_PA_SC_CLIPRECT_2_TL 0x00028220 1655 #define R_028224_PA_SC_CLIPRECT_2_BR 0x00028224 1656 #define R_028228_PA_SC_CLIPRECT_3_TL 0x00028228 1657 #define R_02822C_PA_SC_CLIPRECT_3_BR 0x0002822C 1658 #define R_028230_PA_SC_EDGERULE 0x00028230 1659 #define R_028234_PA_SU_HARDWARE_SCREEN_OFFSET 0x00028234 1660 #define R_028238_CB_TARGET_MASK 0x00028238 1661 #define R_02823C_CB_SHADER_MASK 0x0002823C 1662 #define R_028350_SX_MISC 0x00028350 1663 #define S_028350_MULTIPASS(x) (((x) & 0x1) << 0) 1664 #define G_028350_MULTIPASS(x) (((x) >> 0) & 0x1) 1665 #define C_028350_MULTIPASS 0xFFFFFFFE 1666 #define R_028354_SX_SURFACE_SYNC 0x00028354 1667 #define S_028354_SURFACE_SYNC_MASK(x) (((x) & 0x1FF) << 0) 1668 #define R_028380_SQ_VTX_SEMANTIC_0 0x00028380 1669 #define R_028384_SQ_VTX_SEMANTIC_1 0x00028384 1670 #define R_028388_SQ_VTX_SEMANTIC_2 0x00028388 1671 #define R_02838C_SQ_VTX_SEMANTIC_3 0x0002838C 1672 #define R_028390_SQ_VTX_SEMANTIC_4 0x00028390 1673 #define R_028394_SQ_VTX_SEMANTIC_5 0x00028394 1674 #define R_028398_SQ_VTX_SEMANTIC_6 0x00028398 1675 #define R_02839C_SQ_VTX_SEMANTIC_7 0x0002839C 1676 #define R_0283A0_SQ_VTX_SEMANTIC_8 0x000283A0 1677 #define R_0283A4_SQ_VTX_SEMANTIC_9 0x000283A4 1678 #define R_0283A8_SQ_VTX_SEMANTIC_10 0x000283A8 1679 #define R_0283AC_SQ_VTX_SEMANTIC_11 0x000283AC 1680 #define R_0283B0_SQ_VTX_SEMANTIC_12 0x000283B0 1681 #define R_0283B4_SQ_VTX_SEMANTIC_13 0x000283B4 1682 #define R_0283B8_SQ_VTX_SEMANTIC_14 0x000283B8 1683 #define R_0283BC_SQ_VTX_SEMANTIC_15 0x000283BC 1684 #define R_0283C0_SQ_VTX_SEMANTIC_16 0x000283C0 1685 #define R_0283C4_SQ_VTX_SEMANTIC_17 0x000283C4 1686 #define R_0283C8_SQ_VTX_SEMANTIC_18 0x000283C8 1687 #define R_0283CC_SQ_VTX_SEMANTIC_19 0x000283CC 1688 #define R_0283D0_SQ_VTX_SEMANTIC_20 0x000283D0 1689 #define R_0283D4_SQ_VTX_SEMANTIC_21 0x000283D4 1690 #define R_0283D8_SQ_VTX_SEMANTIC_22 0x000283D8 1691 #define R_0283DC_SQ_VTX_SEMANTIC_23 0x000283DC 1692 #define R_0283E0_SQ_VTX_SEMANTIC_24 0x000283E0 1693 #define R_0283E4_SQ_VTX_SEMANTIC_25 0x000283E4 1694 #define R_0283E8_SQ_VTX_SEMANTIC_26 0x000283E8 1695 #define R_0283EC_SQ_VTX_SEMANTIC_27 0x000283EC 1696 #define R_0283F0_SQ_VTX_SEMANTIC_28 0x000283F0 1697 #define R_0283F4_SQ_VTX_SEMANTIC_29 0x000283F4 1698 #define R_0283F8_SQ_VTX_SEMANTIC_30 0x000283F8 1699 #define R_0283FC_SQ_VTX_SEMANTIC_31 0x000283FC 1700 #define R_0282D0_PA_SC_VPORT_ZMIN_0 0x000282D0 1701 #define R_0282D4_PA_SC_VPORT_ZMAX_0 0x000282D4 1702 #define R_028400_VGT_MAX_VTX_INDX 0x00028400 1703 #define R_028404_VGT_MIN_VTX_INDX 0x00028404 1704 #define R_028408_VGT_INDX_OFFSET 0x00028408 1705 #define R_02840C_VGT_MULTI_PRIM_IB_RESET_INDX 0x0002840C 1706 #define R_028414_CB_BLEND_RED 0x00028414 1707 #define R_028418_CB_BLEND_GREEN 0x00028418 1708 #define R_02841C_CB_BLEND_BLUE 0x0002841C 1709 #define R_028420_CB_BLEND_ALPHA 0x00028420 1710 #define R_028438_SX_ALPHA_REF 0x00028438 1711 #define R_02843C_PA_CL_VPORT_XSCALE_0 0x0002843C 1712 #define R_028440_PA_CL_VPORT_XOFFSET_0 0x00028440 1713 #define R_028444_PA_CL_VPORT_YSCALE_0 0x00028444 1714 #define R_028448_PA_CL_VPORT_YOFFSET_0 0x00028448 1715 #define R_02844C_PA_CL_VPORT_ZSCALE_0 0x0002844C 1716 #define R_028450_PA_CL_VPORT_ZOFFSET_0 0x00028450 1717 #define R_0285BC_PA_CL_UCP0_X 0x000285BC 1718 #define R_0285C0_PA_CL_UCP0_Y 0x000285C0 1719 #define R_0285C4_PA_CL_UCP0_Z 0x000285C4 1720 #define R_0285C8_PA_CL_UCP0_W 0x000285C8 1721 #define R_0285CC_PA_CL_UCP1_X 0x000285CC 1722 #define R_0285D0_PA_CL_UCP1_Y 0x000285D0 1723 #define R_0285D4_PA_CL_UCP1_Z 0x000285D4 1724 #define R_0285D8_PA_CL_UCP1_W 0x000285D8 1725 #define R_0285DC_PA_CL_UCP2_X 0x000285DC 1726 #define R_0285E0_PA_CL_UCP2_Y 0x000285E0 1727 #define R_0285E4_PA_CL_UCP2_Z 0x000285E4 1728 #define R_0285E8_PA_CL_UCP2_W 0x000285E8 1729 #define R_0285EC_PA_CL_UCP3_X 0x000285EC 1730 #define R_0285F0_PA_CL_UCP3_Y 0x000285F0 1731 #define R_0285F4_PA_CL_UCP3_Z 0x000285F4 1732 #define R_0285F8_PA_CL_UCP3_W 0x000285F8 1733 #define R_0285FC_PA_CL_UCP4_X 0x000285FC 1734 #define R_028600_PA_CL_UCP4_Y 0x00028600 1735 #define R_028604_PA_CL_UCP4_Z 0x00028604 1736 #define R_028608_PA_CL_UCP4_W 0x00028608 1737 #define R_02860C_PA_CL_UCP5_X 0x0002860C 1738 #define R_028610_PA_CL_UCP5_Y 0x00028610 1739 #define R_028614_PA_CL_UCP5_Z 0x00028614 1740 #define R_028618_PA_CL_UCP5_W 0x00028618 1741 #define R_02861C_SPI_VS_OUT_ID_0 0x0002861C 1742 #define R_028620_SPI_VS_OUT_ID_1 0x00028620 1743 #define R_028624_SPI_VS_OUT_ID_2 0x00028624 1744 #define R_028628_SPI_VS_OUT_ID_3 0x00028628 1745 #define R_02862C_SPI_VS_OUT_ID_4 0x0002862C 1746 #define R_028630_SPI_VS_OUT_ID_5 0x00028630 1747 #define R_028634_SPI_VS_OUT_ID_6 0x00028634 1748 #define R_028638_SPI_VS_OUT_ID_7 0x00028638 1749 #define R_02863C_SPI_VS_OUT_ID_8 0x0002863C 1750 #define R_028640_SPI_VS_OUT_ID_9 0x00028640 1751 #define R_028648_SPI_PS_INPUT_CNTL_1 0x00028648 1752 #define R_02864C_SPI_PS_INPUT_CNTL_2 0x0002864C 1753 #define R_028650_SPI_PS_INPUT_CNTL_3 0x00028650 1754 #define R_028654_SPI_PS_INPUT_CNTL_4 0x00028654 1755 #define R_028658_SPI_PS_INPUT_CNTL_5 0x00028658 1756 #define R_02865C_SPI_PS_INPUT_CNTL_6 0x0002865C 1757 #define R_028660_SPI_PS_INPUT_CNTL_7 0x00028660 1758 #define R_028664_SPI_PS_INPUT_CNTL_8 0x00028664 1759 #define R_028668_SPI_PS_INPUT_CNTL_9 0x00028668 1760 #define R_02866C_SPI_PS_INPUT_CNTL_10 0x0002866C 1761 #define R_028670_SPI_PS_INPUT_CNTL_11 0x00028670 1762 #define R_028674_SPI_PS_INPUT_CNTL_12 0x00028674 1763 #define R_028678_SPI_PS_INPUT_CNTL_13 0x00028678 1764 #define R_02867C_SPI_PS_INPUT_CNTL_14 0x0002867C 1765 #define R_028680_SPI_PS_INPUT_CNTL_15 0x00028680 1766 #define R_028684_SPI_PS_INPUT_CNTL_16 0x00028684 1767 #define R_028688_SPI_PS_INPUT_CNTL_17 0x00028688 1768 #define R_02868C_SPI_PS_INPUT_CNTL_18 0x0002868C 1769 #define R_028690_SPI_PS_INPUT_CNTL_19 0x00028690 1770 #define R_028694_SPI_PS_INPUT_CNTL_20 0x00028694 1771 #define R_028698_SPI_PS_INPUT_CNTL_21 0x00028698 1772 #define R_02869C_SPI_PS_INPUT_CNTL_22 0x0002869C 1773 #define R_0286A0_SPI_PS_INPUT_CNTL_23 0x000286A0 1774 #define R_0286A4_SPI_PS_INPUT_CNTL_24 0x000286A4 1775 #define R_0286A8_SPI_PS_INPUT_CNTL_25 0x000286A8 1776 #define R_0286AC_SPI_PS_INPUT_CNTL_26 0x000286AC 1777 #define R_0286B0_SPI_PS_INPUT_CNTL_27 0x000286B0 1778 #define R_0286B4_SPI_PS_INPUT_CNTL_28 0x000286B4 1779 #define R_0286B8_SPI_PS_INPUT_CNTL_29 0x000286B8 1780 #define R_0286BC_SPI_PS_INPUT_CNTL_30 0x000286BC 1781 #define R_0286C0_SPI_PS_INPUT_CNTL_31 0x000286C0 1782 #define R_0286C8_SPI_THREAD_GROUPING 0x000286C8 1783 #define R_0286D8_SPI_INPUT_Z 0x000286D8 1784 #define R_0286DC_SPI_FOG_CNTL 0x000286DC 1785 #define R_0286E4_SPI_PS_IN_CONTROL_2 0x000286E4 1786 #define R_0286E8_SPI_COMPUTE_INPUT_CNTL 0x000286E8 1787 #define S_0286E8_TID_IN_GROUP_ENA 1 1788 #define S_0286E8_TGID_ENA 2 1789 #define S_0286E8_DISABLE_INDEX_PACK 4 1790 #define R_028720_GDS_ADDR_BASE 0x00028720 1791 #define R_028724_GDS_ADDR_SIZE 0x00028724 1792 #define R_028728_GDS_ORDERED_WAVE_PER_SE 0x00028728 1793 #define R_028784_CB_BLEND1_CONTROL 0x00028784 1794 #define R_028788_CB_BLEND2_CONTROL 0x00028788 1795 #define R_02878C_CB_BLEND3_CONTROL 0x0002878C 1796 #define R_028790_CB_BLEND4_CONTROL 0x00028790 1797 #define R_028794_CB_BLEND5_CONTROL 0x00028794 1798 #define R_028798_CB_BLEND6_CONTROL 0x00028798 1799 #define R_02879C_CB_BLEND7_CONTROL 0x0002879C 1800 #define R_028818_PA_CL_VTE_CNTL 0x00028818 1801 #define R_028820_PA_CL_NANINF_CNTL 0x00028820 1802 #define R_028838_SQ_DYN_GPR_RESOURCE_LIMIT_1 0x00028838 1803 #define S_028838_PS_GPRS(x) (((x) & 0x1F) << 0) 1804 #define S_028838_VS_GPRS(x) (((x) & 0x1F) << 5) 1805 #define S_028838_GS_GPRS(x) (((x) & 0x1F) << 10) 1806 #define S_028838_ES_GPRS(x) (((x) & 0x1F) << 15) 1807 #define S_028838_HS_GPRS(x) (((x) & 0x1F) << 20) 1808 #define S_028838_LS_GPRS(x) (((x) & 0x1F) << 25) 1809 #define R_028840_SQ_PGM_START_PS 0x00028840 1810 #define R_02884C_SQ_PGM_EXPORTS_PS 0x0002884C 1811 #define S_02884C_EXPORT_COLORS(x) (((x) & 0xF) << 1) 1812 #define G_02884C_EXPORT_COLORS(x) (((x) >> 1) & 0xF) 1813 #define C_02884C_EXPORT_COLORS 0xFFFFFFE1 1814 #define S_02884C_EXPORT_Z(x) (((x) & 0x1) << 0) 1815 #define G_02884C_EXPORT_Z(x) (((x) >> 0) & 0x1) 1816 #define C_02884C_EXPORT_Z 0xFFFFFFFE 1817 #define R_02885C_SQ_PGM_START_VS 0x0002885C 1818 #define R_0288A4_SQ_PGM_START_FS 0x000288A4 1819 #define R_0288D0_SQ_PGM_START_LS 0x000288d0 1820 #define R_0288A8_SQ_PGM_RESOURCES_FS 0x000288A8 1821 #define R_0288EC_SQ_LDS_ALLOC_PS 0x000288EC 1822 #define R_028900_SQ_ESGS_RING_ITEMSIZE 0x00028900 1823 #define R_028904_SQ_GSVS_RING_ITEMSIZE 0x00028904 1824 #define R_028908_SQ_ESTMP_RING_ITEMSIZE 0x00028908 1825 #define R_02890C_SQ_GSTMP_RING_ITEMSIZE 0x0002890C 1826 #define R_028910_SQ_VSTMP_RING_ITEMSIZE 0x00028910 1827 #define R_028914_SQ_PSTMP_RING_ITEMSIZE 0x00028914 1828 #define R_02891C_SQ_GS_VERT_ITEMSIZE 0x0002891C 1829 #define R_028920_SQ_GS_VERT_ITEMSIZE_1 0x00028920 1830 #define R_028924_SQ_GS_VERT_ITEMSIZE_2 0x00028924 1831 #define R_028928_SQ_GS_VERT_ITEMSIZE_3 0x00028928 1832 #define R_028940_ALU_CONST_CACHE_PS_0 0x00028940 1833 #define R_028944_ALU_CONST_CACHE_PS_1 0x00028944 1834 #define R_028980_ALU_CONST_CACHE_VS_0 0x00028980 1835 #define R_028984_ALU_CONST_CACHE_VS_1 0x00028984 1836 #define R_028A04_PA_SU_POINT_MINMAX 0x00028A04 1837 #define S_028A04_MIN_SIZE(x) (((x) & 0xFFFF) << 0) 1838 #define G_028A04_MIN_SIZE(x) (((x) >> 0) & 0xFFFF) 1839 #define C_028A04_MIN_SIZE 0xFFFF0000 1840 #define S_028A04_MAX_SIZE(x) (((x) & 0xFFFF) << 16) 1841 #define G_028A04_MAX_SIZE(x) (((x) >> 16) & 0xFFFF) 1842 #define C_028A04_MAX_SIZE 0x0000FFFF 1843 #define R_028A08_PA_SU_LINE_CNTL 0x00028A08 1844 #define S_028A08_WIDTH(x) (((x) & 0xFFFF) << 0) 1845 #define G_028A08_WIDTH(x) (((x) >> 0) & 0xFFFF) 1846 #define C_028A08_WIDTH 0xFFFF0000 1847 #define R_028A10_VGT_OUTPUT_PATH_CNTL 0x00028A10 1848 #define R_028A14_VGT_HOS_CNTL 0x00028A14 1849 #define R_028A18_VGT_HOS_MAX_TESS_LEVEL 0x00028A18 1850 #define R_028A1C_VGT_HOS_MIN_TESS_LEVEL 0x00028A1C 1851 #define R_028A20_VGT_HOS_REUSE_DEPTH 0x00028A20 1852 #define R_028A24_VGT_GROUP_PRIM_TYPE 0x00028A24 1853 #define R_028A28_VGT_GROUP_FIRST_DECR 0x00028A28 1854 #define R_028A2C_VGT_GROUP_DECR 0x00028A2C 1855 #define R_028A30_VGT_GROUP_VECT_0_CNTL 0x00028A30 1856 #define R_028A34_VGT_GROUP_VECT_1_CNTL 0x00028A34 1857 #define R_028A38_VGT_GROUP_VECT_0_FMT_CNTL 0x00028A38 1858 #define R_028A3C_VGT_GROUP_VECT_1_FMT_CNTL 0x00028A3C 1859 #define R_028A48_PA_SC_MODE_CNTL_0 0x00028A48 1860 #define S_028A48_MSAA_ENABLE(x) (((x) & 0x1) << 0) 1861 #define S_028A48_VPORT_SCISSOR_ENABLE(x) (((x) & 0x1) << 1) 1862 #define S_028A48_LINE_STIPPLE_ENABLE(x) (((x) & 0x1) << 2) 1863 #define R_028A4C_PA_SC_MODE_CNTL_1 0x00028A4C 1864 #define R_028A94_VGT_MULTI_PRIM_IB_RESET_EN 0x00028A94 1865 #define S_028A94_RESET_EN(x) (((x) & 0x1) << 0) 1866 #define G_028A94_RESET_EN(x) (((x) >> 0) & 0x1) 1867 #define C_028A94_RESET_EN 0xFFFFFFFE 1868 #define R_028AB4_VGT_REUSE_OFF 0x00028AB4 1869 #define R_028AB8_VGT_VTX_CNT_EN 0x00028AB8 1870 #define R_028AC0_DB_SRESULTS_COMPARE_STATE0 0x00028AC0 1871 #define R_028AC4_DB_SRESULTS_COMPARE_STATE1 0x00028AC4 1872 #define R_028AC8_DB_PRELOAD_CONTROL 0x00028AC8 1873 #define R_028AD0_VGT_STRMOUT_BUFFER_SIZE_0 0x028AD0 1874 #define R_028AD4_VGT_STRMOUT_VTX_STRIDE_0 0x028AD4 1875 #define R_028AD8_VGT_STRMOUT_BUFFER_BASE_0 0x028AD8 1876 #define R_028ADC_VGT_STRMOUT_BUFFER_OFFSET_0 0x028ADC 1877 #define R_028AE0_VGT_STRMOUT_BUFFER_SIZE_1 0x028AE0 1878 #define R_028AE4_VGT_STRMOUT_VTX_STRIDE_1 0x028AE4 1879 #define R_028AE8_VGT_STRMOUT_BUFFER_BASE_1 0x028AE8 1880 #define R_028AEC_VGT_STRMOUT_BUFFER_OFFSET_1 0x028AEC 1881 #define R_028AF0_VGT_STRMOUT_BUFFER_SIZE_2 0x028AF0 1882 #define R_028AF4_VGT_STRMOUT_VTX_STRIDE_2 0x028AF4 1883 #define R_028AF8_VGT_STRMOUT_BUFFER_BASE_2 0x028AF8 1884 #define R_028AFC_VGT_STRMOUT_BUFFER_OFFSET_2 0x028AFC 1885 #define R_028B00_VGT_STRMOUT_BUFFER_SIZE_3 0x028B00 1886 #define R_028B04_VGT_STRMOUT_VTX_STRIDE_3 0x028B04 1887 #define R_028B08_VGT_STRMOUT_BUFFER_BASE_3 0x028B08 1888 #define R_028B0C_VGT_STRMOUT_BUFFER_OFFSET_3 0x028B0C 1889 #define R_028B10_VGT_STRMOUT_BASE_OFFSET_0 0x028B10 1890 #define R_028B14_VGT_STRMOUT_BASE_OFFSET_1 0x028B14 1891 #define R_028B18_VGT_STRMOUT_BASE_OFFSET_2 0x028B18 1892 #define R_028B1C_VGT_STRMOUT_BASE_OFFSET_3 0x028B1C 1893 #define R_028B28_VGT_STRMOUT_DRAW_OPAQUE_OFFSET 0x028B28 1894 #define R_028B2C_VGT_STRMOUT_DRAW_OPAQUE_BUFFER_FILLED_SIZE 0x028B2C 1895 #define R_028B30_VGT_STRMOUT_DRAW_OPAQUE_VERTEX_STRIDE 0x028B30 1896 #define R_028B44_VGT_STRMOUT_BASE_OFFSET_HI_0 0x028B44 1897 #define R_028B48_VGT_STRMOUT_BASE_OFFSET_HI_1 0x028B48 1898 #define R_028B4C_VGT_STRMOUT_BASE_OFFSET_HI_2 0x028B4C 1899 #define R_028B50_VGT_STRMOUT_BASE_OFFSET_HI_3 0x028B50 1900 #define R_028B54_VGT_SHADER_STAGES_EN 0x00028B54 1901 #define R_028B70_DB_ALPHA_TO_MASK 0x00028B70 1902 #define S_028B70_ALPHA_TO_MASK_ENABLE(x) (((x) & 0x1) << 0) 1903 #define S_028B70_ALPHA_TO_MASK_OFFSET0(x) (((x) & 0x3) << 8) 1904 #define S_028B70_ALPHA_TO_MASK_OFFSET1(x) (((x) & 0x3) << 10) 1905 #define S_028B70_ALPHA_TO_MASK_OFFSET2(x) (((x) & 0x3) << 12) 1906 #define S_028B70_ALPHA_TO_MASK_OFFSET3(x) (((x) & 0x3) << 14) 1907 #define S_028B70_OFFSET_ROUND(x) (((x) & 0x1) << 16) 1908 #define R_028B78_PA_SU_POLY_OFFSET_DB_FMT_CNTL 0x00028B78 1909 #define S_028B78_POLY_OFFSET_NEG_NUM_DB_BITS(x) (((x) & 0xFF) << 0) 1910 #define G_028B78_POLY_OFFSET_NEG_NUM_DB_BITS(x) (((x) >> 0) & 0xFF) 1911 #define C_028B78_POLY_OFFSET_NEG_NUM_DB_BITS 0xFFFFFF00 1912 #define S_028B78_POLY_OFFSET_DB_IS_FLOAT_FMT(x) (((x) & 0x1) << 8) 1913 #define G_028B78_POLY_OFFSET_DB_IS_FLOAT_FMT(x) (((x) >> 8) & 0x1) 1914 #define C_028B78_POLY_OFFSET_DB_IS_FLOAT_FMT 0xFFFFFEFF 1915 #define R_028B7C_PA_SU_POLY_OFFSET_CLAMP 0x00028B7C 1916 #define R_028B80_PA_SU_POLY_OFFSET_FRONT_SCALE 0x00028B80 1917 #define S_028B80_SCALE(x) (((x) & 0xFFFFFFFF) << 0) 1918 #define G_028B80_SCALE(x) (((x) >> 0) & 0xFFFFFFFF) 1919 #define C_028B80_SCALE 0x00000000 1920 #define R_028B84_PA_SU_POLY_OFFSET_FRONT_OFFSET 0x00028B84 1921 #define S_028B84_OFFSET(x) (((x) & 0xFFFFFFFF) << 0) 1922 #define G_028B84_OFFSET(x) (((x) >> 0) & 0xFFFFFFFF) 1923 #define C_028B84_OFFSET 0x00000000 1924 #define R_028B88_PA_SU_POLY_OFFSET_BACK_SCALE 0x00028B88 1925 #define S_028B88_SCALE(x) (((x) & 0xFFFFFFFF) << 0) 1926 #define G_028B88_SCALE(x) (((x) >> 0) & 0xFFFFFFFF) 1927 #define C_028B88_SCALE 0x00000000 1928 #define R_028B8C_PA_SU_POLY_OFFSET_BACK_OFFSET 0x00028B8C 1929 #define S_028B8C_OFFSET(x) (((x) & 0xFFFFFFFF) << 0) 1930 #define G_028B8C_OFFSET(x) (((x) >> 0) & 0xFFFFFFFF) 1931 #define C_028B8C_OFFSET 0x00000000 1932 #define R_028B94_VGT_STRMOUT_CONFIG 0x00028B94 1933 #define S_028B94_STREAMOUT_0_EN(x) (((x) & 0x1) << 0) 1934 #define S_028B94_STREAMOUT_1_EN(x) (((x) & 0x1) << 1) 1935 #define S_028B94_STREAMOUT_2_EN(x) (((x) & 0x1) << 2) 1936 #define S_028B94_STREAMOUT_3_EN(x) (((x) & 0x1) << 3) 1937 #define S_028B94_RAST_STREAM(x) (((x) & 0x7) << 4) 1938 #define R_028B98_VGT_STRMOUT_BUFFER_CONFIG 0x00028B98 1939 #define S_028B98_STREAM_0_BUFFER_EN(x) (((x) & 0xf) << 0) 1940 #define S_028B98_STREAM_1_BUFFER_EN(x) (((x) & 0xf) << 4) 1941 #define S_028B98_STREAM_2_BUFFER_EN(x) (((x) & 0xf) << 8) 1942 #define S_028B98_STREAM_3_BUFFER_EN(x) (((x) & 0xf) << 12) 1943 #define R_028C00_PA_SC_LINE_CNTL 0x00028C00 1944 #define S_028C00_EXPAND_LINE_WIDTH(x) (((x) & 0x1) << 9) 1945 #define G_028C00_EXPAND_LINE_WIDTH(x) (((x) >> 9) & 0x1) 1946 #define C_028C00_EXPAND_LINE_WIDTH 0xFFFFFDFF 1947 #define S_028C00_LAST_PIXEL(x) (((x) & 0x1) << 10) 1948 #define G_028C00_LAST_PIXEL(x) (((x) >> 10) & 0x1) 1949 #define C_028C00_LAST_PIXEL 0xFFFFFBFF 1950 #define R_028C04_PA_SC_AA_CONFIG 0x00028C04 1951 #define S_028C04_MSAA_NUM_SAMPLES(x) (((x) & 0x3) << 0) 1952 #define S_028C04_AA_MASK_CENTROID_DTMN(x) (((x) & 0x1) << 4) 1953 #define S_028C04_MAX_SAMPLE_DIST(x) (((x) & 0xf) << 13) 1954 #define R_028C08_PA_SU_VTX_CNTL 0x00028C08 1955 #define S_028C08_PIX_CENTER_HALF(x) (((x) & 0x1) << 0) 1956 #define G_028C08_PIX_CENTER_HALF(x) (((x) >> 0) & 0x1) 1957 #define C_028C08_PIX_CENTER_HALF 0xFFFFFFFE 1958 #define S_028C08_QUANT_MODE(x) (((x) & 0x7) << 3) 1959 #define G_028C08_QUANT_MODE(x) (((x) >> 3) & 0x7) 1960 #define C_028C08_QUANT_MODE 0xFFFFFFC7 1961 #define V_028C08_X_1_16TH 0x00 1962 #define V_028C08_X_1_8TH 0x01 1963 #define V_028C08_X_1_4TH 0x02 1964 #define V_028C08_X_1_2 0x03 1965 #define V_028C08_X_1 0x04 1966 #define V_028C08_X_1_256TH 0x05 1967 #define V_028C08_X_1_1024TH 0x06 1968 #define V_028C08_X_1_4096TH 0x07 1969 #define R_028C0C_PA_CL_GB_VERT_CLIP_ADJ 0x00028C0C 1970 #define R_028C10_PA_CL_GB_VERT_DISC_ADJ 0x00028C10 1971 #define R_028C14_PA_CL_GB_HORZ_CLIP_ADJ 0x00028C14 1972 #define R_028C18_PA_CL_GB_HORZ_DISC_ADJ 0x00028C18 1973 #define R_028C1C_PA_SC_AA_SAMPLE_LOCS_0 0x00028C1C 1974 #define R_028C20_PA_SC_AA_SAMPLE_LOCS_1 0x00028C20 1975 #define R_028C24_PA_SC_AA_SAMPLE_LOCS_2 0x00028C24 1976 #define R_028C28_PA_SC_AA_SAMPLE_LOCS_3 0x00028C28 1977 #define R_028C2C_PA_SC_AA_SAMPLE_LOCS_4 0x00028C2C 1978 #define R_028C30_PA_SC_AA_SAMPLE_LOCS_5 0x00028C30 1979 #define R_028C34_PA_SC_AA_SAMPLE_LOCS_6 0x00028C34 1980 #define R_028C38_PA_SC_AA_SAMPLE_LOCS_7 0x00028C38 1981 #define R_028C3C_PA_SC_AA_MASK 0x00028C3C 1982 #define R_028C60_CB_COLOR0_BASE 0x00028C60 1983 #define R_028C6C_CB_COLOR0_VIEW 0x00028C6C 1984 #define S_028C6C_SLICE_START(x) (((x) & 0x7FF) << 0) 1985 #define G_028C6C_SLICE_START(x) (((x) >> 0) & 0x7FF) 1986 #define C_028C6C_SLICE_START 0xFFFFF800 1987 #define S_028C6C_SLICE_MAX(x) (((x) & 0x7FF) << 13) 1988 #define G_028C6C_SLICE_MAX(x) (((x) >> 13) & 0x7FF) 1989 #define C_028C6C_SLICE_MAX 0xFF001FFF 1990 #define R_028C7C_CB_COLOR0_CMASK 0x028C7C 1991 #define R_028C80_CB_COLOR0_CMASK_SLICE 0x028C80 1992 #define S_028C80_TILE_MAX(x) (((x) & 0x3FFF) << 0) 1993 #define R_028C84_CB_COLOR0_FMASK 0x028C84 1994 #define R_028C88_CB_COLOR0_FMASK_SLICE 0x028C88 1995 #define S_028C88_TILE_MAX(x) (((x) & 0x3FFFFF) << 0) 1996 #define R_028C8C_CB_COLOR0_CLEAR_WORD0 0x028C8C 1997 #define R_028C90_CB_COLOR0_CLEAR_WORD1 0x028C90 1998 #define R_028C94_CB_COLOR0_CLEAR_WORD2 0x028C94 1999 #define R_028C98_CB_COLOR0_CLEAR_WORD3 0x028C98 2000 #define R_028C9C_CB_COLOR1_BASE 0x00028C9C 2001 #define R_028CA0_CB_COLOR1_PITCH 0x00028CA0 2002 #define R_028CA4_CB_COLOR1_SLICE 0x00028CA4 2003 #define R_028CA8_CB_COLOR1_VIEW 0x00028CA8 2004 #define R_028CAC_CB_COLOR1_INFO 0x00028CAC 2005 #define R_028CB0_CB_COLOR1_ATTRIB 0x00028CB0 2006 #define R_028CB4_CB_COLOR1_DIM 0x00028CB4 2007 #define R_028CB8_CB_COLOR1_CMASK 0x028CB8 2008 #define R_028CBC_CB_COLOR1_CMASK_SLICE 0x028CBC 2009 #define R_028CC0_CB_COLOR1_FMASK 0x028CC0 2010 #define R_028CC4_CB_COLOR1_FMASK_SLICE 0x028CC4 2011 #define R_028CC8_CB_COLOR1_CLEAR_WORD0 0x028CC8 2012 #define R_028CCC_CB_COLOR1_CLEAR_WORD1 0x028CCC 2013 #define R_028CD0_CB_COLOR1_CLEAR_WORD2 0x028CD0 2014 #define R_028CD4_CB_COLOR1_CLEAR_WORD3 0x028CD4 2015 #define R_028CD8_CB_COLOR2_BASE 0x00028CD8 2016 #define R_028CDC_CB_COLOR2_PITCH 0x00028CDC 2017 #define R_028CE0_CB_COLOR2_SLICE 0x00028CE0 2018 #define R_028CE4_CB_COLOR2_VIEW 0x00028CE4 2019 #define R_028CE8_CB_COLOR2_INFO 0x00028CE8 2020 #define R_028CEC_CB_COLOR2_ATTRIB 0x00028CEC 2021 #define R_028CF0_CB_COLOR2_DIM 0x00028CF0 2022 #define R_028CF4_CB_COLOR2_CMASK 0x028CF4 2023 #define R_028CF8_CB_COLOR2_CMASK_SLICE 0x028CF8 2024 #define R_028CFC_CB_COLOR2_FMASK 0x028CFC 2025 #define R_028D00_CB_COLOR2_FMASK_SLICE 0x028D00 2026 #define R_028D04_CB_COLOR2_CLEAR_WORD0 0x028D04 2027 #define R_028D08_CB_COLOR2_CLEAR_WORD1 0x028D08 2028 #define R_028D0C_CB_COLOR2_CLEAR_WORD2 0x028D0C 2029 #define R_028D10_CB_COLOR2_CLEAR_WORD3 0x028D10 2030 #define R_028D14_CB_COLOR3_BASE 0x00028D14 2031 #define R_028D18_CB_COLOR3_PITCH 0x00028D18 2032 #define R_028D1C_CB_COLOR3_SLICE 0x00028D1C 2033 #define R_028D20_CB_COLOR3_VIEW 0x00028D20 2034 #define R_028D24_CB_COLOR3_INFO 0x00028D24 2035 #define R_028D28_CB_COLOR3_ATTRIB 0x00028D28 2036 #define R_028D2C_CB_COLOR3_DIM 0x00028D2C 2037 #define R_028D30_CB_COLOR3_CMASK 0x028D30 2038 #define R_028D34_CB_COLOR3_CMASK_SLICE 0x028D34 2039 #define R_028D38_CB_COLOR3_FMASK 0x028D38 2040 #define R_028D3C_CB_COLOR3_FMASK_SLICE 0x028D3C 2041 #define R_028D40_CB_COLOR3_CLEAR_WORD0 0x028D40 2042 #define R_028D44_CB_COLOR3_CLEAR_WORD1 0x028D44 2043 #define R_028D48_CB_COLOR3_CLEAR_WORD2 0x028D48 2044 #define R_028D4C_CB_COLOR3_CLEAR_WORD3 0x028D4C 2045 #define R_028D50_CB_COLOR4_BASE 0x00028D50 2046 #define R_028D54_CB_COLOR4_PITCH 0x00028D54 2047 #define R_028D58_CB_COLOR4_SLICE 0x00028D58 2048 #define R_028D5C_CB_COLOR4_VIEW 0x00028D5C 2049 #define R_028D60_CB_COLOR4_INFO 0x00028D60 2050 #define R_028D64_CB_COLOR4_ATTRIB 0x00028D64 2051 #define R_028D68_CB_COLOR4_DIM 0x00028D68 2052 #define R_028D6C_CB_COLOR4_CMASK 0x028D6C 2053 #define R_028D70_CB_COLOR4_CMASK_SLICE 0x028D70 2054 #define R_028D74_CB_COLOR4_FMASK 0x028D74 2055 #define R_028D78_CB_COLOR4_FMASK_SLICE 0x028D78 2056 #define R_028D7C_CB_COLOR4_CLEAR_WORD0 0x028D7C 2057 #define R_028D80_CB_COLOR4_CLEAR_WORD1 0x028D80 2058 #define R_028D84_CB_COLOR4_CLEAR_WORD2 0x028D84 2059 #define R_028D88_CB_COLOR4_CLEAR_WORD3 0x028D88 2060 #define R_028D8C_CB_COLOR5_BASE 0x00028D8C 2061 #define R_028D90_CB_COLOR5_PITCH 0x00028D90 2062 #define R_028D94_CB_COLOR5_SLICE 0x00028D94 2063 #define R_028D98_CB_COLOR5_VIEW 0x00028D98 2064 #define R_028D9C_CB_COLOR5_INFO 0x00028D9C 2065 #define R_028DA0_CB_COLOR5_ATTRIB 0x00028DA0 2066 #define R_028DA4_CB_COLOR5_DIM 0x00028DA4 2067 #define R_028DA8_CB_COLOR5_CMASK 0x028DA8 2068 #define R_028DAC_CB_COLOR5_CMASK_SLICE 0x028DAC 2069 #define R_028DB0_CB_COLOR5_FMASK 0x028DB0 2070 #define R_028DB4_CB_COLOR5_FMASK_SLICE 0x028DB4 2071 #define R_028DB8_CB_COLOR5_CLEAR_WORD0 0x028DB8 2072 #define R_028DBC_CB_COLOR5_CLEAR_WORD1 0x028DBC 2073 #define R_028DC0_CB_COLOR5_CLEAR_WORD2 0x028DC0 2074 #define R_028DC4_CB_COLOR5_CLEAR_WORD3 0x028DC4 2075 #define R_028DC8_CB_COLOR6_BASE 0x00028DC8 2076 #define R_028DCC_CB_COLOR6_PITCH 0x00028DCC 2077 #define R_028DD0_CB_COLOR6_SLICE 0x00028DD0 2078 #define R_028DD4_CB_COLOR6_VIEW 0x00028DD4 2079 #define R_028DD8_CB_COLOR6_INFO 0x00028DD8 2080 #define R_028DDC_CB_COLOR6_ATTRIB 0x00028DDC 2081 #define R_028DE0_CB_COLOR6_DIM 0x00028DE0 2082 #define R_028DE4_CB_COLOR6_CMASK 0x028DE4 2083 #define R_028DE8_CB_COLOR6_CMASK_SLICE 0x028DE8 2084 #define R_028DEC_CB_COLOR6_FMASK 0x028DEC 2085 #define R_028DF0_CB_COLOR6_FMASK_SLICE 0x028DF0 2086 #define R_028DF4_CB_COLOR6_CLEAR_WORD0 0x028DF4 2087 #define R_028DF8_CB_COLOR6_CLEAR_WORD1 0x028DF8 2088 #define R_028DFC_CB_COLOR6_CLEAR_WORD2 0x028DFC 2089 #define R_028E00_CB_COLOR6_CLEAR_WORD3 0x028E00 2090 #define R_028E04_CB_COLOR7_BASE 0x00028E04 2091 #define R_028E08_CB_COLOR7_PITCH 0x00028E08 2092 #define R_028E0C_CB_COLOR7_SLICE 0x00028E0C 2093 #define R_028E10_CB_COLOR7_VIEW 0x00028E10 2094 #define R_028E14_CB_COLOR7_INFO 0x00028E14 2095 #define R_028E18_CB_COLOR7_ATTRIB 0x00028E18 2096 #define R_028E1C_CB_COLOR7_DIM 0x00028E1C 2097 #define R_028E20_CB_COLOR7_CMASK 0x028E20 2098 #define R_028E24_CB_COLOR7_CMASK_SLICE 0x028E24 2099 #define R_028E28_CB_COLOR7_FMASK 0x028E28 2100 #define R_028E2C_CB_COLOR7_FMASK_SLICE 0x028E2C 2101 #define R_028E30_CB_COLOR7_CLEAR_WORD0 0x028E30 2102 #define R_028E34_CB_COLOR7_CLEAR_WORD1 0x028E34 2103 #define R_028E38_CB_COLOR7_CLEAR_WORD2 0x028E38 2104 #define R_028E3C_CB_COLOR7_CLEAR_WORD3 0x028E3C 2105 #define R_028E40_CB_COLOR8_BASE 0x00028E40 2106 #define R_028E44_CB_COLOR8_PITCH 0x00028E44 2107 #define R_028E48_CB_COLOR8_SLICE 0x00028E48 2108 #define R_028E4C_CB_COLOR8_VIEW 0x00028E4C 2109 #define R_028E50_CB_COLOR8_INFO 0x00028E50 2110 #define R_028E54_CB_COLOR8_ATTRIB 0x00028E54 2111 #define R_028E58_CB_COLOR8_DIM 0x00028E58 2112 #define R_028E5C_CB_COLOR9_BASE 0x00028E5C 2113 #define R_028E60_CB_COLOR9_PITCH 0x00028E60 2114 #define R_028E64_CB_COLOR9_SLICE 0x00028E64 2115 #define R_028E68_CB_COLOR9_VIEW 0x00028E68 2116 #define R_028E6C_CB_COLOR9_INFO 0x00028E6C 2117 #define R_028E70_CB_COLOR9_ATTRIB 0x00028E70 2118 #define R_028E74_CB_COLOR9_DIM 0x00028E74 2119 #define R_028E78_CB_COLOR10_BASE 0x00028E78 2120 #define R_028E7C_CB_COLOR10_PITCH 0x00028E7C 2121 #define R_028E80_CB_COLOR10_SLICE 0x00028E80 2122 #define R_028E84_CB_COLOR10_VIEW 0x00028E84 2123 #define R_028E88_CB_COLOR10_INFO 0x00028E88 2124 #define R_028E8C_CB_COLOR10_ATTRIB 0x00028E8C 2125 #define R_028E90_CB_COLOR10_DIM 0x00028E90 2126 #define R_028E94_CB_COLOR11_BASE 0x00028E94 2127 #define R_028E98_CB_COLOR11_PITCH 0x00028E98 2128 #define R_028E9C_CB_COLOR11_SLICE 0x00028E9C 2129 #define R_028EA0_CB_COLOR11_VIEW 0x00028EA0 2130 #define R_028EA4_CB_COLOR11_INFO 0x00028EA4 2131 #define R_028EA8_CB_COLOR11_ATTRIB 0x00028EA8 2132 #define R_028EAC_CB_COLOR11_DIM 0x00028EAC 2133 #define R_030000_RESOURCE0_WORD0 0x00030000 2134 #define R_030004_RESOURCE0_WORD1 0x00030004 2135 #define R_030008_RESOURCE0_WORD2 0x00030008 2136 #define R_03000C_RESOURCE0_WORD3 0x0003000C 2137 #define R_030010_RESOURCE0_WORD4 0x00030010 2138 #define R_030014_RESOURCE0_WORD5 0x00030014 2139 #define R_030018_RESOURCE0_WORD6 0x00030018 2140 #define R_03001C_RESOURCE0_WORD7 0x0003001C 2141 #define R_0085F0_CP_COHER_CNTL 0x0085F0 2142 #define S_0085F0_DEST_BASE_0_ENA(x) (((x) & 0x1) << 0) 2143 #define G_0085F0_DEST_BASE_0_ENA(x) (((x) >> 0) & 0x1) 2144 #define C_0085F0_DEST_BASE_0_ENA 0xFFFFFFFE 2145 #define S_0085F0_DEST_BASE_1_ENA(x) (((x) & 0x1) << 1) 2146 #define G_0085F0_DEST_BASE_1_ENA(x) (((x) >> 1) & 0x1) 2147 #define C_0085F0_DEST_BASE_1_ENA 0xFFFFFFFD 2148 #define S_0085F0_SO0_DEST_BASE_ENA(x) (((x) & 0x1) << 2) 2149 #define G_0085F0_SO0_DEST_BASE_ENA(x) (((x) >> 2) & 0x1) 2150 #define C_0085F0_SO0_DEST_BASE_ENA 0xFFFFFFFB 2151 #define S_0085F0_SO1_DEST_BASE_ENA(x) (((x) & 0x1) << 3) 2152 #define G_0085F0_SO1_DEST_BASE_ENA(x) (((x) >> 3) & 0x1) 2153 #define C_0085F0_SO1_DEST_BASE_ENA 0xFFFFFFF7 2154 #define S_0085F0_SO2_DEST_BASE_ENA(x) (((x) & 0x1) << 4) 2155 #define G_0085F0_SO2_DEST_BASE_ENA(x) (((x) >> 4) & 0x1) 2156 #define C_0085F0_SO2_DEST_BASE_ENA 0xFFFFFFEF 2157 #define S_0085F0_SO3_DEST_BASE_ENA(x) (((x) & 0x1) << 5) 2158 #define G_0085F0_SO3_DEST_BASE_ENA(x) (((x) >> 5) & 0x1) 2159 #define C_0085F0_SO3_DEST_BASE_ENA 0xFFFFFFDF 2160 #define S_0085F0_CB0_DEST_BASE_ENA(x) (((x) & 0x1) << 6) 2161 #define G_0085F0_CB0_DEST_BASE_ENA(x) (((x) >> 6) & 0x1) 2162 #define C_0085F0_CB0_DEST_BASE_ENA 0xFFFFFFBF 2163 #define S_0085F0_CB1_DEST_BASE_ENA(x) (((x) & 0x1) << 7) 2164 #define G_0085F0_CB1_DEST_BASE_ENA(x) (((x) >> 7) & 0x1) 2165 #define C_0085F0_CB1_DEST_BASE_ENA 0xFFFFFF7F 2166 #define S_0085F0_CB2_DEST_BASE_ENA(x) (((x) & 0x1) << 8) 2167 #define G_0085F0_CB2_DEST_BASE_ENA(x) (((x) >> 8) & 0x1) 2168 #define C_0085F0_CB2_DEST_BASE_ENA 0xFFFFFEFF 2169 #define S_0085F0_CB3_DEST_BASE_ENA(x) (((x) & 0x1) << 9) 2170 #define G_0085F0_CB3_DEST_BASE_ENA(x) (((x) >> 9) & 0x1) 2171 #define C_0085F0_CB3_DEST_BASE_ENA 0xFFFFFDFF 2172 #define S_0085F0_CB4_DEST_BASE_ENA(x) (((x) & 0x1) << 10) 2173 #define G_0085F0_CB4_DEST_BASE_ENA(x) (((x) >> 10) & 0x1) 2174 #define C_0085F0_CB4_DEST_BASE_ENA 0xFFFFFBFF 2175 #define S_0085F0_CB5_DEST_BASE_ENA(x) (((x) & 0x1) << 11) 2176 #define G_0085F0_CB5_DEST_BASE_ENA(x) (((x) >> 11) & 0x1) 2177 #define C_0085F0_CB5_DEST_BASE_ENA 0xFFFFF7FF 2178 #define S_0085F0_CB6_DEST_BASE_ENA(x) (((x) & 0x1) << 12) 2179 #define G_0085F0_CB6_DEST_BASE_ENA(x) (((x) >> 12) & 0x1) 2180 #define C_0085F0_CB6_DEST_BASE_ENA 0xFFFFEFFF 2181 #define S_0085F0_CB7_DEST_BASE_ENA(x) (((x) & 0x1) << 13) 2182 #define G_0085F0_CB7_DEST_BASE_ENA(x) (((x) >> 13) & 0x1) 2183 #define C_0085F0_CB7_DEST_BASE_ENA 0xFFFFDFFF 2184 #define S_0085F0_DB_DEST_BASE_ENA(x) (((x) & 0x1) << 14) 2185 #define G_0085F0_DB_DEST_BASE_ENA(x) (((x) >> 14) & 0x1) 2186 #define C_0085F0_DB_DEST_BASE_ENA 0xFFFFBFFF 2187 #define S_0085F0_CB8_DEST_BASE_ENA(x) (((x) & 0x1) << 15) 2188 #define G_0085F0_CB8_DEST_BASE_ENA(x) (((x) >> 15) & 0x1) 2189 2190 #define S_0085F0_CB9_DEST_BASE_ENA(x) (((x) & 0x1) << 16) 2191 #define G_0085F0_CB9_DEST_BASE_ENA(x) (((x) >> 16) & 0x1) 2192 2193 #define S_0085F0_CB10_DEST_BASE_ENA(x) (((x) & 0x1) << 17) 2194 #define G_0085F0_CB10_DEST_BASE_ENA(x) (((x) >> 17) & 0x1) 2195 2196 #define S_0085F0_CB11_DEST_BASE_ENA(x) (((x) & 0x1) << 18) 2197 #define G_0085F0_CB11_DEST_BASE_ENA(x) (((x) >> 18) & 0x1) 2198 2199 #define S_0085F0_TC_ACTION_ENA(x) (((x) & 0x1) << 23) 2200 #define G_0085F0_TC_ACTION_ENA(x) (((x) >> 23) & 0x1) 2201 #define C_0085F0_TC_ACTION_ENA 0xFF7FFFFF 2202 #define S_0085F0_VC_ACTION_ENA(x) (((x) & 0x1) << 24) 2203 #define G_0085F0_VC_ACTION_ENA(x) (((x) >> 24) & 0x1) 2204 #define C_0085F0_VC_ACTION_ENA 0xFEFFFFFF 2205 #define S_0085F0_CB_ACTION_ENA(x) (((x) & 0x1) << 25) 2206 #define G_0085F0_CB_ACTION_ENA(x) (((x) >> 25) & 0x1) 2207 #define C_0085F0_CB_ACTION_ENA 0xFDFFFFFF 2208 #define S_0085F0_DB_ACTION_ENA(x) (((x) & 0x1) << 26) 2209 #define G_0085F0_DB_ACTION_ENA(x) (((x) >> 26) & 0x1) 2210 #define C_0085F0_DB_ACTION_ENA 0xFBFFFFFF 2211 #define S_0085F0_SH_ACTION_ENA(x) (((x) & 0x1) << 27) 2212 #define G_0085F0_SH_ACTION_ENA(x) (((x) >> 27) & 0x1) 2213 #define C_0085F0_SH_ACTION_ENA 0xF7FFFFFF 2214 #define S_0085F0_SMX_ACTION_ENA(x) (((x) & 0x1) << 28) 2215 #define G_0085F0_SMX_ACTION_ENA(x) (((x) >> 28) & 0x1) 2216 #define C_0085F0_SMX_ACTION_ENA 0xEFFFFFFF 2217 #define S_0085F0_CR0_ACTION_ENA(x) (((x) & 0x1) << 29) 2218 #define G_0085F0_CR0_ACTION_ENA(x) (((x) >> 29) & 0x1) 2219 #define C_0085F0_CR0_ACTION_ENA 0xDFFFFFFF 2220 #define S_0085F0_CR1_ACTION_ENA(x) (((x) & 0x1) << 30) 2221 #define G_0085F0_CR1_ACTION_ENA(x) (((x) >> 30) & 0x1) 2222 #define C_0085F0_CR1_ACTION_ENA 0xBFFFFFFF 2223 #define S_0085F0_CR2_ACTION_ENA(x) (((x) & 0x1) << 31) 2224 #define G_0085F0_CR2_ACTION_ENA(x) (((x) >> 31) & 0x1) 2225 #define C_0085F0_CR2_ACTION_ENA 0x7FFFFFFF 2226 #define R_008970_VGT_NUM_INDICES 0x008970 2227 2228 #define R_03CFF0_SQ_VTX_BASE_VTX_LOC 0x03CFF0 2229 #define R_03CFF4_SQ_VTX_START_INST_LOC 0x03CFF4 2230 2231 #define R_03A200_SQ_LOOP_CONST_0 0x3A200 2232 2233 #define ENDIAN_NONE 0 2234 #define ENDIAN_8IN16 1 2235 #define ENDIAN_8IN32 2 2236 #define ENDIAN_8IN64 3 2237 2238 #define CM_R_0286FC_SPI_LDS_MGMT 0x286fc 2239 #define S_0286FC_NUM_PS_LDS(x) ((x) & 0xff) 2240 #define S_0286FC_NUM_LS_LDS(x) ((x) & 0xff) << 8 2241 #define CM_R_0288E8_SQ_LDS_ALLOC 0x000288E8 2242 2243 #define CM_R_028804_DB_EQAA 0x00028804 2244 #define S_028804_MAX_ANCHOR_SAMPLES(x) (((x) & 0x7) << 0) 2245 #define S_028804_PS_ITER_SAMPLES(x) (((x) & 0x7) << 4) 2246 #define S_028804_MASK_EXPORT_NUM_SAMPLES(x) (((x) & 0x7) << 8) 2247 #define S_028804_ALPHA_TO_MASK_NUM_SAMPLES(x) (((x) & 0x7) << 12) 2248 #define S_028804_HIGH_QUALITY_INTERSECTIONS(x) (((x) & 0x1) << 16) 2249 #define S_028804_INCOHERENT_EQAA_READS(x) (((x) & 0x1) << 17) 2250 #define S_028804_INTERPOLATE_COMP_Z(x) (((x) & 0x1) << 18) 2251 #define S_028804_INTERPOLATE_SRC_Z(x) (((x) & 0x1) << 19) 2252 #define S_028804_STATIC_ANCHOR_ASSOCIATIONS(x) (((x) & 0x1) << 20) 2253 #define S_028804_ALPHA_TO_MASK_EQAA_DISABLE(x) (((x) & 0x1) << 21) 2254 2255 #define CM_R_028BD4_PA_SC_CENTROID_PRIORITY_0 0x00028BD4 2256 #define CM_R_028BD8_PA_SC_CENTROID_PRIORITY_1 0x00028BD8 2257 #define CM_R_028BDC_PA_SC_LINE_CNTL 0x28bdc 2258 #define CM_R_028BE0_PA_SC_AA_CONFIG 0x28be0 2259 #define S_028BE0_MSAA_NUM_SAMPLES(x) (((x) & 0x7) << 0) 2260 #define S_028BE0_AA_MASK_CENTROID_DTMN(x) (((x) & 0x1) << 4) 2261 #define S_028BE0_MAX_SAMPLE_DIST(x) (((x) & 0xf) << 13) 2262 #define S_028BE0_MSAA_EXPOSED_SAMPLES(x) (((x) & 0x7) << 20) 2263 #define S_028BE0_DETAIL_TO_EXPOSED_MODE(x) (((x) & 0x3) << 24) 2264 #define CM_R_028BE4_PA_SU_VTX_CNTL 0x28be4 2265 #define CM_R_028BE8_PA_CL_GB_VERT_CLIP_ADJ 0x28be8 2266 #define CM_R_028BEC_PA_CL_GB_VERT_DISC_ADJ 0x28bec 2267 #define CM_R_028BF0_PA_CL_GB_HORZ_CLIP_ADJ 0x28bf0 2268 #define CM_R_028BF4_PA_CL_GB_HORZ_DISC_ADJ 0x28bf4 2269 2270 #define CM_R_028BF8_PA_SC_AA_SAMPLE_LOCS_PIXEL_X0Y0_0 0x28bf8 2271 #define CM_R_028BFC_PA_SC_AA_SAMPLE_LOCS_PIXEL_X0Y0_1 0x28bfc 2272 #define CM_R_028C00_PA_SC_AA_SAMPLE_LOCS_PIXEL_X0Y0_2 0x28c00 2273 #define CM_R_028C04_PA_SC_AA_SAMPLE_LOCS_PIXEL_X0Y0_3 0x28c04 2274 2275 #define CM_R_028C08_PA_SC_AA_SAMPLE_LOCS_PIXEL_X1Y0_0 0x28c08 2276 #define CM_R_028C0C_PA_SC_AA_SAMPLE_LOCS_PIXEL_X1Y0_1 0x28c0c 2277 #define CM_R_028C10_PA_SC_AA_SAMPLE_LOCS_PIXEL_X1Y0_2 0x28c10 2278 #define CM_R_028C14_PA_SC_AA_SAMPLE_LOCS_PIXEL_X1Y0_3 0x28c14 2279 2280 #define CM_R_028C18_PA_SC_AA_SAMPLE_LOCS_PIXEL_X0Y1_0 0x28c18 2281 #define CM_R_028C1C_PA_SC_AA_SAMPLE_LOCS_PIXEL_X0Y1_1 0x28c1c 2282 #define CM_R_028C20_PA_SC_AA_SAMPLE_LOCS_PIXEL_X0Y1_2 0x28c20 2283 #define CM_R_028C24_PA_SC_AA_SAMPLE_LOCS_PIXEL_X0Y1_3 0x28c24 2284 2285 #define CM_R_028C28_PA_SC_AA_SAMPLE_LOCS_PIXEL_X1Y1_0 0x28c28 2286 #define CM_R_028C2C_PA_SC_AA_SAMPLE_LOCS_PIXEL_X1Y1_1 0x28c2c 2287 #define CM_R_028C30_PA_SC_AA_SAMPLE_LOCS_PIXEL_X1Y1_2 0x28c30 2288 #define CM_R_028C34_PA_SC_AA_SAMPLE_LOCS_PIXEL_X1Y1_3 0x28c34 2289 2290 #define CM_R_028C38_PA_SC_AA_MASK_X0Y0_X1Y0 0x28c38 2291 #define CM_R_028C3C_PA_SC_AA_MASK_X0Y1_X1Y1 0x28c3c 2292 2293 #define CM_R_028AA8_IA_MULTI_VGT_PARAM 0x028AA8 2294 #define S_028AA8_PRIMGROUP_SIZE(x) (((x) & 0xFFFF) << 0) 2295 #define G_028AA8_PRIMGROUP_SIZE(x) (((x) >> 0) & 0xFFFF) 2296 #define C_028AA8_PRIMGROUP_SIZE 0xFFFF0000 2297 #define S_028AA8_PARTIAL_VS_WAVE_ON(x) (((x) & 0x1) << 16) 2298 #define G_028AA8_PARTIAL_VS_WAVE_ON(x) (((x) >> 16) & 0x1) 2299 #define C_028AA8_PARTIAL_VS_WAVE_ON 0xFFFEFFFF 2300 #define S_028AA8_SWITCH_ON_EOP(x) (((x) & 0x1) << 17) 2301 #define G_028AA8_SWITCH_ON_EOP(x) (((x) >> 17) & 0x1) 2302 #define C_028AA8_SWITCH_ON_EOP 0xFFFDFFFF 2303 2304 #endif 2305