xref: /dflybsd-src/sys/dev/drm/radeon/evergreen_blit_shaders.c (revision 926deccb469948128692b7f35b6846e4999c62b5)
1*926deccbSFrançois Tigeot /*
2*926deccbSFrançois Tigeot  * Copyright 2010 Advanced Micro Devices, Inc.
3*926deccbSFrançois Tigeot  *
4*926deccbSFrançois Tigeot  * Permission is hereby granted, free of charge, to any person obtaining a
5*926deccbSFrançois Tigeot  * copy of this software and associated documentation files (the "Software"),
6*926deccbSFrançois Tigeot  * to deal in the Software without restriction, including without limitation
7*926deccbSFrançois Tigeot  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8*926deccbSFrançois Tigeot  * and/or sell copies of the Software, and to permit persons to whom the
9*926deccbSFrançois Tigeot  * Software is furnished to do so, subject to the following conditions:
10*926deccbSFrançois Tigeot  *
11*926deccbSFrançois Tigeot  * The above copyright notice and this permission notice (including the next
12*926deccbSFrançois Tigeot  * paragraph) shall be included in all copies or substantial portions of the
13*926deccbSFrançois Tigeot  * Software.
14*926deccbSFrançois Tigeot  *
15*926deccbSFrançois Tigeot  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16*926deccbSFrançois Tigeot  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17*926deccbSFrançois Tigeot  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
18*926deccbSFrançois Tigeot  * THE COPYRIGHT HOLDER(S) AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
19*926deccbSFrançois Tigeot  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
20*926deccbSFrançois Tigeot  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21*926deccbSFrançois Tigeot  * DEALINGS IN THE SOFTWARE.
22*926deccbSFrançois Tigeot  *
23*926deccbSFrançois Tigeot  * Authors:
24*926deccbSFrançois Tigeot  *     Alex Deucher <alexander.deucher@amd.com>
25*926deccbSFrançois Tigeot  *
26*926deccbSFrançois Tigeot  * $FreeBSD: head/sys/dev/drm2/radeon/evergreen_blit_shaders.c 254885 2013-08-25 19:37:15Z dumbbell $
27*926deccbSFrançois Tigeot  */
28*926deccbSFrançois Tigeot 
29*926deccbSFrançois Tigeot #include <drm/drmP.h>
30*926deccbSFrançois Tigeot 
31*926deccbSFrançois Tigeot /*
32*926deccbSFrançois Tigeot  * evergreen cards need to use the 3D engine to blit data which requires
33*926deccbSFrançois Tigeot  * quite a bit of hw state setup.  Rather than pull the whole 3D driver
34*926deccbSFrançois Tigeot  * (which normally generates the 3D state) into the DRM, we opt to use
35*926deccbSFrançois Tigeot  * statically generated state tables.  The regsiter state and shaders
36*926deccbSFrançois Tigeot  * were hand generated to support blitting functionality.  See the 3D
37*926deccbSFrançois Tigeot  * driver or documentation for descriptions of the registers and
38*926deccbSFrançois Tigeot  * shader instructions.
39*926deccbSFrançois Tigeot  */
40*926deccbSFrançois Tigeot 
41*926deccbSFrançois Tigeot const u32 evergreen_default_state[] =
42*926deccbSFrançois Tigeot {
43*926deccbSFrançois Tigeot 	0xc0016900,
44*926deccbSFrançois Tigeot 	0x0000023b,
45*926deccbSFrançois Tigeot 	0x00000000, /* SQ_LDS_ALLOC_PS */
46*926deccbSFrançois Tigeot 
47*926deccbSFrançois Tigeot 	0xc0066900,
48*926deccbSFrançois Tigeot 	0x00000240,
49*926deccbSFrançois Tigeot 	0x00000000, /* SQ_ESGS_RING_ITEMSIZE */
50*926deccbSFrançois Tigeot 	0x00000000,
51*926deccbSFrançois Tigeot 	0x00000000,
52*926deccbSFrançois Tigeot 	0x00000000,
53*926deccbSFrançois Tigeot 	0x00000000,
54*926deccbSFrançois Tigeot 	0x00000000,
55*926deccbSFrançois Tigeot 
56*926deccbSFrançois Tigeot 	0xc0046900,
57*926deccbSFrançois Tigeot 	0x00000247,
58*926deccbSFrançois Tigeot 	0x00000000, /* SQ_GS_VERT_ITEMSIZE */
59*926deccbSFrançois Tigeot 	0x00000000,
60*926deccbSFrançois Tigeot 	0x00000000,
61*926deccbSFrançois Tigeot 	0x00000000,
62*926deccbSFrançois Tigeot 
63*926deccbSFrançois Tigeot 	0xc0026900,
64*926deccbSFrançois Tigeot 	0x00000010,
65*926deccbSFrançois Tigeot 	0x00000000, /* DB_Z_INFO */
66*926deccbSFrançois Tigeot 	0x00000000, /* DB_STENCIL_INFO */
67*926deccbSFrançois Tigeot 
68*926deccbSFrançois Tigeot 	0xc0016900,
69*926deccbSFrançois Tigeot 	0x00000200,
70*926deccbSFrançois Tigeot 	0x00000000, /* DB_DEPTH_CONTROL */
71*926deccbSFrançois Tigeot 
72*926deccbSFrançois Tigeot 	0xc0066900,
73*926deccbSFrançois Tigeot 	0x00000000,
74*926deccbSFrançois Tigeot 	0x00000060, /* DB_RENDER_CONTROL */
75*926deccbSFrançois Tigeot 	0x00000000, /* DB_COUNT_CONTROL */
76*926deccbSFrançois Tigeot 	0x00000000, /* DB_DEPTH_VIEW */
77*926deccbSFrançois Tigeot 	0x0000002a, /* DB_RENDER_OVERRIDE */
78*926deccbSFrançois Tigeot 	0x00000000, /* DB_RENDER_OVERRIDE2 */
79*926deccbSFrançois Tigeot 	0x00000000, /* DB_HTILE_DATA_BASE */
80*926deccbSFrançois Tigeot 
81*926deccbSFrançois Tigeot 	0xc0026900,
82*926deccbSFrançois Tigeot 	0x0000000a,
83*926deccbSFrançois Tigeot 	0x00000000, /* DB_STENCIL_CLEAR */
84*926deccbSFrançois Tigeot 	0x00000000, /* DB_DEPTH_CLEAR */
85*926deccbSFrançois Tigeot 
86*926deccbSFrançois Tigeot 	0xc0016900,
87*926deccbSFrançois Tigeot 	0x000002dc,
88*926deccbSFrançois Tigeot 	0x0000aa00, /* DB_ALPHA_TO_MASK */
89*926deccbSFrançois Tigeot 
90*926deccbSFrançois Tigeot 	0xc0016900,
91*926deccbSFrançois Tigeot 	0x00000080,
92*926deccbSFrançois Tigeot 	0x00000000, /* PA_SC_WINDOW_OFFSET */
93*926deccbSFrançois Tigeot 
94*926deccbSFrançois Tigeot 	0xc00d6900,
95*926deccbSFrançois Tigeot 	0x00000083,
96*926deccbSFrançois Tigeot 	0x0000ffff, /* PA_SC_CLIPRECT_RULE */
97*926deccbSFrançois Tigeot 	0x00000000, /* PA_SC_CLIPRECT_0_TL */
98*926deccbSFrançois Tigeot 	0x20002000, /* PA_SC_CLIPRECT_0_BR */
99*926deccbSFrançois Tigeot 	0x00000000,
100*926deccbSFrançois Tigeot 	0x20002000,
101*926deccbSFrançois Tigeot 	0x00000000,
102*926deccbSFrançois Tigeot 	0x20002000,
103*926deccbSFrançois Tigeot 	0x00000000,
104*926deccbSFrançois Tigeot 	0x20002000,
105*926deccbSFrançois Tigeot 	0xaaaaaaaa, /* PA_SC_EDGERULE */
106*926deccbSFrançois Tigeot 	0x00000000, /* PA_SU_HARDWARE_SCREEN_OFFSET */
107*926deccbSFrançois Tigeot 	0x0000000f, /* CB_TARGET_MASK */
108*926deccbSFrançois Tigeot 	0x0000000f, /* CB_SHADER_MASK */
109*926deccbSFrançois Tigeot 
110*926deccbSFrançois Tigeot 	0xc0226900,
111*926deccbSFrançois Tigeot 	0x00000094,
112*926deccbSFrançois Tigeot 	0x80000000, /* PA_SC_VPORT_SCISSOR_0_TL */
113*926deccbSFrançois Tigeot 	0x20002000, /* PA_SC_VPORT_SCISSOR_0_BR */
114*926deccbSFrançois Tigeot 	0x80000000,
115*926deccbSFrançois Tigeot 	0x20002000,
116*926deccbSFrançois Tigeot 	0x80000000,
117*926deccbSFrançois Tigeot 	0x20002000,
118*926deccbSFrançois Tigeot 	0x80000000,
119*926deccbSFrançois Tigeot 	0x20002000,
120*926deccbSFrançois Tigeot 	0x80000000,
121*926deccbSFrançois Tigeot 	0x20002000,
122*926deccbSFrançois Tigeot 	0x80000000,
123*926deccbSFrançois Tigeot 	0x20002000,
124*926deccbSFrançois Tigeot 	0x80000000,
125*926deccbSFrançois Tigeot 	0x20002000,
126*926deccbSFrançois Tigeot 	0x80000000,
127*926deccbSFrançois Tigeot 	0x20002000,
128*926deccbSFrançois Tigeot 	0x80000000,
129*926deccbSFrançois Tigeot 	0x20002000,
130*926deccbSFrançois Tigeot 	0x80000000,
131*926deccbSFrançois Tigeot 	0x20002000,
132*926deccbSFrançois Tigeot 	0x80000000,
133*926deccbSFrançois Tigeot 	0x20002000,
134*926deccbSFrançois Tigeot 	0x80000000,
135*926deccbSFrançois Tigeot 	0x20002000,
136*926deccbSFrançois Tigeot 	0x80000000,
137*926deccbSFrançois Tigeot 	0x20002000,
138*926deccbSFrançois Tigeot 	0x80000000,
139*926deccbSFrançois Tigeot 	0x20002000,
140*926deccbSFrançois Tigeot 	0x80000000,
141*926deccbSFrançois Tigeot 	0x20002000,
142*926deccbSFrançois Tigeot 	0x80000000,
143*926deccbSFrançois Tigeot 	0x20002000,
144*926deccbSFrançois Tigeot 	0x00000000, /* PA_SC_VPORT_ZMIN_0 */
145*926deccbSFrançois Tigeot 	0x3f800000, /* PA_SC_VPORT_ZMAX_0 */
146*926deccbSFrançois Tigeot 
147*926deccbSFrançois Tigeot 	0xc0016900,
148*926deccbSFrançois Tigeot 	0x000000d4,
149*926deccbSFrançois Tigeot 	0x00000000, /* SX_MISC */
150*926deccbSFrançois Tigeot 
151*926deccbSFrançois Tigeot 	0xc0026900,
152*926deccbSFrançois Tigeot 	0x00000292,
153*926deccbSFrançois Tigeot 	0x00000000, /* PA_SC_MODE_CNTL_0 */
154*926deccbSFrançois Tigeot 	0x00000000, /* PA_SC_MODE_CNTL_1 */
155*926deccbSFrançois Tigeot 
156*926deccbSFrançois Tigeot 	0xc0106900,
157*926deccbSFrançois Tigeot 	0x00000300,
158*926deccbSFrançois Tigeot 	0x00000000, /* PA_SC_LINE_CNTL */
159*926deccbSFrançois Tigeot 	0x00000000, /* PA_SC_AA_CONFIG */
160*926deccbSFrançois Tigeot 	0x00000005, /* PA_SU_VTX_CNTL */
161*926deccbSFrançois Tigeot 	0x3f800000, /* PA_CL_GB_VERT_CLIP_ADJ */
162*926deccbSFrançois Tigeot 	0x3f800000, /* PA_CL_GB_VERT_DISC_ADJ */
163*926deccbSFrançois Tigeot 	0x3f800000, /* PA_CL_GB_HORZ_CLIP_ADJ */
164*926deccbSFrançois Tigeot 	0x3f800000, /* PA_CL_GB_HORZ_DISC_ADJ */
165*926deccbSFrançois Tigeot 	0x00000000, /* PA_SC_AA_SAMPLE_LOCS_0 */
166*926deccbSFrançois Tigeot 	0x00000000, /*  */
167*926deccbSFrançois Tigeot 	0x00000000, /*  */
168*926deccbSFrançois Tigeot 	0x00000000, /*  */
169*926deccbSFrançois Tigeot 	0x00000000, /*  */
170*926deccbSFrançois Tigeot 	0x00000000, /*  */
171*926deccbSFrançois Tigeot 	0x00000000, /*  */
172*926deccbSFrançois Tigeot 	0x00000000, /* PA_SC_AA_SAMPLE_LOCS_7 */
173*926deccbSFrançois Tigeot 	0xffffffff, /* PA_SC_AA_MASK */
174*926deccbSFrançois Tigeot 
175*926deccbSFrançois Tigeot 	0xc00d6900,
176*926deccbSFrançois Tigeot 	0x00000202,
177*926deccbSFrançois Tigeot 	0x00cc0010, /* CB_COLOR_CONTROL */
178*926deccbSFrançois Tigeot 	0x00000210, /* DB_SHADER_CONTROL */
179*926deccbSFrançois Tigeot 	0x00010000, /* PA_CL_CLIP_CNTL */
180*926deccbSFrançois Tigeot 	0x00000004, /* PA_SU_SC_MODE_CNTL */
181*926deccbSFrançois Tigeot 	0x00000100, /* PA_CL_VTE_CNTL */
182*926deccbSFrançois Tigeot 	0x00000000, /* PA_CL_VS_OUT_CNTL */
183*926deccbSFrançois Tigeot 	0x00000000, /* PA_CL_NANINF_CNTL */
184*926deccbSFrançois Tigeot 	0x00000000, /* PA_SU_LINE_STIPPLE_CNTL */
185*926deccbSFrançois Tigeot 	0x00000000, /* PA_SU_LINE_STIPPLE_SCALE */
186*926deccbSFrançois Tigeot 	0x00000000, /* PA_SU_PRIM_FILTER_CNTL */
187*926deccbSFrançois Tigeot 	0x00000000, /*  */
188*926deccbSFrançois Tigeot 	0x00000000, /*  */
189*926deccbSFrançois Tigeot 	0x00000000, /* SQ_DYN_GPR_RESOURCE_LIMIT_1 */
190*926deccbSFrançois Tigeot 
191*926deccbSFrançois Tigeot 	0xc0066900,
192*926deccbSFrançois Tigeot 	0x000002de,
193*926deccbSFrançois Tigeot 	0x00000000, /* PA_SU_POLY_OFFSET_DB_FMT_CNTL */
194*926deccbSFrançois Tigeot 	0x00000000, /*  */
195*926deccbSFrançois Tigeot 	0x00000000, /*  */
196*926deccbSFrançois Tigeot 	0x00000000, /*  */
197*926deccbSFrançois Tigeot 	0x00000000, /*  */
198*926deccbSFrançois Tigeot 	0x00000000, /*  */
199*926deccbSFrançois Tigeot 
200*926deccbSFrançois Tigeot 	0xc0016900,
201*926deccbSFrançois Tigeot 	0x00000229,
202*926deccbSFrançois Tigeot 	0x00000000, /* SQ_PGM_START_FS */
203*926deccbSFrançois Tigeot 
204*926deccbSFrançois Tigeot 	0xc0016900,
205*926deccbSFrançois Tigeot 	0x0000022a,
206*926deccbSFrançois Tigeot 	0x00000000, /* SQ_PGM_RESOURCES_FS */
207*926deccbSFrançois Tigeot 
208*926deccbSFrançois Tigeot 	0xc0096900,
209*926deccbSFrançois Tigeot 	0x00000100,
210*926deccbSFrançois Tigeot 	0x00ffffff, /* VGT_MAX_VTX_INDX */
211*926deccbSFrançois Tigeot 	0x00000000, /*  */
212*926deccbSFrançois Tigeot 	0x00000000, /*  */
213*926deccbSFrançois Tigeot 	0x00000000, /*  */
214*926deccbSFrançois Tigeot 	0x00000000, /* SX_ALPHA_TEST_CONTROL */
215*926deccbSFrançois Tigeot 	0x00000000, /* CB_BLEND_RED */
216*926deccbSFrançois Tigeot 	0x00000000, /* CB_BLEND_GREEN */
217*926deccbSFrançois Tigeot 	0x00000000, /* CB_BLEND_BLUE */
218*926deccbSFrançois Tigeot 	0x00000000, /* CB_BLEND_ALPHA */
219*926deccbSFrançois Tigeot 
220*926deccbSFrançois Tigeot 	0xc0026900,
221*926deccbSFrançois Tigeot 	0x000002a8,
222*926deccbSFrançois Tigeot 	0x00000000, /* VGT_INSTANCE_STEP_RATE_0 */
223*926deccbSFrançois Tigeot 	0x00000000, /*  */
224*926deccbSFrançois Tigeot 
225*926deccbSFrançois Tigeot 	0xc0026900,
226*926deccbSFrançois Tigeot 	0x000002ad,
227*926deccbSFrançois Tigeot 	0x00000000, /* VGT_REUSE_OFF */
228*926deccbSFrançois Tigeot 	0x00000000, /*  */
229*926deccbSFrançois Tigeot 
230*926deccbSFrançois Tigeot 	0xc0116900,
231*926deccbSFrançois Tigeot 	0x00000280,
232*926deccbSFrançois Tigeot 	0x00000000, /* PA_SU_POINT_SIZE */
233*926deccbSFrançois Tigeot 	0x00000000, /* PA_SU_POINT_MINMAX */
234*926deccbSFrançois Tigeot 	0x00000008, /* PA_SU_LINE_CNTL */
235*926deccbSFrançois Tigeot 	0x00000000, /* PA_SC_LINE_STIPPLE */
236*926deccbSFrançois Tigeot 	0x00000000, /* VGT_OUTPUT_PATH_CNTL */
237*926deccbSFrançois Tigeot 	0x00000000, /* VGT_HOS_CNTL */
238*926deccbSFrançois Tigeot 	0x00000000, /*  */
239*926deccbSFrançois Tigeot 	0x00000000, /*  */
240*926deccbSFrançois Tigeot 	0x00000000, /*  */
241*926deccbSFrançois Tigeot 	0x00000000, /*  */
242*926deccbSFrançois Tigeot 	0x00000000, /*  */
243*926deccbSFrançois Tigeot 	0x00000000, /*  */
244*926deccbSFrançois Tigeot 	0x00000000, /*  */
245*926deccbSFrançois Tigeot 	0x00000000, /*  */
246*926deccbSFrançois Tigeot 	0x00000000, /*  */
247*926deccbSFrançois Tigeot 	0x00000000, /*  */
248*926deccbSFrançois Tigeot 	0x00000000, /* VGT_GS_MODE */
249*926deccbSFrançois Tigeot 
250*926deccbSFrançois Tigeot 	0xc0016900,
251*926deccbSFrançois Tigeot 	0x000002a1,
252*926deccbSFrançois Tigeot 	0x00000000, /* VGT_PRIMITIVEID_EN */
253*926deccbSFrançois Tigeot 
254*926deccbSFrançois Tigeot 	0xc0016900,
255*926deccbSFrançois Tigeot 	0x000002a5,
256*926deccbSFrançois Tigeot 	0x00000000, /* VGT_MULTI_PRIM_IB_RESET_EN */
257*926deccbSFrançois Tigeot 
258*926deccbSFrançois Tigeot 	0xc0016900,
259*926deccbSFrançois Tigeot 	0x000002d5,
260*926deccbSFrançois Tigeot 	0x00000000, /* VGT_SHADER_STAGES_EN */
261*926deccbSFrançois Tigeot 
262*926deccbSFrançois Tigeot 	0xc0026900,
263*926deccbSFrançois Tigeot 	0x000002e5,
264*926deccbSFrançois Tigeot 	0x00000000, /* VGT_STRMOUT_CONFIG */
265*926deccbSFrançois Tigeot 	0x00000000, /*  */
266*926deccbSFrançois Tigeot 
267*926deccbSFrançois Tigeot 	0xc0016900,
268*926deccbSFrançois Tigeot 	0x000001e0,
269*926deccbSFrançois Tigeot 	0x00000000, /* CB_BLEND0_CONTROL */
270*926deccbSFrançois Tigeot 
271*926deccbSFrançois Tigeot 	0xc0016900,
272*926deccbSFrançois Tigeot 	0x000001b1,
273*926deccbSFrançois Tigeot 	0x00000000, /* SPI_VS_OUT_CONFIG */
274*926deccbSFrançois Tigeot 
275*926deccbSFrançois Tigeot 	0xc0016900,
276*926deccbSFrançois Tigeot 	0x00000187,
277*926deccbSFrançois Tigeot 	0x00000000, /* SPI_VS_OUT_ID_0 */
278*926deccbSFrançois Tigeot 
279*926deccbSFrançois Tigeot 	0xc0016900,
280*926deccbSFrançois Tigeot 	0x00000191,
281*926deccbSFrançois Tigeot 	0x00000100, /* SPI_PS_INPUT_CNTL_0 */
282*926deccbSFrançois Tigeot 
283*926deccbSFrançois Tigeot 	0xc00b6900,
284*926deccbSFrançois Tigeot 	0x000001b3,
285*926deccbSFrançois Tigeot 	0x20000001, /* SPI_PS_IN_CONTROL_0 */
286*926deccbSFrançois Tigeot 	0x00000000, /* SPI_PS_IN_CONTROL_1 */
287*926deccbSFrançois Tigeot 	0x00000000, /* SPI_INTERP_CONTROL_0 */
288*926deccbSFrançois Tigeot 	0x00000000, /* SPI_INPUT_Z */
289*926deccbSFrançois Tigeot 	0x00000000, /* SPI_FOG_CNTL */
290*926deccbSFrançois Tigeot 	0x00100000, /* SPI_BARYC_CNTL */
291*926deccbSFrançois Tigeot 	0x00000000, /* SPI_PS_IN_CONTROL_2 */
292*926deccbSFrançois Tigeot 	0x00000000, /*  */
293*926deccbSFrançois Tigeot 	0x00000000, /*  */
294*926deccbSFrançois Tigeot 	0x00000000, /*  */
295*926deccbSFrançois Tigeot 	0x00000000, /*  */
296*926deccbSFrançois Tigeot 
297*926deccbSFrançois Tigeot 	0xc0026900,
298*926deccbSFrançois Tigeot 	0x00000316,
299*926deccbSFrançois Tigeot 	0x0000000e, /* VGT_VERTEX_REUSE_BLOCK_CNTL */
300*926deccbSFrançois Tigeot 	0x00000010, /*  */
301*926deccbSFrançois Tigeot };
302*926deccbSFrançois Tigeot 
303*926deccbSFrançois Tigeot const u32 evergreen_vs[] =
304*926deccbSFrançois Tigeot {
305*926deccbSFrançois Tigeot 	0x00000004,
306*926deccbSFrançois Tigeot 	0x80800400,
307*926deccbSFrançois Tigeot 	0x0000a03c,
308*926deccbSFrançois Tigeot 	0x95000688,
309*926deccbSFrançois Tigeot 	0x00004000,
310*926deccbSFrançois Tigeot 	0x15200688,
311*926deccbSFrançois Tigeot 	0x00000000,
312*926deccbSFrançois Tigeot 	0x00000000,
313*926deccbSFrançois Tigeot 	0x3c000000,
314*926deccbSFrançois Tigeot 	0x67961001,
315*926deccbSFrançois Tigeot #ifdef __BIG_ENDIAN
316*926deccbSFrançois Tigeot 	0x000a0000,
317*926deccbSFrançois Tigeot #else
318*926deccbSFrançois Tigeot 	0x00080000,
319*926deccbSFrançois Tigeot #endif
320*926deccbSFrançois Tigeot 	0x00000000,
321*926deccbSFrançois Tigeot 	0x1c000000,
322*926deccbSFrançois Tigeot 	0x67961000,
323*926deccbSFrançois Tigeot #ifdef __BIG_ENDIAN
324*926deccbSFrançois Tigeot 	0x00020008,
325*926deccbSFrançois Tigeot #else
326*926deccbSFrançois Tigeot 	0x00000008,
327*926deccbSFrançois Tigeot #endif
328*926deccbSFrançois Tigeot 	0x00000000,
329*926deccbSFrançois Tigeot };
330*926deccbSFrançois Tigeot 
331*926deccbSFrançois Tigeot const u32 evergreen_ps[] =
332*926deccbSFrançois Tigeot {
333*926deccbSFrançois Tigeot 	0x00000003,
334*926deccbSFrançois Tigeot 	0xa00c0000,
335*926deccbSFrançois Tigeot 	0x00000008,
336*926deccbSFrançois Tigeot 	0x80400000,
337*926deccbSFrançois Tigeot 	0x00000000,
338*926deccbSFrançois Tigeot 	0x95200688,
339*926deccbSFrançois Tigeot 	0x00380400,
340*926deccbSFrançois Tigeot 	0x00146b10,
341*926deccbSFrançois Tigeot 	0x00380000,
342*926deccbSFrançois Tigeot 	0x20146b10,
343*926deccbSFrançois Tigeot 	0x00380400,
344*926deccbSFrançois Tigeot 	0x40146b00,
345*926deccbSFrançois Tigeot 	0x80380000,
346*926deccbSFrançois Tigeot 	0x60146b00,
347*926deccbSFrançois Tigeot 	0x00000000,
348*926deccbSFrançois Tigeot 	0x00000000,
349*926deccbSFrançois Tigeot 	0x00000010,
350*926deccbSFrançois Tigeot 	0x000d1000,
351*926deccbSFrançois Tigeot 	0xb0800000,
352*926deccbSFrançois Tigeot 	0x00000000,
353*926deccbSFrançois Tigeot };
354*926deccbSFrançois Tigeot 
355*926deccbSFrançois Tigeot const u32 evergreen_ps_size = DRM_ARRAY_SIZE(evergreen_ps);
356*926deccbSFrançois Tigeot const u32 evergreen_vs_size = DRM_ARRAY_SIZE(evergreen_vs);
357*926deccbSFrançois Tigeot const u32 evergreen_default_size = DRM_ARRAY_SIZE(evergreen_default_state);
358