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