Alex Deucher | 6538834 | 2010-03-05 19:22:24 -0500 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2009 Advanced Micro Devices, Inc. |
| 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 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
| 8 | * and/or sell copies of the Software, and to permit persons to whom the |
| 9 | * 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 NONINFRINGEMENT. IN NO EVENT SHALL |
| 18 | * THE COPYRIGHT HOLDER(S) AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR |
| 19 | * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
| 20 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
| 21 | * DEALINGS IN THE SOFTWARE. |
| 22 | * |
| 23 | * Authors: |
| 24 | * Alex Deucher <alexander.deucher@amd.com> |
| 25 | */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 26 | |
| 27 | #include <linux/types.h> |
| 28 | #include <linux/kernel.h> |
| 29 | |
Alex Deucher | 6538834 | 2010-03-05 19:22:24 -0500 | [diff] [blame] | 30 | /* |
| 31 | * R6xx+ cards need to use the 3D engine to blit data which requires |
| 32 | * quite a bit of hw state setup. Rather than pull the whole 3D driver |
| 33 | * (which normally generates the 3D state) into the DRM, we opt to use |
| 34 | * statically generated state tables. The regsiter state and shaders |
| 35 | * were hand generated to support blitting functionality. See the 3D |
| 36 | * driver or documentation for descriptions of the registers and |
| 37 | * shader instructions. |
| 38 | */ |
| 39 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 40 | const u32 r6xx_default_state[] = |
| 41 | { |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 42 | 0xc0002400, /* START_3D_CMDBUF */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 43 | 0x00000000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 44 | |
| 45 | 0xc0012800, /* CONTEXT_CONTROL */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 46 | 0x80000000, |
| 47 | 0x80000000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 48 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 49 | 0xc0016800, |
| 50 | 0x00000010, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 51 | 0x00008000, /* WAIT_UNTIL */ |
| 52 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 53 | 0xc0016800, |
| 54 | 0x00000542, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 55 | 0x07000003, /* TA_CNTL_AUX */ |
| 56 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 57 | 0xc0016800, |
| 58 | 0x000005c5, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 59 | 0x00000000, /* VC_ENHANCE */ |
| 60 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 61 | 0xc0016800, |
| 62 | 0x00000363, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 63 | 0x00000000, /* SQ_DYN_GPR_CNTL_PS_FLUSH_REQ */ |
| 64 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 65 | 0xc0016800, |
| 66 | 0x0000060c, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 67 | 0x82000000, /* DB_DEBUG */ |
| 68 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 69 | 0xc0016800, |
| 70 | 0x0000060e, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 71 | 0x01020204, /* DB_WATERMARKS */ |
| 72 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 73 | 0xc0026f00, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 74 | 0x00000000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 75 | 0x00000000, /* SQ_VTX_BASE_VTX_LOC */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 76 | 0x00000000, /* SQ_VTX_START_INST_LOC */ |
| 77 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 78 | 0xc0096900, |
| 79 | 0x0000022a, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 80 | 0x00000000, /* SQ_ESGS_RING_ITEMSIZE */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 81 | 0x00000000, |
| 82 | 0x00000000, |
| 83 | 0x00000000, |
| 84 | 0x00000000, |
| 85 | 0x00000000, |
| 86 | 0x00000000, |
| 87 | 0x00000000, |
| 88 | 0x00000000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 89 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 90 | 0xc0016900, |
| 91 | 0x00000004, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 92 | 0x00000000, /* DB_DEPTH_INFO */ |
| 93 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 94 | 0xc0026900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 95 | 0x0000000a, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 96 | 0x00000000, /* DB_STENCIL_CLEAR */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 97 | 0x00000000, /* DB_DEPTH_CLEAR */ |
| 98 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 99 | 0xc0016900, |
| 100 | 0x00000200, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 101 | 0x00000000, /* DB_DEPTH_CONTROL */ |
| 102 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 103 | 0xc0026900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 104 | 0x00000343, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 105 | 0x00000060, /* DB_RENDER_CONTROL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 106 | 0x00000040, /* DB_RENDER_OVERRIDE */ |
| 107 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 108 | 0xc0016900, |
| 109 | 0x00000351, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 110 | 0x0000aa00, /* DB_ALPHA_TO_MASK */ |
| 111 | |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame^] | 112 | 0xc0036900, |
| 113 | 0x00000100, |
| 114 | 0x00000800, /* VGT_MAX_VTX_INDX */ |
| 115 | 0x00000000, /* VGT_MIN_VTX_INDX */ |
| 116 | 0x00000000, /* VGT_INDX_OFFSET */ |
| 117 | |
| 118 | 0xc0016900, |
| 119 | 0x00000103, |
| 120 | 0x00000000, /* VGT_MULTI_PRIM_IB_RESET_INDX */ |
| 121 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 122 | 0xc0016900, |
| 123 | 0x00000104, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 124 | 0x00000000, /* SX_ALPHA_TEST_CONTROL */ |
| 125 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 126 | 0xc0076900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 127 | 0x00000105, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 128 | 0x00000000, /* CB_BLEND_RED */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 129 | 0x00000000, |
| 130 | 0x00000000, |
| 131 | 0x00000000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 132 | 0x00000000, /* CB_FOG_RED */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 133 | 0x00000000, |
| 134 | 0x00000000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 135 | |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame^] | 136 | 0xc0026900, |
| 137 | 0x0000010c, |
| 138 | 0x00000000, /* DB_STENCILREFMASK */ |
| 139 | 0x00000000, /* DB_STENCILREFMASK_BF */ |
| 140 | |
| 141 | 0xc0016900, |
| 142 | 0x0000010e, |
| 143 | 0x00000000, /* SX_ALPHA_REF */ |
| 144 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 145 | 0xc0046900, |
| 146 | 0x0000030c, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 147 | 0x01000000, /* CB_CLRCMP_CNTL */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 148 | 0x00000000, |
| 149 | 0x00000000, |
| 150 | 0x00000000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 151 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 152 | 0xc0046900, |
| 153 | 0x00000048, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 154 | 0x3f800000, /* CB_CLEAR_RED */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 155 | 0x00000000, |
| 156 | 0x3f800000, |
| 157 | 0x3f800000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 158 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 159 | 0xc0016900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 160 | 0x00000080, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 161 | 0x00000000, /* PA_SC_WINDOW_OFFSET */ |
| 162 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 163 | 0xc00a6900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 164 | 0x00000083, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 165 | 0x0000ffff, /* PA_SC_CLIP_RECT_RULE */ |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 166 | 0x00000000, /* PA_SC_CLIPRECT_0_TL */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 167 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 168 | 0x00000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 169 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 170 | 0x00000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 171 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 172 | 0x00000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 173 | 0x20002000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 174 | 0x00000000, /* PA_SC_EDGERULE */ |
| 175 | |
Alex Deucher | 363c6a1 | 2010-07-26 13:47:54 -0400 | [diff] [blame] | 176 | 0xc0406900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 177 | 0x00000094, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 178 | 0x80000000, /* PA_SC_VPORT_SCISSOR_0_TL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 179 | 0x20002000, /* PA_SC_VPORT_SCISSOR_0_BR */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 180 | 0x80000000, /* PA_SC_VPORT_SCISSOR_1_TL */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 181 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 182 | 0x80000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 183 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 184 | 0x80000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 185 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 186 | 0x80000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 187 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 188 | 0x80000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 189 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 190 | 0x80000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 191 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 192 | 0x80000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 193 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 194 | 0x80000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 195 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 196 | 0x80000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 197 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 198 | 0x80000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 199 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 200 | 0x80000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 201 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 202 | 0x80000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 203 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 204 | 0x80000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 205 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 206 | 0x80000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 207 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 208 | 0x80000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 209 | 0x20002000, |
Alex Deucher | 363c6a1 | 2010-07-26 13:47:54 -0400 | [diff] [blame] | 210 | 0x00000000, /* PA_SC_VPORT_ZMIN_0 */ |
| 211 | 0x3f800000, |
| 212 | 0x00000000, |
| 213 | 0x3f800000, |
| 214 | 0x00000000, |
| 215 | 0x3f800000, |
| 216 | 0x00000000, |
| 217 | 0x3f800000, |
| 218 | 0x00000000, |
| 219 | 0x3f800000, |
| 220 | 0x00000000, |
| 221 | 0x3f800000, |
| 222 | 0x00000000, |
| 223 | 0x3f800000, |
| 224 | 0x00000000, |
| 225 | 0x3f800000, |
| 226 | 0x00000000, |
| 227 | 0x3f800000, |
| 228 | 0x00000000, |
| 229 | 0x3f800000, |
| 230 | 0x00000000, |
| 231 | 0x3f800000, |
| 232 | 0x00000000, |
| 233 | 0x3f800000, |
| 234 | 0x00000000, |
| 235 | 0x3f800000, |
| 236 | 0x00000000, |
| 237 | 0x3f800000, |
| 238 | 0x00000000, |
| 239 | 0x3f800000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 240 | 0x00000000, |
| 241 | 0x3f800000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 242 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 243 | 0xc0016900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 244 | 0x00000292, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 245 | 0x00000000, /* PA_SC_MPASS_PS_CNTL */ |
| 246 | |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame^] | 247 | 0xc0016900, |
| 248 | 0x00000293, |
| 249 | 0x00004010, /* PA_SC_MODE_CNTL */ |
| 250 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 251 | 0xc0066900, |
| 252 | 0x0000010f, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 253 | 0x00000000, /* PA_CL_VPORT_0_XSCALE */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 254 | 0x00000000, |
| 255 | 0x00000000, |
| 256 | 0x00000000, |
| 257 | 0x00000000, |
| 258 | 0x00000000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 259 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 260 | 0xc0026900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame^] | 261 | 0x00000300, |
| 262 | 0x00000000, /* PA_SC_LINE_CNTL */ |
| 263 | 0x00000000, /* PA_SC_AA_CONFIG */ |
| 264 | |
| 265 | 0xc0016900, |
| 266 | 0x00000302, |
| 267 | 0x0000002d, /* PA_SU_VTX_CNTL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 268 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 269 | 0xc0046900, |
| 270 | 0x00000303, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 271 | 0x3f800000, /* PA_CL_GB_VERT_CLIP_ADJ */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 272 | 0x3f800000, |
| 273 | 0x3f800000, |
| 274 | 0x3f800000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 275 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 276 | 0xc0026900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame^] | 277 | 0x00000307, |
| 278 | 0x00000000, /* PA_SC_SAMPLE_LOCS_MCTX */ |
| 279 | 0x00000000, |
| 280 | |
| 281 | 0xc0016900, |
| 282 | 0x00000312, |
| 283 | 0xffffffff, /* PA_SC_AA_MASK */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 284 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 285 | 0xc0016900, |
| 286 | 0x0000037e, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 287 | 0x00000000, /* PA_SU_POLY_OFFSET_DB_FMT_CNTL */ |
| 288 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 289 | 0xc0016900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame^] | 290 | 0x0000037f, |
| 291 | 0x00000000, /* PA_SU_POLY_OFFSET_CLAMP */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 292 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 293 | 0xc0016900, |
| 294 | 0x00000380, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 295 | 0x00000000, /* PA_SU_POLY_OFFSET_FRONT_SCALE */ |
| 296 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 297 | 0xc0016900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 298 | 0x00000381, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 299 | 0x00000000, /* PA_SU_POLY_OFFSET_FRONT_OFFSET */ |
| 300 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 301 | 0xc0016900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame^] | 302 | 0x00000382, |
| 303 | 0x00000000, /* PA_SU_POLY_OFFSET_BACK_SCALE */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 304 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 305 | 0xc0016900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame^] | 306 | 0x00000383, |
| 307 | 0x00000000, /* PA_SU_POLY_OFFSET_BACK_OFFSET */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 308 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 309 | 0xc0046900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 310 | 0x000001b6, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 311 | 0x00000000, /* SPI_INPUT_Z */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 312 | 0x00000000, /* SPI_FOG_CNTL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 313 | 0x00000000, /* SPI_FOG_FUNC_SCALE */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 314 | 0x00000000, /* SPI_FOG_FUNC_BIAS */ |
| 315 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 316 | 0xc0016900, |
| 317 | 0x00000225, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 318 | 0x00000000, /* SQ_PGM_START_FS */ |
| 319 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 320 | 0xc0016900, |
| 321 | 0x00000229, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 322 | 0x00000000, /* SQ_PGM_RESOURCES_FS */ |
| 323 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 324 | 0xc0016900, |
| 325 | 0x00000237, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 326 | 0x00000000, /* SQ_PGM_CF_OFFSET_FS */ |
| 327 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 328 | 0xc0026900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 329 | 0x000002a8, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 330 | 0x00000000, /* VGT_INSTANCE_STEP_RATE_0 */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 331 | 0x00000000, /* VGT_INSTANCE_STEP_RATE_1 */ |
| 332 | |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame^] | 333 | 0xc0026900, |
| 334 | 0x00000280, |
| 335 | 0x00000000, /* PA_SU_POINT_SIZE */ |
| 336 | 0x00000000, /* PA_SU_POINT_MINMAX */ |
| 337 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 338 | 0xc0016900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame^] | 339 | 0x00000282, |
| 340 | 0x00000008, /* PA_SU_LINE_CNTL */ |
| 341 | |
| 342 | 0xc0016900, |
| 343 | 0x00000283, |
| 344 | 0x00000000, /* PA_SC_LINE_STIPPLE */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 345 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 346 | 0xc0016900, |
| 347 | 0x00000284, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 348 | 0x00000000, /* VGT_OUTPUT_PATH_CNTL */ |
| 349 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 350 | 0xc0016900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 351 | 0x00000285, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 352 | 0x00000000, /* VGT_HOS_CNTL */ |
| 353 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 354 | 0xc00a6900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 355 | 0x00000286, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 356 | 0x00000000, /* VGT_HOS_MAX_TESS_LEVEL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 357 | 0x00000000, /* VGT_HOS_MIN_TESS_LEVEL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 358 | 0x00000000, /* VGT_HOS_REUSE_DEPTH */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 359 | 0x00000000, /* VGT_GROUP_PRIM_TYPE */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 360 | 0x00000000, /* VGT_GROUP_FIRST_DECR */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 361 | 0x00000000, /* VGT_GROUP_DECR */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 362 | 0x00000000, /* VGT_GROUP_VECT_0_CNTL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 363 | 0x00000000, /* VGT_GROUP_VECT_1_CNTL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 364 | 0x00000000, /* VGT_GROUP_VECT_0_FMT_CNTL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 365 | 0x00000000, /* VGT_GROUP_VECT_1_FMT_CNTL */ |
| 366 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 367 | 0xc0016900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame^] | 368 | 0x00000290, |
| 369 | 0x00000000, /* VGT_GS_MODE */ |
| 370 | |
| 371 | 0xc0016900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 372 | 0x000002a1, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 373 | 0x00000000, /* VGT_PRIMITIVEID_EN */ |
| 374 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 375 | 0xc0016900, |
| 376 | 0x000002a5, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 377 | 0x00000000, /* VGT_MULTI_PRIM_ID_RESET_EN */ |
| 378 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 379 | 0xc0036900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 380 | 0x000002ac, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 381 | 0x00000000, /* VGT_STRMOUT_EN */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 382 | 0x00000000, /* VGT_REUSE_OFF */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 383 | 0x00000000, /* VGT_VTX_CNT_EN */ |
| 384 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 385 | 0xc0016900, |
| 386 | 0x000002c8, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 387 | 0x00000000, /* VGT_STRMOUT_BUFFER_EN */ |
| 388 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 389 | 0xc0016900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame^] | 390 | 0x00000202, |
| 391 | 0x00cc0000, /* CB_COLOR_CONTROL */ |
| 392 | |
| 393 | 0xc0016900, |
| 394 | 0x00000203, |
| 395 | 0x00000210, /* DB_SHADER_CNTL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 396 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 397 | 0xc0016900, |
| 398 | 0x00000204, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 399 | 0x00010000, /* PA_CL_CLIP_CNTL */ |
| 400 | |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame^] | 401 | 0xc0016900, |
| 402 | 0x00000205, |
| 403 | 0x00000244, /* PA_SU_SC_MODE_CNTL */ |
| 404 | |
| 405 | 0xc0016900, |
| 406 | 0x00000206, |
| 407 | 0x00000100, /* PA_CL_VTE_CNTL */ |
| 408 | |
| 409 | 0xc0026900, |
| 410 | 0x00000207, |
| 411 | 0x00000000, /* PA_CL_VS_OUT_CNTL */ |
| 412 | 0x00000000, /* PA_CL_NANINF_CNTL */ |
| 413 | |
| 414 | 0xc0016900, |
| 415 | 0x0000008e, |
| 416 | 0x0000000f, /* CB_TARGET_MASK */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 417 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 418 | 0xc0016900, |
| 419 | 0x0000008f, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 420 | 0x0000000f, /* CB_SHADER_MASK */ |
| 421 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 422 | 0xc0016900, |
| 423 | 0x000001e8, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 424 | 0x00000001, /* CB_SHADER_CONTROL */ |
| 425 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 426 | 0xc0016900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame^] | 427 | 0x00000185, |
| 428 | 0x00000000, /* SPI_VS_OUT_ID_0 */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 429 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 430 | 0xc0016900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame^] | 431 | 0x00000191, |
| 432 | 0x00000b00, /* SPI_PS_INPUT_CNTL_0 */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 433 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 434 | 0xc0016900, |
| 435 | 0x000001b1, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 436 | 0x00000000, /* SPI_VS_OUT_CONFIG */ |
| 437 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 438 | 0xc0016900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame^] | 439 | 0x000001b2, |
| 440 | 0x00000000, /* SPI_THREAD_GROUPING */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 441 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 442 | 0xc0026900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 443 | 0x000001b3, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 444 | 0x00000001, /* SPI_PS_IN_CONTROL_0 */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 445 | 0x00000000, /* SPI_PS_IN_CONTROL_1 */ |
| 446 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 447 | 0xc0016900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 448 | 0x000001b5, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 449 | 0x00000000, /* SPI_INTERP_CONTROL_0 */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame^] | 450 | |
| 451 | 0xc0036e00, /* SET_SAMPLER */ |
| 452 | 0x00000000, |
| 453 | 0x00000012, |
| 454 | 0x00000000, |
| 455 | 0x00000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 456 | }; |
| 457 | |
| 458 | const u32 r7xx_default_state[] = |
| 459 | { |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 460 | 0xc0012800, /* CONTEXT_CONTROL */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 461 | 0x80000000, |
| 462 | 0x80000000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 463 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 464 | 0xc0016800, |
| 465 | 0x00000010, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 466 | 0x00008000, /* WAIT_UNTIL */ |
| 467 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 468 | 0xc0016800, |
| 469 | 0x00000542, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 470 | 0x07000002, /* TA_CNTL_AUX */ |
| 471 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 472 | 0xc0016800, |
| 473 | 0x000005c5, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 474 | 0x00000000, /* VC_ENHANCE */ |
| 475 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 476 | 0xc0016800, |
| 477 | 0x00000363, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 478 | 0x00004000, /* SQ_DYN_GPR_CNTL_PS_FLUSH_REQ */ |
| 479 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 480 | 0xc0016800, |
| 481 | 0x0000060c, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 482 | 0x00000000, /* DB_DEBUG */ |
| 483 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 484 | 0xc0016800, |
| 485 | 0x0000060e, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 486 | 0x00420204, /* DB_WATERMARKS */ |
| 487 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 488 | 0xc0026f00, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 489 | 0x00000000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 490 | 0x00000000, /* SQ_VTX_BASE_VTX_LOC */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 491 | 0x00000000, /* SQ_VTX_START_INST_LOC */ |
| 492 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 493 | 0xc0096900, |
| 494 | 0x0000022a, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 495 | 0x00000000, /* SQ_ESGS_RING_ITEMSIZE */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 496 | 0x00000000, |
| 497 | 0x00000000, |
| 498 | 0x00000000, |
| 499 | 0x00000000, |
| 500 | 0x00000000, |
| 501 | 0x00000000, |
| 502 | 0x00000000, |
| 503 | 0x00000000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 504 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 505 | 0xc0016900, |
| 506 | 0x00000004, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 507 | 0x00000000, /* DB_DEPTH_INFO */ |
| 508 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 509 | 0xc0026900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 510 | 0x0000000a, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 511 | 0x00000000, /* DB_STENCIL_CLEAR */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 512 | 0x00000000, /* DB_DEPTH_CLEAR */ |
| 513 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 514 | 0xc0016900, |
| 515 | 0x00000200, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 516 | 0x00000000, /* DB_DEPTH_CONTROL */ |
| 517 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 518 | 0xc0026900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 519 | 0x00000343, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 520 | 0x00000060, /* DB_RENDER_CONTROL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 521 | 0x00000000, /* DB_RENDER_OVERRIDE */ |
| 522 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 523 | 0xc0016900, |
| 524 | 0x00000351, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 525 | 0x0000aa00, /* DB_ALPHA_TO_MASK */ |
| 526 | |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame^] | 527 | 0xc0036900, |
| 528 | 0x00000100, |
| 529 | 0x00000800, /* VGT_MAX_VTX_INDX */ |
| 530 | 0x00000000, /* VGT_MIN_VTX_INDX */ |
| 531 | 0x00000000, /* VGT_INDX_OFFSET */ |
| 532 | |
| 533 | 0xc0016900, |
| 534 | 0x00000103, |
| 535 | 0x00000000, /* VGT_MULTI_PRIM_IB_RESET_INDX */ |
| 536 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 537 | 0xc0016900, |
| 538 | 0x00000104, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 539 | 0x00000000, /* SX_ALPHA_TEST_CONTROL */ |
| 540 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 541 | 0xc0046900, |
| 542 | 0x00000105, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 543 | 0x00000000, /* CB_BLEND_RED */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 544 | 0x00000000, |
| 545 | 0x00000000, |
| 546 | 0x00000000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 547 | |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame^] | 548 | 0xc0026900, |
| 549 | 0x0000010c, |
| 550 | 0x00000000, /* DB_STENCILREFMASK */ |
| 551 | 0x00000000, /* DB_STENCILREFMASK_BF */ |
| 552 | |
| 553 | 0xc0016900, |
| 554 | 0x0000010e, |
| 555 | 0x00000000, /* SX_ALPHA_REF */ |
| 556 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 557 | 0xc0046900, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 558 | 0x0000030c, /* CB_CLRCMP_CNTL */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 559 | 0x01000000, |
| 560 | 0x00000000, |
| 561 | 0x00000000, |
| 562 | 0x00000000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 563 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 564 | 0xc0016900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 565 | 0x00000080, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 566 | 0x00000000, /* PA_SC_WINDOW_OFFSET */ |
| 567 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 568 | 0xc00a6900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 569 | 0x00000083, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 570 | 0x0000ffff, /* PA_SC_CLIP_RECT_RULE */ |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 571 | 0x00000000, /* PA_SC_CLIPRECT_0_TL */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 572 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 573 | 0x00000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 574 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 575 | 0x00000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 576 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 577 | 0x00000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 578 | 0x20002000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 579 | 0xaaaaaaaa, /* PA_SC_EDGERULE */ |
| 580 | |
Alex Deucher | 363c6a1 | 2010-07-26 13:47:54 -0400 | [diff] [blame] | 581 | 0xc0406900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 582 | 0x00000094, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 583 | 0x80000000, /* PA_SC_VPORT_SCISSOR_0_TL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 584 | 0x20002000, /* PA_SC_VPORT_SCISSOR_0_BR */ |
Alex Deucher | 363c6a1 | 2010-07-26 13:47:54 -0400 | [diff] [blame] | 585 | 0x80000000, /* PA_SC_VPORT_SCISSOR_1_TL */ |
| 586 | 0x20002000, |
| 587 | 0x80000000, |
| 588 | 0x20002000, |
| 589 | 0x80000000, |
| 590 | 0x20002000, |
| 591 | 0x80000000, |
| 592 | 0x20002000, |
| 593 | 0x80000000, |
| 594 | 0x20002000, |
| 595 | 0x80000000, |
| 596 | 0x20002000, |
| 597 | 0x80000000, |
| 598 | 0x20002000, |
| 599 | 0x80000000, |
| 600 | 0x20002000, |
| 601 | 0x80000000, |
| 602 | 0x20002000, |
| 603 | 0x80000000, |
| 604 | 0x20002000, |
| 605 | 0x80000000, |
| 606 | 0x20002000, |
| 607 | 0x80000000, |
| 608 | 0x20002000, |
| 609 | 0x80000000, |
| 610 | 0x20002000, |
| 611 | 0x80000000, |
| 612 | 0x20002000, |
| 613 | 0x80000000, |
| 614 | 0x20002000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 615 | 0x00000000, /* PA_SC_VPORT_ZMIN_0 */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 616 | 0x3f800000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 617 | 0x00000000, |
| 618 | 0x3f800000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 619 | 0x00000000, |
| 620 | 0x3f800000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 621 | 0x00000000, |
| 622 | 0x3f800000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 623 | 0x00000000, |
| 624 | 0x3f800000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 625 | 0x00000000, |
| 626 | 0x3f800000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 627 | 0x00000000, |
| 628 | 0x3f800000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 629 | 0x00000000, |
| 630 | 0x3f800000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 631 | 0x00000000, |
| 632 | 0x3f800000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 633 | 0x00000000, |
| 634 | 0x3f800000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 635 | 0x00000000, |
| 636 | 0x3f800000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 637 | 0x00000000, |
| 638 | 0x3f800000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 639 | 0x00000000, |
| 640 | 0x3f800000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 641 | 0x00000000, |
| 642 | 0x3f800000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 643 | 0x00000000, |
| 644 | 0x3f800000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 645 | 0x00000000, |
| 646 | 0x3f800000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 647 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 648 | 0xc0016900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 649 | 0x00000292, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 650 | 0x00000000, /* PA_SC_MPASS_PS_CNTL */ |
| 651 | |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame^] | 652 | 0xc0016900, |
| 653 | 0x00000293, |
| 654 | 0x00514000, /* PA_SC_MODE_CNTL */ |
| 655 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 656 | 0xc0066900, |
| 657 | 0x0000010f, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 658 | 0x00000000, /* PA_CL_VPORT_0_XSCALE */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 659 | 0x00000000, |
| 660 | 0x00000000, |
| 661 | 0x00000000, |
| 662 | 0x00000000, |
| 663 | 0x00000000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 664 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 665 | 0xc0026900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame^] | 666 | 0x00000300, |
| 667 | 0x00000000, /* PA_SC_LINE_CNTL */ |
| 668 | 0x00000000, /* PA_SC_AA_CONFIG */ |
| 669 | |
| 670 | 0xc0016900, |
| 671 | 0x00000302, |
| 672 | 0x0000002d, /* PA_SU_VTX_CNTL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 673 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 674 | 0xc0046900, |
| 675 | 0x00000303, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 676 | 0x3f800000, /* PA_CL_GB_VERT_CLIP_ADJ */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 677 | 0x3f800000, |
| 678 | 0x3f800000, |
| 679 | 0x3f800000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 680 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 681 | 0xc0026900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame^] | 682 | 0x00000307, |
| 683 | 0x00000000, /* PA_SC_SAMPLE_LOCS_MCTX */ |
| 684 | 0x00000000, |
| 685 | |
| 686 | 0xc0016900, |
| 687 | 0x00000312, |
| 688 | 0xffffffff, /* PA_SC_AA_MASK */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 689 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 690 | 0xc0016900, |
| 691 | 0x0000037e, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 692 | 0x00000000, /* PA_SU_POLY_OFFSET_DB_FMT_CNTL */ |
| 693 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 694 | 0xc0016900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame^] | 695 | 0x0000037f, |
| 696 | 0x00000000, /* PA_SU_POLY_OFFSET_CLAMP */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 697 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 698 | 0xc0016900, |
| 699 | 0x00000380, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 700 | 0x00000000, /* PA_SU_POLY_OFFSET_FRONT_SCALE */ |
| 701 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 702 | 0xc0016900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 703 | 0x00000381, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 704 | 0x00000000, /* PA_SU_POLY_OFFSET_FRONT_OFFSET */ |
| 705 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 706 | 0xc0016900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame^] | 707 | 0x00000382, |
| 708 | 0x00000000, /* PA_SU_POLY_OFFSET_BACK_SCALE */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 709 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 710 | 0xc0016900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame^] | 711 | 0x00000383, |
| 712 | 0x00000000, /* PA_SU_POLY_OFFSET_BACK_OFFSET */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 713 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 714 | 0xc0046900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 715 | 0x000001b6, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 716 | 0x00000000, /* SPI_INPUT_Z */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 717 | 0x00000000, /* SPI_FOG_CNTL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 718 | 0x00000000, /* SPI_FOG_FUNC_SCALE */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 719 | 0x00000000, /* SPI_FOG_FUNC_BIAS */ |
| 720 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 721 | 0xc0016900, |
| 722 | 0x00000225, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 723 | 0x00000000, /* SQ_PGM_START_FS */ |
| 724 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 725 | 0xc0016900, |
| 726 | 0x00000229, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 727 | 0x00000000, /* SQ_PGM_RESOURCES_FS */ |
| 728 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 729 | 0xc0016900, |
| 730 | 0x00000237, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 731 | 0x00000000, /* SQ_PGM_CF_OFFSET_FS */ |
| 732 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 733 | 0xc0026900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 734 | 0x000002a8, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 735 | 0x00000000, /* VGT_INSTANCE_STEP_RATE_0 */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 736 | 0x00000000, /* VGT_INSTANCE_STEP_RATE_1 */ |
| 737 | |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame^] | 738 | 0xc0026900, |
| 739 | 0x00000280, |
| 740 | 0x00000000, /* PA_SU_POINT_SIZE */ |
| 741 | 0x00000000, /* PA_SU_POINT_MINMAX */ |
| 742 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 743 | 0xc0016900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame^] | 744 | 0x00000282, |
| 745 | 0x00000008, /* PA_SU_LINE_CNTL */ |
| 746 | |
| 747 | 0xc0016900, |
| 748 | 0x00000283, |
| 749 | 0x00000000, /* PA_SC_LINE_STIPPLE */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 750 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 751 | 0xc0016900, |
| 752 | 0x00000284, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 753 | 0x00000000, /* VGT_OUTPUT_PATH_CNTL */ |
| 754 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 755 | 0xc00b6900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 756 | 0x00000285, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 757 | 0x00000000, /* VGT_HOS_CNTL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 758 | 0x00000000, /* VGT_HOS_MAX_TESS_LEVEL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 759 | 0x00000000, /* VGT_HOS_MIN_TESS_LEVEL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 760 | 0x00000000, /* VGT_HOS_REUSE_DEPTH */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 761 | 0x00000000, /* VGT_GROUP_PRIM_TYPE */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 762 | 0x00000000, /* VGT_GROUP_FIRST_DECR */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 763 | 0x00000000, /* VGT_GROUP_DECR */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 764 | 0x00000000, /* VGT_GROUP_VECT_0_CNTL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 765 | 0x00000000, /* VGT_GROUP_VECT_1_CNTL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 766 | 0x00000000, /* VGT_GROUP_VECT_0_FMT_CNTL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 767 | 0x00000000, /* VGT_GROUP_VECT_1_FMT_CNTL */ |
| 768 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 769 | 0xc0016900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame^] | 770 | 0x00000290, |
| 771 | 0x00000000, /* VGT_GS_MODE */ |
| 772 | |
| 773 | 0xc0016900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 774 | 0x000002a1, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 775 | 0x00000000, /* VGT_PRIMITIVEID_EN */ |
| 776 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 777 | 0xc0016900, |
| 778 | 0x000002a5, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 779 | 0x00000000, /* VGT_MULTI_PRIM_ID_RESET_EN */ |
| 780 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 781 | 0xc0036900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 782 | 0x000002ac, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 783 | 0x00000000, /* VGT_STRMOUT_EN */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 784 | 0x00000000, /* VGT_REUSE_OFF */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 785 | 0x00000000, /* VGT_VTX_CNT_EN */ |
| 786 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 787 | 0xc0016900, |
| 788 | 0x000002c8, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 789 | 0x00000000, /* VGT_STRMOUT_BUFFER_EN */ |
| 790 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 791 | 0xc0016900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame^] | 792 | 0x00000202, |
| 793 | 0x00cc0000, /* CB_COLOR_CONTROL */ |
| 794 | |
| 795 | 0xc0016900, |
| 796 | 0x00000203, |
| 797 | 0x00000210, /* DB_SHADER_CNTL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 798 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 799 | 0xc0016900, |
| 800 | 0x00000204, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 801 | 0x00010000, /* PA_CL_CLIP_CNTL */ |
| 802 | |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame^] | 803 | 0xc0016900, |
| 804 | 0x00000205, |
| 805 | 0x00000244, /* PA_SU_SC_MODE_CNTL */ |
| 806 | |
| 807 | 0xc0016900, |
| 808 | 0x00000206, |
| 809 | 0x00000100, /* PA_CL_VTE_CNTL */ |
| 810 | |
| 811 | 0xc0026900, |
| 812 | 0x00000207, |
| 813 | 0x00000000, /* PA_CL_VS_OUT_CNTL */ |
| 814 | 0x00000000, /* PA_CL_NANINF_CNTL */ |
| 815 | |
| 816 | 0xc0016900, |
| 817 | 0x0000008e, |
| 818 | 0x0000000f, /* CB_TARGET_MASK */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 819 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 820 | 0xc0016900, |
| 821 | 0x0000008f, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 822 | 0x0000000f, /* CB_SHADER_MASK */ |
| 823 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 824 | 0xc0016900, |
| 825 | 0x000001e8, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 826 | 0x00000001, /* CB_SHADER_CONTROL */ |
| 827 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 828 | 0xc0016900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame^] | 829 | 0x00000185, |
| 830 | 0x00000000, /* SPI_VS_OUT_ID_0 */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 831 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 832 | 0xc0016900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame^] | 833 | 0x00000191, |
| 834 | 0x00000b00, /* SPI_PS_INPUT_CNTL_0 */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 835 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 836 | 0xc0016900, |
| 837 | 0x000001b1, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 838 | 0x00000000, /* SPI_VS_OUT_CONFIG */ |
| 839 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 840 | 0xc0016900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame^] | 841 | 0x000001b2, |
| 842 | 0x00000001, /* SPI_THREAD_GROUPING */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 843 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 844 | 0xc0026900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 845 | 0x000001b3, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 846 | 0x00000001, /* SPI_PS_IN_CONTROL_0 */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 847 | 0x00000000, /* SPI_PS_IN_CONTROL_1 */ |
| 848 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 849 | 0xc0016900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 850 | 0x000001b5, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 851 | 0x00000000, /* SPI_INTERP_CONTROL_0 */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame^] | 852 | |
| 853 | 0xc0036e00, /* SET_SAMPLER */ |
| 854 | 0x00000000, |
| 855 | 0x00000012, |
| 856 | 0x00000000, |
| 857 | 0x00000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 858 | }; |
| 859 | |
| 860 | /* same for r6xx/r7xx */ |
| 861 | const u32 r6xx_vs[] = |
| 862 | { |
| 863 | 0x00000004, |
| 864 | 0x81000000, |
| 865 | 0x0000203c, |
| 866 | 0x94000b08, |
| 867 | 0x00004000, |
| 868 | 0x14200b1a, |
| 869 | 0x00000000, |
| 870 | 0x00000000, |
| 871 | 0x3c000000, |
| 872 | 0x68cd1000, |
| 873 | 0x00080000, |
| 874 | 0x00000000, |
| 875 | }; |
| 876 | |
| 877 | const u32 r6xx_ps[] = |
| 878 | { |
| 879 | 0x00000002, |
| 880 | 0x80800000, |
| 881 | 0x00000000, |
| 882 | 0x94200688, |
| 883 | 0x00000010, |
| 884 | 0x000d1000, |
| 885 | 0xb0800000, |
| 886 | 0x00000000, |
| 887 | }; |
| 888 | |
| 889 | const u32 r6xx_ps_size = ARRAY_SIZE(r6xx_ps); |
| 890 | const u32 r6xx_vs_size = ARRAY_SIZE(r6xx_vs); |
| 891 | const u32 r6xx_default_size = ARRAY_SIZE(r6xx_default_state); |
| 892 | const u32 r7xx_default_size = ARRAY_SIZE(r7xx_default_state); |