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, |
Marek Olšák | cf00790 | 2012-03-07 23:33:00 +0100 | [diff] [blame^] | 317 | 0x000000d4, |
| 318 | 0x00000000, /* SX_MISC */ |
| 319 | |
| 320 | 0xc0016900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 321 | 0x000002c8, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 322 | 0x00000000, /* VGT_STRMOUT_BUFFER_EN */ |
| 323 | |
Alex Deucher | 43a7d2d | 2010-07-27 11:20:54 -0400 | [diff] [blame] | 324 | 0xc0076900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 325 | 0x00000202, |
| 326 | 0x00cc0000, /* CB_COLOR_CONTROL */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 327 | 0x00000210, /* DB_SHADER_CNTL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 328 | 0x00010000, /* PA_CL_CLIP_CNTL */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 329 | 0x00000244, /* PA_SU_SC_MODE_CNTL */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 330 | 0x00000100, /* PA_CL_VTE_CNTL */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 331 | 0x00000000, /* PA_CL_VS_OUT_CNTL */ |
| 332 | 0x00000000, /* PA_CL_NANINF_CNTL */ |
| 333 | |
Alex Deucher | 43a7d2d | 2010-07-27 11:20:54 -0400 | [diff] [blame] | 334 | 0xc0026900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 335 | 0x0000008e, |
| 336 | 0x0000000f, /* CB_TARGET_MASK */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 337 | 0x0000000f, /* CB_SHADER_MASK */ |
| 338 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 339 | 0xc0016900, |
| 340 | 0x000001e8, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 341 | 0x00000001, /* CB_SHADER_CONTROL */ |
| 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 | 0x00000185, |
| 345 | 0x00000000, /* SPI_VS_OUT_ID_0 */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 346 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 347 | 0xc0016900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 348 | 0x00000191, |
| 349 | 0x00000b00, /* SPI_PS_INPUT_CNTL_0 */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 350 | |
Alex Deucher | 43a7d2d | 2010-07-27 11:20:54 -0400 | [diff] [blame] | 351 | 0xc0056900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 352 | 0x000001b1, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 353 | 0x00000000, /* SPI_VS_OUT_CONFIG */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 354 | 0x00000000, /* SPI_THREAD_GROUPING */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 355 | 0x00000001, /* SPI_PS_IN_CONTROL_0 */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 356 | 0x00000000, /* SPI_PS_IN_CONTROL_1 */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 357 | 0x00000000, /* SPI_INTERP_CONTROL_0 */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 358 | |
| 359 | 0xc0036e00, /* SET_SAMPLER */ |
| 360 | 0x00000000, |
| 361 | 0x00000012, |
| 362 | 0x00000000, |
| 363 | 0x00000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 364 | }; |
| 365 | |
| 366 | const u32 r7xx_default_state[] = |
| 367 | { |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 368 | 0xc0012800, /* CONTEXT_CONTROL */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 369 | 0x80000000, |
| 370 | 0x80000000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 371 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 372 | 0xc0016800, |
| 373 | 0x00000010, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 374 | 0x00008000, /* WAIT_UNTIL */ |
| 375 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 376 | 0xc0016800, |
| 377 | 0x00000542, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 378 | 0x07000002, /* TA_CNTL_AUX */ |
| 379 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 380 | 0xc0016800, |
| 381 | 0x000005c5, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 382 | 0x00000000, /* VC_ENHANCE */ |
| 383 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 384 | 0xc0016800, |
| 385 | 0x00000363, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 386 | 0x00004000, /* SQ_DYN_GPR_CNTL_PS_FLUSH_REQ */ |
| 387 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 388 | 0xc0016800, |
| 389 | 0x0000060c, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 390 | 0x00000000, /* DB_DEBUG */ |
| 391 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 392 | 0xc0016800, |
| 393 | 0x0000060e, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 394 | 0x00420204, /* DB_WATERMARKS */ |
| 395 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 396 | 0xc0026f00, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 397 | 0x00000000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 398 | 0x00000000, /* SQ_VTX_BASE_VTX_LOC */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 399 | 0x00000000, /* SQ_VTX_START_INST_LOC */ |
| 400 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 401 | 0xc0096900, |
| 402 | 0x0000022a, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 403 | 0x00000000, /* SQ_ESGS_RING_ITEMSIZE */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 404 | 0x00000000, |
| 405 | 0x00000000, |
| 406 | 0x00000000, |
| 407 | 0x00000000, |
| 408 | 0x00000000, |
| 409 | 0x00000000, |
| 410 | 0x00000000, |
| 411 | 0x00000000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 412 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 413 | 0xc0016900, |
| 414 | 0x00000004, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 415 | 0x00000000, /* DB_DEPTH_INFO */ |
| 416 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 417 | 0xc0026900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 418 | 0x0000000a, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 419 | 0x00000000, /* DB_STENCIL_CLEAR */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 420 | 0x00000000, /* DB_DEPTH_CLEAR */ |
| 421 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 422 | 0xc0016900, |
| 423 | 0x00000200, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 424 | 0x00000000, /* DB_DEPTH_CONTROL */ |
| 425 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 426 | 0xc0026900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 427 | 0x00000343, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 428 | 0x00000060, /* DB_RENDER_CONTROL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 429 | 0x00000000, /* DB_RENDER_OVERRIDE */ |
| 430 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 431 | 0xc0016900, |
| 432 | 0x00000351, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 433 | 0x0000aa00, /* DB_ALPHA_TO_MASK */ |
| 434 | |
Alex Deucher | 43a7d2d | 2010-07-27 11:20:54 -0400 | [diff] [blame] | 435 | 0xc0096900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 436 | 0x00000100, |
| 437 | 0x00000800, /* VGT_MAX_VTX_INDX */ |
| 438 | 0x00000000, /* VGT_MIN_VTX_INDX */ |
| 439 | 0x00000000, /* VGT_INDX_OFFSET */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 440 | 0x00000000, /* VGT_MULTI_PRIM_IB_RESET_INDX */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 441 | 0x00000000, /* SX_ALPHA_TEST_CONTROL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 442 | 0x00000000, /* CB_BLEND_RED */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 443 | 0x00000000, |
| 444 | 0x00000000, |
| 445 | 0x00000000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 446 | |
Alex Deucher | 43a7d2d | 2010-07-27 11:20:54 -0400 | [diff] [blame] | 447 | 0xc0036900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 448 | 0x0000010c, |
| 449 | 0x00000000, /* DB_STENCILREFMASK */ |
| 450 | 0x00000000, /* DB_STENCILREFMASK_BF */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 451 | 0x00000000, /* SX_ALPHA_REF */ |
| 452 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 453 | 0xc0046900, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 454 | 0x0000030c, /* CB_CLRCMP_CNTL */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 455 | 0x01000000, |
| 456 | 0x00000000, |
| 457 | 0x00000000, |
| 458 | 0x00000000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 459 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 460 | 0xc0016900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 461 | 0x00000080, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 462 | 0x00000000, /* PA_SC_WINDOW_OFFSET */ |
| 463 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 464 | 0xc00a6900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 465 | 0x00000083, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 466 | 0x0000ffff, /* PA_SC_CLIP_RECT_RULE */ |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 467 | 0x00000000, /* PA_SC_CLIPRECT_0_TL */ |
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, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 471 | 0x00000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 472 | 0x20002000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 473 | 0x00000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 474 | 0x20002000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 475 | 0xaaaaaaaa, /* PA_SC_EDGERULE */ |
| 476 | |
Alex Deucher | 363c6a1 | 2010-07-26 13:47:54 -0400 | [diff] [blame] | 477 | 0xc0406900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 478 | 0x00000094, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 479 | 0x80000000, /* PA_SC_VPORT_SCISSOR_0_TL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 480 | 0x20002000, /* PA_SC_VPORT_SCISSOR_0_BR */ |
Alex Deucher | 363c6a1 | 2010-07-26 13:47:54 -0400 | [diff] [blame] | 481 | 0x80000000, /* PA_SC_VPORT_SCISSOR_1_TL */ |
| 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, |
| 507 | 0x80000000, |
| 508 | 0x20002000, |
| 509 | 0x80000000, |
| 510 | 0x20002000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 511 | 0x00000000, /* PA_SC_VPORT_ZMIN_0 */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 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, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 539 | 0x00000000, |
| 540 | 0x3f800000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 541 | 0x00000000, |
| 542 | 0x3f800000, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 543 | |
Alex Deucher | 43a7d2d | 2010-07-27 11:20:54 -0400 | [diff] [blame] | 544 | 0xc0026900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 545 | 0x00000292, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 546 | 0x00000000, /* PA_SC_MPASS_PS_CNTL */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 547 | 0x00514000, /* PA_SC_MODE_CNTL */ |
| 548 | |
Alex Deucher | 43a7d2d | 2010-07-27 11:20:54 -0400 | [diff] [blame] | 549 | 0xc0096900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 550 | 0x00000300, |
| 551 | 0x00000000, /* PA_SC_LINE_CNTL */ |
| 552 | 0x00000000, /* PA_SC_AA_CONFIG */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 553 | 0x0000002d, /* PA_SU_VTX_CNTL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 554 | 0x3f800000, /* PA_CL_GB_VERT_CLIP_ADJ */ |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 555 | 0x3f800000, |
| 556 | 0x3f800000, |
| 557 | 0x3f800000, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 558 | 0x00000000, /* PA_SC_SAMPLE_LOCS_MCTX */ |
| 559 | 0x00000000, |
| 560 | |
| 561 | 0xc0016900, |
| 562 | 0x00000312, |
| 563 | 0xffffffff, /* PA_SC_AA_MASK */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 564 | |
Alex Deucher | 43a7d2d | 2010-07-27 11:20:54 -0400 | [diff] [blame] | 565 | 0xc0066900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 566 | 0x0000037e, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 567 | 0x00000000, /* PA_SU_POLY_OFFSET_DB_FMT_CNTL */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 568 | 0x00000000, /* PA_SU_POLY_OFFSET_CLAMP */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 569 | 0x00000000, /* PA_SU_POLY_OFFSET_FRONT_SCALE */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 570 | 0x00000000, /* PA_SU_POLY_OFFSET_FRONT_OFFSET */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 571 | 0x00000000, /* PA_SU_POLY_OFFSET_BACK_SCALE */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 572 | 0x00000000, /* PA_SU_POLY_OFFSET_BACK_OFFSET */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 573 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 574 | 0xc0046900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 575 | 0x000001b6, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 576 | 0x00000000, /* SPI_INPUT_Z */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 577 | 0x00000000, /* SPI_FOG_CNTL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 578 | 0x00000000, /* SPI_FOG_FUNC_SCALE */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 579 | 0x00000000, /* SPI_FOG_FUNC_BIAS */ |
| 580 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 581 | 0xc0016900, |
| 582 | 0x00000225, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 583 | 0x00000000, /* SQ_PGM_START_FS */ |
| 584 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 585 | 0xc0016900, |
| 586 | 0x00000229, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 587 | 0x00000000, /* SQ_PGM_RESOURCES_FS */ |
| 588 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 589 | 0xc0016900, |
| 590 | 0x00000237, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 591 | 0x00000000, /* SQ_PGM_CF_OFFSET_FS */ |
| 592 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 593 | 0xc0026900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 594 | 0x000002a8, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 595 | 0x00000000, /* VGT_INSTANCE_STEP_RATE_0 */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 596 | 0x00000000, /* VGT_INSTANCE_STEP_RATE_1 */ |
| 597 | |
Alex Deucher | 43a7d2d | 2010-07-27 11:20:54 -0400 | [diff] [blame] | 598 | 0xc0116900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 599 | 0x00000280, |
| 600 | 0x00000000, /* PA_SU_POINT_SIZE */ |
| 601 | 0x00000000, /* PA_SU_POINT_MINMAX */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 602 | 0x00000008, /* PA_SU_LINE_CNTL */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 603 | 0x00000000, /* PA_SC_LINE_STIPPLE */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 604 | 0x00000000, /* VGT_OUTPUT_PATH_CNTL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 605 | 0x00000000, /* VGT_HOS_CNTL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 606 | 0x00000000, /* VGT_HOS_MAX_TESS_LEVEL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 607 | 0x00000000, /* VGT_HOS_MIN_TESS_LEVEL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 608 | 0x00000000, /* VGT_HOS_REUSE_DEPTH */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 609 | 0x00000000, /* VGT_GROUP_PRIM_TYPE */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 610 | 0x00000000, /* VGT_GROUP_FIRST_DECR */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 611 | 0x00000000, /* VGT_GROUP_DECR */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 612 | 0x00000000, /* VGT_GROUP_VECT_0_CNTL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 613 | 0x00000000, /* VGT_GROUP_VECT_1_CNTL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 614 | 0x00000000, /* VGT_GROUP_VECT_0_FMT_CNTL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 615 | 0x00000000, /* VGT_GROUP_VECT_1_FMT_CNTL */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 616 | 0x00000000, /* VGT_GS_MODE */ |
| 617 | |
| 618 | 0xc0016900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 619 | 0x000002a1, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 620 | 0x00000000, /* VGT_PRIMITIVEID_EN */ |
| 621 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 622 | 0xc0016900, |
| 623 | 0x000002a5, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 624 | 0x00000000, /* VGT_MULTI_PRIM_ID_RESET_EN */ |
| 625 | |
Alex Deucher | eb54443 | 2010-07-27 18:57:06 -0400 | [diff] [blame] | 626 | 0xc0036900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 627 | 0x000002ac, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 628 | 0x00000000, /* VGT_STRMOUT_EN */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 629 | 0x00000000, /* VGT_REUSE_OFF */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 630 | 0x00000000, /* VGT_VTX_CNT_EN */ |
| 631 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 632 | 0xc0016900, |
Marek Olšák | cf00790 | 2012-03-07 23:33:00 +0100 | [diff] [blame^] | 633 | 0x000000d4, |
| 634 | 0x00000000, /* SX_MISC */ |
| 635 | |
| 636 | 0xc0016900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 637 | 0x000002c8, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 638 | 0x00000000, /* VGT_STRMOUT_BUFFER_EN */ |
| 639 | |
Alex Deucher | 43a7d2d | 2010-07-27 11:20:54 -0400 | [diff] [blame] | 640 | 0xc0076900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 641 | 0x00000202, |
| 642 | 0x00cc0000, /* CB_COLOR_CONTROL */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 643 | 0x00000210, /* DB_SHADER_CNTL */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 644 | 0x00010000, /* PA_CL_CLIP_CNTL */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 645 | 0x00000244, /* PA_SU_SC_MODE_CNTL */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 646 | 0x00000100, /* PA_CL_VTE_CNTL */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 647 | 0x00000000, /* PA_CL_VS_OUT_CNTL */ |
| 648 | 0x00000000, /* PA_CL_NANINF_CNTL */ |
| 649 | |
Alex Deucher | 43a7d2d | 2010-07-27 11:20:54 -0400 | [diff] [blame] | 650 | 0xc0026900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 651 | 0x0000008e, |
| 652 | 0x0000000f, /* CB_TARGET_MASK */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 653 | 0x0000000f, /* CB_SHADER_MASK */ |
| 654 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 655 | 0xc0016900, |
| 656 | 0x000001e8, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 657 | 0x00000001, /* CB_SHADER_CONTROL */ |
| 658 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 659 | 0xc0016900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 660 | 0x00000185, |
| 661 | 0x00000000, /* SPI_VS_OUT_ID_0 */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 662 | |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 663 | 0xc0016900, |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 664 | 0x00000191, |
| 665 | 0x00000b00, /* SPI_PS_INPUT_CNTL_0 */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 666 | |
Alex Deucher | 43a7d2d | 2010-07-27 11:20:54 -0400 | [diff] [blame] | 667 | 0xc0056900, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 668 | 0x000001b1, |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 669 | 0x00000000, /* SPI_VS_OUT_CONFIG */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 670 | 0x00000001, /* SPI_THREAD_GROUPING */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 671 | 0x00000001, /* SPI_PS_IN_CONTROL_0 */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 672 | 0x00000000, /* SPI_PS_IN_CONTROL_1 */ |
Alex Deucher | 8c119e9 | 2010-07-26 12:39:00 -0400 | [diff] [blame] | 673 | 0x00000000, /* SPI_INTERP_CONTROL_0 */ |
Alex Deucher | d0623a3 | 2010-07-27 11:17:44 -0400 | [diff] [blame] | 674 | |
| 675 | 0xc0036e00, /* SET_SAMPLER */ |
| 676 | 0x00000000, |
| 677 | 0x00000012, |
| 678 | 0x00000000, |
| 679 | 0x00000000, |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 680 | }; |
| 681 | |
| 682 | /* same for r6xx/r7xx */ |
| 683 | const u32 r6xx_vs[] = |
| 684 | { |
| 685 | 0x00000004, |
| 686 | 0x81000000, |
| 687 | 0x0000203c, |
| 688 | 0x94000b08, |
| 689 | 0x00004000, |
| 690 | 0x14200b1a, |
| 691 | 0x00000000, |
| 692 | 0x00000000, |
| 693 | 0x3c000000, |
| 694 | 0x68cd1000, |
Cédric Cano | 4eace7f | 2011-02-11 19:45:38 -0500 | [diff] [blame] | 695 | #ifdef __BIG_ENDIAN |
| 696 | 0x000a0000, |
| 697 | #else |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 698 | 0x00080000, |
Cédric Cano | 4eace7f | 2011-02-11 19:45:38 -0500 | [diff] [blame] | 699 | #endif |
Jerome Glisse | 3ce0a23 | 2009-09-08 10:10:24 +1000 | [diff] [blame] | 700 | 0x00000000, |
| 701 | }; |
| 702 | |
| 703 | const u32 r6xx_ps[] = |
| 704 | { |
| 705 | 0x00000002, |
| 706 | 0x80800000, |
| 707 | 0x00000000, |
| 708 | 0x94200688, |
| 709 | 0x00000010, |
| 710 | 0x000d1000, |
| 711 | 0xb0800000, |
| 712 | 0x00000000, |
| 713 | }; |
| 714 | |
| 715 | const u32 r6xx_ps_size = ARRAY_SIZE(r6xx_ps); |
| 716 | const u32 r6xx_vs_size = ARRAY_SIZE(r6xx_vs); |
| 717 | const u32 r6xx_default_size = ARRAY_SIZE(r6xx_default_state); |
| 718 | const u32 r7xx_default_size = ARRAY_SIZE(r7xx_default_state); |