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 | 43a7d2d | 2010-07-27 11:20:54 -0400 | [diff] [blame] | 112 | 0xc00f6900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 113 | 0x00000100, |
| 114 | 0x00000800, /* VGT_MAX_VTX_INDX */ |
| 115 | 0x00000000, /* VGT_MIN_VTX_INDX */ |
| 116 | 0x00000000, /* VGT_INDX_OFFSET */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 117 | 0x00000000, /* VGT_MULTI_PRIM_IB_RESET_INDX */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 118 | 0x00000000, /* SX_ALPHA_TEST_CONTROL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 119 | 0x00000000, /* CB_BLEND_RED */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 120 | 0x00000000, |
| 121 | 0x00000000, |
| 122 | 0x00000000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 123 | 0x00000000, /* CB_FOG_RED */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 124 | 0x00000000, |
| 125 | 0x00000000, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 126 | 0x00000000, /* DB_STENCILREFMASK */ |
| 127 | 0x00000000, /* DB_STENCILREFMASK_BF */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 128 | 0x00000000, /* SX_ALPHA_REF */ |
| 129 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 130 | 0xc0046900, |
| 131 | 0x0000030c, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 132 | 0x01000000, /* CB_CLRCMP_CNTL */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 133 | 0x00000000, |
| 134 | 0x00000000, |
| 135 | 0x00000000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 136 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 137 | 0xc0046900, |
| 138 | 0x00000048, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 139 | 0x3f800000, /* CB_CLEAR_RED */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 140 | 0x00000000, |
| 141 | 0x3f800000, |
| 142 | 0x3f800000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 143 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 144 | 0xc0016900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 145 | 0x00000080, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 146 | 0x00000000, /* PA_SC_WINDOW_OFFSET */ |
| 147 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 148 | 0xc00a6900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 149 | 0x00000083, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 150 | 0x0000ffff, /* PA_SC_CLIP_RECT_RULE */ |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 151 | 0x00000000, /* PA_SC_CLIPRECT_0_TL */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 152 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 153 | 0x00000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 154 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 155 | 0x00000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 156 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 157 | 0x00000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 158 | 0x20002000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 159 | 0x00000000, /* PA_SC_EDGERULE */ |
| 160 | |
Alex Deucher | 363c6a1 | 2010-07-26 13:47:54 -0400 | [diff] [blame] | 161 | 0xc0406900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 162 | 0x00000094, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 163 | 0x80000000, /* PA_SC_VPORT_SCISSOR_0_TL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 164 | 0x20002000, /* PA_SC_VPORT_SCISSOR_0_BR */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 165 | 0x80000000, /* PA_SC_VPORT_SCISSOR_1_TL */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 166 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 167 | 0x80000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 168 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 169 | 0x80000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 170 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 171 | 0x80000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 172 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 173 | 0x80000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 174 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 175 | 0x80000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 176 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 177 | 0x80000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 178 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 179 | 0x80000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 180 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 181 | 0x80000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 182 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 183 | 0x80000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 184 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 185 | 0x80000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 186 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 187 | 0x80000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 188 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 189 | 0x80000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 190 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 191 | 0x80000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 192 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 193 | 0x80000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 194 | 0x20002000, |
Alex Deucher | 363c6a1 | 2010-07-26 13:47:54 -0400 | [diff] [blame] | 195 | 0x00000000, /* PA_SC_VPORT_ZMIN_0 */ |
| 196 | 0x3f800000, |
| 197 | 0x00000000, |
| 198 | 0x3f800000, |
| 199 | 0x00000000, |
| 200 | 0x3f800000, |
| 201 | 0x00000000, |
| 202 | 0x3f800000, |
| 203 | 0x00000000, |
| 204 | 0x3f800000, |
| 205 | 0x00000000, |
| 206 | 0x3f800000, |
| 207 | 0x00000000, |
| 208 | 0x3f800000, |
| 209 | 0x00000000, |
| 210 | 0x3f800000, |
| 211 | 0x00000000, |
| 212 | 0x3f800000, |
| 213 | 0x00000000, |
| 214 | 0x3f800000, |
| 215 | 0x00000000, |
| 216 | 0x3f800000, |
| 217 | 0x00000000, |
| 218 | 0x3f800000, |
| 219 | 0x00000000, |
| 220 | 0x3f800000, |
| 221 | 0x00000000, |
| 222 | 0x3f800000, |
| 223 | 0x00000000, |
| 224 | 0x3f800000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 225 | 0x00000000, |
| 226 | 0x3f800000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 227 | |
Alex Deucher | 43a7d2d | 2010-07-27 11:20:54 -0400 | [diff] [blame] | 228 | 0xc0026900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 229 | 0x00000292, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 230 | 0x00000000, /* PA_SC_MPASS_PS_CNTL */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 231 | 0x00004010, /* PA_SC_MODE_CNTL */ |
| 232 | |
Alex Deucher | 43a7d2d | 2010-07-27 11:20:54 -0400 | [diff] [blame] | 233 | 0xc0096900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 234 | 0x00000300, |
| 235 | 0x00000000, /* PA_SC_LINE_CNTL */ |
| 236 | 0x00000000, /* PA_SC_AA_CONFIG */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 237 | 0x0000002d, /* PA_SU_VTX_CNTL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 238 | 0x3f800000, /* PA_CL_GB_VERT_CLIP_ADJ */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 239 | 0x3f800000, |
| 240 | 0x3f800000, |
| 241 | 0x3f800000, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 242 | 0x00000000, /* PA_SC_SAMPLE_LOCS_MCTX */ |
| 243 | 0x00000000, |
| 244 | |
| 245 | 0xc0016900, |
| 246 | 0x00000312, |
| 247 | 0xffffffff, /* PA_SC_AA_MASK */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 248 | |
Alex Deucher | 43a7d2d | 2010-07-27 11:20:54 -0400 | [diff] [blame] | 249 | 0xc0066900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 250 | 0x0000037e, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 251 | 0x00000000, /* PA_SU_POLY_OFFSET_DB_FMT_CNTL */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 252 | 0x00000000, /* PA_SU_POLY_OFFSET_CLAMP */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 253 | 0x00000000, /* PA_SU_POLY_OFFSET_FRONT_SCALE */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 254 | 0x00000000, /* PA_SU_POLY_OFFSET_FRONT_OFFSET */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 255 | 0x00000000, /* PA_SU_POLY_OFFSET_BACK_SCALE */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 256 | 0x00000000, /* PA_SU_POLY_OFFSET_BACK_OFFSET */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 257 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 258 | 0xc0046900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 259 | 0x000001b6, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 260 | 0x00000000, /* SPI_INPUT_Z */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 261 | 0x00000000, /* SPI_FOG_CNTL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 262 | 0x00000000, /* SPI_FOG_FUNC_SCALE */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 263 | 0x00000000, /* SPI_FOG_FUNC_BIAS */ |
| 264 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 265 | 0xc0016900, |
| 266 | 0x00000225, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 267 | 0x00000000, /* SQ_PGM_START_FS */ |
| 268 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 269 | 0xc0016900, |
| 270 | 0x00000229, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 271 | 0x00000000, /* SQ_PGM_RESOURCES_FS */ |
| 272 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 273 | 0xc0016900, |
| 274 | 0x00000237, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 275 | 0x00000000, /* SQ_PGM_CF_OFFSET_FS */ |
| 276 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 277 | 0xc0026900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 278 | 0x000002a8, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 279 | 0x00000000, /* VGT_INSTANCE_STEP_RATE_0 */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 280 | 0x00000000, /* VGT_INSTANCE_STEP_RATE_1 */ |
| 281 | |
Alex Deucher | 43a7d2d | 2010-07-27 11:20:54 -0400 | [diff] [blame] | 282 | 0xc0116900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 283 | 0x00000280, |
| 284 | 0x00000000, /* PA_SU_POINT_SIZE */ |
| 285 | 0x00000000, /* PA_SU_POINT_MINMAX */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 286 | 0x00000008, /* PA_SU_LINE_CNTL */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 287 | 0x00000000, /* PA_SC_LINE_STIPPLE */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 288 | 0x00000000, /* VGT_OUTPUT_PATH_CNTL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 289 | 0x00000000, /* VGT_HOS_CNTL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 290 | 0x00000000, /* VGT_HOS_MAX_TESS_LEVEL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 291 | 0x00000000, /* VGT_HOS_MIN_TESS_LEVEL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 292 | 0x00000000, /* VGT_HOS_REUSE_DEPTH */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 293 | 0x00000000, /* VGT_GROUP_PRIM_TYPE */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 294 | 0x00000000, /* VGT_GROUP_FIRST_DECR */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 295 | 0x00000000, /* VGT_GROUP_DECR */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 296 | 0x00000000, /* VGT_GROUP_VECT_0_CNTL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 297 | 0x00000000, /* VGT_GROUP_VECT_1_CNTL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 298 | 0x00000000, /* VGT_GROUP_VECT_0_FMT_CNTL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 299 | 0x00000000, /* VGT_GROUP_VECT_1_FMT_CNTL */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 300 | 0x00000000, /* VGT_GS_MODE */ |
| 301 | |
| 302 | 0xc0016900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 303 | 0x000002a1, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 304 | 0x00000000, /* VGT_PRIMITIVEID_EN */ |
| 305 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 306 | 0xc0016900, |
| 307 | 0x000002a5, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 308 | 0x00000000, /* VGT_MULTI_PRIM_ID_RESET_EN */ |
| 309 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 310 | 0xc0036900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 311 | 0x000002ac, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 312 | 0x00000000, /* VGT_STRMOUT_EN */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 313 | 0x00000000, /* VGT_REUSE_OFF */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 314 | 0x00000000, /* VGT_VTX_CNT_EN */ |
| 315 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 316 | 0xc0016900, |
| 317 | 0x000002c8, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 318 | 0x00000000, /* VGT_STRMOUT_BUFFER_EN */ |
| 319 | |
Alex Deucher | 43a7d2d | 2010-07-27 11:20:54 -0400 | [diff] [blame] | 320 | 0xc0076900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 321 | 0x00000202, |
| 322 | 0x00cc0000, /* CB_COLOR_CONTROL */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 323 | 0x00000210, /* DB_SHADER_CNTL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 324 | 0x00010000, /* PA_CL_CLIP_CNTL */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 325 | 0x00000244, /* PA_SU_SC_MODE_CNTL */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 326 | 0x00000100, /* PA_CL_VTE_CNTL */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 327 | 0x00000000, /* PA_CL_VS_OUT_CNTL */ |
| 328 | 0x00000000, /* PA_CL_NANINF_CNTL */ |
| 329 | |
Alex Deucher | 43a7d2d | 2010-07-27 11:20:54 -0400 | [diff] [blame] | 330 | 0xc0026900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 331 | 0x0000008e, |
| 332 | 0x0000000f, /* CB_TARGET_MASK */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 333 | 0x0000000f, /* CB_SHADER_MASK */ |
| 334 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 335 | 0xc0016900, |
| 336 | 0x000001e8, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 337 | 0x00000001, /* CB_SHADER_CONTROL */ |
| 338 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 339 | 0xc0016900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 340 | 0x00000185, |
| 341 | 0x00000000, /* SPI_VS_OUT_ID_0 */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 342 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 343 | 0xc0016900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 344 | 0x00000191, |
| 345 | 0x00000b00, /* SPI_PS_INPUT_CNTL_0 */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 346 | |
Alex Deucher | 43a7d2d | 2010-07-27 11:20:54 -0400 | [diff] [blame] | 347 | 0xc0056900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 348 | 0x000001b1, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 349 | 0x00000000, /* SPI_VS_OUT_CONFIG */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 350 | 0x00000000, /* SPI_THREAD_GROUPING */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 351 | 0x00000001, /* SPI_PS_IN_CONTROL_0 */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 352 | 0x00000000, /* SPI_PS_IN_CONTROL_1 */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 353 | 0x00000000, /* SPI_INTERP_CONTROL_0 */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 354 | |
| 355 | 0xc0036e00, /* SET_SAMPLER */ |
| 356 | 0x00000000, |
| 357 | 0x00000012, |
| 358 | 0x00000000, |
| 359 | 0x00000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 360 | }; |
| 361 | |
| 362 | const u32 r7xx_default_state[] = |
| 363 | { |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 364 | 0xc0012800, /* CONTEXT_CONTROL */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 365 | 0x80000000, |
| 366 | 0x80000000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 367 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 368 | 0xc0016800, |
| 369 | 0x00000010, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 370 | 0x00008000, /* WAIT_UNTIL */ |
| 371 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 372 | 0xc0016800, |
| 373 | 0x00000542, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 374 | 0x07000002, /* TA_CNTL_AUX */ |
| 375 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 376 | 0xc0016800, |
| 377 | 0x000005c5, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 378 | 0x00000000, /* VC_ENHANCE */ |
| 379 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 380 | 0xc0016800, |
| 381 | 0x00000363, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 382 | 0x00004000, /* SQ_DYN_GPR_CNTL_PS_FLUSH_REQ */ |
| 383 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 384 | 0xc0016800, |
| 385 | 0x0000060c, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 386 | 0x00000000, /* DB_DEBUG */ |
| 387 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 388 | 0xc0016800, |
| 389 | 0x0000060e, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 390 | 0x00420204, /* DB_WATERMARKS */ |
| 391 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 392 | 0xc0026f00, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 393 | 0x00000000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 394 | 0x00000000, /* SQ_VTX_BASE_VTX_LOC */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 395 | 0x00000000, /* SQ_VTX_START_INST_LOC */ |
| 396 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 397 | 0xc0096900, |
| 398 | 0x0000022a, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 399 | 0x00000000, /* SQ_ESGS_RING_ITEMSIZE */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 400 | 0x00000000, |
| 401 | 0x00000000, |
| 402 | 0x00000000, |
| 403 | 0x00000000, |
| 404 | 0x00000000, |
| 405 | 0x00000000, |
| 406 | 0x00000000, |
| 407 | 0x00000000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 408 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 409 | 0xc0016900, |
| 410 | 0x00000004, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 411 | 0x00000000, /* DB_DEPTH_INFO */ |
| 412 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 413 | 0xc0026900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 414 | 0x0000000a, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 415 | 0x00000000, /* DB_STENCIL_CLEAR */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 416 | 0x00000000, /* DB_DEPTH_CLEAR */ |
| 417 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 418 | 0xc0016900, |
| 419 | 0x00000200, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 420 | 0x00000000, /* DB_DEPTH_CONTROL */ |
| 421 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 422 | 0xc0026900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 423 | 0x00000343, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 424 | 0x00000060, /* DB_RENDER_CONTROL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 425 | 0x00000000, /* DB_RENDER_OVERRIDE */ |
| 426 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 427 | 0xc0016900, |
| 428 | 0x00000351, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 429 | 0x0000aa00, /* DB_ALPHA_TO_MASK */ |
| 430 | |
Alex Deucher | 43a7d2d | 2010-07-27 11:20:54 -0400 | [diff] [blame] | 431 | 0xc0096900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 432 | 0x00000100, |
| 433 | 0x00000800, /* VGT_MAX_VTX_INDX */ |
| 434 | 0x00000000, /* VGT_MIN_VTX_INDX */ |
| 435 | 0x00000000, /* VGT_INDX_OFFSET */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 436 | 0x00000000, /* VGT_MULTI_PRIM_IB_RESET_INDX */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 437 | 0x00000000, /* SX_ALPHA_TEST_CONTROL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 438 | 0x00000000, /* CB_BLEND_RED */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 439 | 0x00000000, |
| 440 | 0x00000000, |
| 441 | 0x00000000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 442 | |
Alex Deucher | 43a7d2d | 2010-07-27 11:20:54 -0400 | [diff] [blame] | 443 | 0xc0036900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 444 | 0x0000010c, |
| 445 | 0x00000000, /* DB_STENCILREFMASK */ |
| 446 | 0x00000000, /* DB_STENCILREFMASK_BF */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 447 | 0x00000000, /* SX_ALPHA_REF */ |
| 448 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 449 | 0xc0046900, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 450 | 0x0000030c, /* CB_CLRCMP_CNTL */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 451 | 0x01000000, |
| 452 | 0x00000000, |
| 453 | 0x00000000, |
| 454 | 0x00000000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 455 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 456 | 0xc0016900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 457 | 0x00000080, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 458 | 0x00000000, /* PA_SC_WINDOW_OFFSET */ |
| 459 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 460 | 0xc00a6900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 461 | 0x00000083, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 462 | 0x0000ffff, /* PA_SC_CLIP_RECT_RULE */ |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 463 | 0x00000000, /* PA_SC_CLIPRECT_0_TL */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 464 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 465 | 0x00000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 466 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 467 | 0x00000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 468 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 469 | 0x00000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 470 | 0x20002000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 471 | 0xaaaaaaaa, /* PA_SC_EDGERULE */ |
| 472 | |
Alex Deucher | 363c6a1 | 2010-07-26 13:47:54 -0400 | [diff] [blame] | 473 | 0xc0406900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 474 | 0x00000094, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 475 | 0x80000000, /* PA_SC_VPORT_SCISSOR_0_TL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 476 | 0x20002000, /* PA_SC_VPORT_SCISSOR_0_BR */ |
Alex Deucher | 363c6a1 | 2010-07-26 13:47:54 -0400 | [diff] [blame] | 477 | 0x80000000, /* PA_SC_VPORT_SCISSOR_1_TL */ |
| 478 | 0x20002000, |
| 479 | 0x80000000, |
| 480 | 0x20002000, |
| 481 | 0x80000000, |
| 482 | 0x20002000, |
| 483 | 0x80000000, |
| 484 | 0x20002000, |
| 485 | 0x80000000, |
| 486 | 0x20002000, |
| 487 | 0x80000000, |
| 488 | 0x20002000, |
| 489 | 0x80000000, |
| 490 | 0x20002000, |
| 491 | 0x80000000, |
| 492 | 0x20002000, |
| 493 | 0x80000000, |
| 494 | 0x20002000, |
| 495 | 0x80000000, |
| 496 | 0x20002000, |
| 497 | 0x80000000, |
| 498 | 0x20002000, |
| 499 | 0x80000000, |
| 500 | 0x20002000, |
| 501 | 0x80000000, |
| 502 | 0x20002000, |
| 503 | 0x80000000, |
| 504 | 0x20002000, |
| 505 | 0x80000000, |
| 506 | 0x20002000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 507 | 0x00000000, /* PA_SC_VPORT_ZMIN_0 */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 508 | 0x3f800000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 509 | 0x00000000, |
| 510 | 0x3f800000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 511 | 0x00000000, |
| 512 | 0x3f800000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 513 | 0x00000000, |
| 514 | 0x3f800000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 515 | 0x00000000, |
| 516 | 0x3f800000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 517 | 0x00000000, |
| 518 | 0x3f800000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 519 | 0x00000000, |
| 520 | 0x3f800000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 521 | 0x00000000, |
| 522 | 0x3f800000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 523 | 0x00000000, |
| 524 | 0x3f800000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 525 | 0x00000000, |
| 526 | 0x3f800000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 527 | 0x00000000, |
| 528 | 0x3f800000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 529 | 0x00000000, |
| 530 | 0x3f800000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 531 | 0x00000000, |
| 532 | 0x3f800000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 533 | 0x00000000, |
| 534 | 0x3f800000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 535 | 0x00000000, |
| 536 | 0x3f800000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 537 | 0x00000000, |
| 538 | 0x3f800000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 539 | |
Alex Deucher | 43a7d2d | 2010-07-27 11:20:54 -0400 | [diff] [blame] | 540 | 0xc0026900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 541 | 0x00000292, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 542 | 0x00000000, /* PA_SC_MPASS_PS_CNTL */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 543 | 0x00514000, /* PA_SC_MODE_CNTL */ |
| 544 | |
Alex Deucher | 43a7d2d | 2010-07-27 11:20:54 -0400 | [diff] [blame] | 545 | 0xc0096900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 546 | 0x00000300, |
| 547 | 0x00000000, /* PA_SC_LINE_CNTL */ |
| 548 | 0x00000000, /* PA_SC_AA_CONFIG */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 549 | 0x0000002d, /* PA_SU_VTX_CNTL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 550 | 0x3f800000, /* PA_CL_GB_VERT_CLIP_ADJ */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 551 | 0x3f800000, |
| 552 | 0x3f800000, |
| 553 | 0x3f800000, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 554 | 0x00000000, /* PA_SC_SAMPLE_LOCS_MCTX */ |
| 555 | 0x00000000, |
| 556 | |
| 557 | 0xc0016900, |
| 558 | 0x00000312, |
| 559 | 0xffffffff, /* PA_SC_AA_MASK */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 560 | |
Alex Deucher | 43a7d2d | 2010-07-27 11:20:54 -0400 | [diff] [blame] | 561 | 0xc0066900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 562 | 0x0000037e, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 563 | 0x00000000, /* PA_SU_POLY_OFFSET_DB_FMT_CNTL */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 564 | 0x00000000, /* PA_SU_POLY_OFFSET_CLAMP */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 565 | 0x00000000, /* PA_SU_POLY_OFFSET_FRONT_SCALE */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 566 | 0x00000000, /* PA_SU_POLY_OFFSET_FRONT_OFFSET */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 567 | 0x00000000, /* PA_SU_POLY_OFFSET_BACK_SCALE */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 568 | 0x00000000, /* PA_SU_POLY_OFFSET_BACK_OFFSET */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 569 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 570 | 0xc0046900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 571 | 0x000001b6, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 572 | 0x00000000, /* SPI_INPUT_Z */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 573 | 0x00000000, /* SPI_FOG_CNTL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 574 | 0x00000000, /* SPI_FOG_FUNC_SCALE */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 575 | 0x00000000, /* SPI_FOG_FUNC_BIAS */ |
| 576 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 577 | 0xc0016900, |
| 578 | 0x00000225, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 579 | 0x00000000, /* SQ_PGM_START_FS */ |
| 580 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 581 | 0xc0016900, |
| 582 | 0x00000229, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 583 | 0x00000000, /* SQ_PGM_RESOURCES_FS */ |
| 584 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 585 | 0xc0016900, |
| 586 | 0x00000237, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 587 | 0x00000000, /* SQ_PGM_CF_OFFSET_FS */ |
| 588 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 589 | 0xc0026900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 590 | 0x000002a8, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 591 | 0x00000000, /* VGT_INSTANCE_STEP_RATE_0 */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 592 | 0x00000000, /* VGT_INSTANCE_STEP_RATE_1 */ |
| 593 | |
Alex Deucher | 43a7d2d | 2010-07-27 11:20:54 -0400 | [diff] [blame] | 594 | 0xc0116900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 595 | 0x00000280, |
| 596 | 0x00000000, /* PA_SU_POINT_SIZE */ |
| 597 | 0x00000000, /* PA_SU_POINT_MINMAX */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 598 | 0x00000008, /* PA_SU_LINE_CNTL */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 599 | 0x00000000, /* PA_SC_LINE_STIPPLE */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 600 | 0x00000000, /* VGT_OUTPUT_PATH_CNTL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 601 | 0x00000000, /* VGT_HOS_CNTL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 602 | 0x00000000, /* VGT_HOS_MAX_TESS_LEVEL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 603 | 0x00000000, /* VGT_HOS_MIN_TESS_LEVEL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 604 | 0x00000000, /* VGT_HOS_REUSE_DEPTH */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 605 | 0x00000000, /* VGT_GROUP_PRIM_TYPE */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 606 | 0x00000000, /* VGT_GROUP_FIRST_DECR */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 607 | 0x00000000, /* VGT_GROUP_DECR */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 608 | 0x00000000, /* VGT_GROUP_VECT_0_CNTL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 609 | 0x00000000, /* VGT_GROUP_VECT_1_CNTL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 610 | 0x00000000, /* VGT_GROUP_VECT_0_FMT_CNTL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 611 | 0x00000000, /* VGT_GROUP_VECT_1_FMT_CNTL */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 612 | 0x00000000, /* VGT_GS_MODE */ |
| 613 | |
| 614 | 0xc0016900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 615 | 0x000002a1, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 616 | 0x00000000, /* VGT_PRIMITIVEID_EN */ |
| 617 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 618 | 0xc0016900, |
| 619 | 0x000002a5, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 620 | 0x00000000, /* VGT_MULTI_PRIM_ID_RESET_EN */ |
| 621 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 622 | 0xc0036900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 623 | 0x000002ac, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 624 | 0x00000000, /* VGT_STRMOUT_EN */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 625 | 0x00000000, /* VGT_REUSE_OFF */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 626 | 0x00000000, /* VGT_VTX_CNT_EN */ |
| 627 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 628 | 0xc0016900, |
| 629 | 0x000002c8, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 630 | 0x00000000, /* VGT_STRMOUT_BUFFER_EN */ |
| 631 | |
Alex Deucher | 43a7d2d | 2010-07-27 11:20:54 -0400 | [diff] [blame] | 632 | 0xc0076900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 633 | 0x00000202, |
| 634 | 0x00cc0000, /* CB_COLOR_CONTROL */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 635 | 0x00000210, /* DB_SHADER_CNTL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 636 | 0x00010000, /* PA_CL_CLIP_CNTL */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 637 | 0x00000244, /* PA_SU_SC_MODE_CNTL */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 638 | 0x00000100, /* PA_CL_VTE_CNTL */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 639 | 0x00000000, /* PA_CL_VS_OUT_CNTL */ |
| 640 | 0x00000000, /* PA_CL_NANINF_CNTL */ |
| 641 | |
Alex Deucher | 43a7d2d | 2010-07-27 11:20:54 -0400 | [diff] [blame] | 642 | 0xc0026900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 643 | 0x0000008e, |
| 644 | 0x0000000f, /* CB_TARGET_MASK */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 645 | 0x0000000f, /* CB_SHADER_MASK */ |
| 646 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 647 | 0xc0016900, |
| 648 | 0x000001e8, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 649 | 0x00000001, /* CB_SHADER_CONTROL */ |
| 650 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 651 | 0xc0016900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 652 | 0x00000185, |
| 653 | 0x00000000, /* SPI_VS_OUT_ID_0 */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 654 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 655 | 0xc0016900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 656 | 0x00000191, |
| 657 | 0x00000b00, /* SPI_PS_INPUT_CNTL_0 */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 658 | |
Alex Deucher | 43a7d2d | 2010-07-27 11:20:54 -0400 | [diff] [blame] | 659 | 0xc0056900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 660 | 0x000001b1, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 661 | 0x00000000, /* SPI_VS_OUT_CONFIG */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 662 | 0x00000001, /* SPI_THREAD_GROUPING */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 663 | 0x00000001, /* SPI_PS_IN_CONTROL_0 */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 664 | 0x00000000, /* SPI_PS_IN_CONTROL_1 */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 665 | 0x00000000, /* SPI_INTERP_CONTROL_0 */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 666 | |
| 667 | 0xc0036e00, /* SET_SAMPLER */ |
| 668 | 0x00000000, |
| 669 | 0x00000012, |
| 670 | 0x00000000, |
| 671 | 0x00000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 672 | }; |
| 673 | |
| 674 | /* same for r6xx/r7xx */ |
| 675 | const u32 r6xx_vs[] = |
| 676 | { |
| 677 | 0x00000004, |
| 678 | 0x81000000, |
| 679 | 0x0000203c, |
| 680 | 0x94000b08, |
| 681 | 0x00004000, |
| 682 | 0x14200b1a, |
| 683 | 0x00000000, |
| 684 | 0x00000000, |
| 685 | 0x3c000000, |
| 686 | 0x68cd1000, |
Cédric Cano | 4eace7f | 2011-02-11 19:45:38 -0500 | [diff] [blame] | 687 | #ifdef __BIG_ENDIAN |
| 688 | 0x000a0000, |
| 689 | #else |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 690 | 0x00080000, |
Cédric Cano | 4eace7f | 2011-02-11 19:45:38 -0500 | [diff] [blame] | 691 | #endif |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 692 | 0x00000000, |
| 693 | }; |
| 694 | |
| 695 | const u32 r6xx_ps[] = |
| 696 | { |
| 697 | 0x00000002, |
| 698 | 0x80800000, |
| 699 | 0x00000000, |
| 700 | 0x94200688, |
| 701 | 0x00000010, |
| 702 | 0x000d1000, |
| 703 | 0xb0800000, |
| 704 | 0x00000000, |
| 705 | }; |
| 706 | |
| 707 | const u32 r6xx_ps_size = ARRAY_SIZE(r6xx_ps); |
| 708 | const u32 r6xx_vs_size = ARRAY_SIZE(r6xx_vs); |
| 709 | const u32 r6xx_default_size = ARRAY_SIZE(r6xx_default_state); |
| 710 | const u32 r7xx_default_size = ARRAY_SIZE(r7xx_default_state); |