18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * Copyright 2009 Advanced Micro Devices, Inc. 38c2ecf20Sopenharmony_ci * 48c2ecf20Sopenharmony_ci * Permission is hereby granted, free of charge, to any person obtaining a 58c2ecf20Sopenharmony_ci * copy of this software and associated documentation files (the "Software"), 68c2ecf20Sopenharmony_ci * to deal in the Software without restriction, including without limitation 78c2ecf20Sopenharmony_ci * the rights to use, copy, modify, merge, publish, distribute, sublicense, 88c2ecf20Sopenharmony_ci * and/or sell copies of the Software, and to permit persons to whom the 98c2ecf20Sopenharmony_ci * Software is furnished to do so, subject to the following conditions: 108c2ecf20Sopenharmony_ci * 118c2ecf20Sopenharmony_ci * The above copyright notice and this permission notice (including the next 128c2ecf20Sopenharmony_ci * paragraph) shall be included in all copies or substantial portions of the 138c2ecf20Sopenharmony_ci * Software. 148c2ecf20Sopenharmony_ci * 158c2ecf20Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 168c2ecf20Sopenharmony_ci * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 178c2ecf20Sopenharmony_ci * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 188c2ecf20Sopenharmony_ci * THE COPYRIGHT HOLDER(S) AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 198c2ecf20Sopenharmony_ci * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 208c2ecf20Sopenharmony_ci * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 218c2ecf20Sopenharmony_ci * DEALINGS IN THE SOFTWARE. 228c2ecf20Sopenharmony_ci * 238c2ecf20Sopenharmony_ci * Authors: 248c2ecf20Sopenharmony_ci * Alex Deucher <alexander.deucher@amd.com> 258c2ecf20Sopenharmony_ci */ 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ci#include <linux/bug.h> 288c2ecf20Sopenharmony_ci#include <linux/types.h> 298c2ecf20Sopenharmony_ci#include <linux/kernel.h> 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci/* 328c2ecf20Sopenharmony_ci * R6xx+ cards need to use the 3D engine to blit data which requires 338c2ecf20Sopenharmony_ci * quite a bit of hw state setup. Rather than pull the whole 3D driver 348c2ecf20Sopenharmony_ci * (which normally generates the 3D state) into the DRM, we opt to use 358c2ecf20Sopenharmony_ci * statically generated state tables. The register state and shaders 368c2ecf20Sopenharmony_ci * were hand generated to support blitting functionality. See the 3D 378c2ecf20Sopenharmony_ci * driver or documentation for descriptions of the registers and 388c2ecf20Sopenharmony_ci * shader instructions. 398c2ecf20Sopenharmony_ci */ 408c2ecf20Sopenharmony_ci 418c2ecf20Sopenharmony_ciconst u32 r6xx_default_state[] = 428c2ecf20Sopenharmony_ci{ 438c2ecf20Sopenharmony_ci 0xc0002400, /* START_3D_CMDBUF */ 448c2ecf20Sopenharmony_ci 0x00000000, 458c2ecf20Sopenharmony_ci 468c2ecf20Sopenharmony_ci 0xc0012800, /* CONTEXT_CONTROL */ 478c2ecf20Sopenharmony_ci 0x80000000, 488c2ecf20Sopenharmony_ci 0x80000000, 498c2ecf20Sopenharmony_ci 508c2ecf20Sopenharmony_ci 0xc0016800, 518c2ecf20Sopenharmony_ci 0x00000010, 528c2ecf20Sopenharmony_ci 0x00008000, /* WAIT_UNTIL */ 538c2ecf20Sopenharmony_ci 548c2ecf20Sopenharmony_ci 0xc0016800, 558c2ecf20Sopenharmony_ci 0x00000542, 568c2ecf20Sopenharmony_ci 0x07000003, /* TA_CNTL_AUX */ 578c2ecf20Sopenharmony_ci 588c2ecf20Sopenharmony_ci 0xc0016800, 598c2ecf20Sopenharmony_ci 0x000005c5, 608c2ecf20Sopenharmony_ci 0x00000000, /* VC_ENHANCE */ 618c2ecf20Sopenharmony_ci 628c2ecf20Sopenharmony_ci 0xc0016800, 638c2ecf20Sopenharmony_ci 0x00000363, 648c2ecf20Sopenharmony_ci 0x00000000, /* SQ_DYN_GPR_CNTL_PS_FLUSH_REQ */ 658c2ecf20Sopenharmony_ci 668c2ecf20Sopenharmony_ci 0xc0016800, 678c2ecf20Sopenharmony_ci 0x0000060c, 688c2ecf20Sopenharmony_ci 0x82000000, /* DB_DEBUG */ 698c2ecf20Sopenharmony_ci 708c2ecf20Sopenharmony_ci 0xc0016800, 718c2ecf20Sopenharmony_ci 0x0000060e, 728c2ecf20Sopenharmony_ci 0x01020204, /* DB_WATERMARKS */ 738c2ecf20Sopenharmony_ci 748c2ecf20Sopenharmony_ci 0xc0026f00, 758c2ecf20Sopenharmony_ci 0x00000000, 768c2ecf20Sopenharmony_ci 0x00000000, /* SQ_VTX_BASE_VTX_LOC */ 778c2ecf20Sopenharmony_ci 0x00000000, /* SQ_VTX_START_INST_LOC */ 788c2ecf20Sopenharmony_ci 798c2ecf20Sopenharmony_ci 0xc0096900, 808c2ecf20Sopenharmony_ci 0x0000022a, 818c2ecf20Sopenharmony_ci 0x00000000, /* SQ_ESGS_RING_ITEMSIZE */ 828c2ecf20Sopenharmony_ci 0x00000000, 838c2ecf20Sopenharmony_ci 0x00000000, 848c2ecf20Sopenharmony_ci 0x00000000, 858c2ecf20Sopenharmony_ci 0x00000000, 868c2ecf20Sopenharmony_ci 0x00000000, 878c2ecf20Sopenharmony_ci 0x00000000, 888c2ecf20Sopenharmony_ci 0x00000000, 898c2ecf20Sopenharmony_ci 0x00000000, 908c2ecf20Sopenharmony_ci 918c2ecf20Sopenharmony_ci 0xc0016900, 928c2ecf20Sopenharmony_ci 0x00000004, 938c2ecf20Sopenharmony_ci 0x00000000, /* DB_DEPTH_INFO */ 948c2ecf20Sopenharmony_ci 958c2ecf20Sopenharmony_ci 0xc0026900, 968c2ecf20Sopenharmony_ci 0x0000000a, 978c2ecf20Sopenharmony_ci 0x00000000, /* DB_STENCIL_CLEAR */ 988c2ecf20Sopenharmony_ci 0x00000000, /* DB_DEPTH_CLEAR */ 998c2ecf20Sopenharmony_ci 1008c2ecf20Sopenharmony_ci 0xc0016900, 1018c2ecf20Sopenharmony_ci 0x00000200, 1028c2ecf20Sopenharmony_ci 0x00000000, /* DB_DEPTH_CONTROL */ 1038c2ecf20Sopenharmony_ci 1048c2ecf20Sopenharmony_ci 0xc0026900, 1058c2ecf20Sopenharmony_ci 0x00000343, 1068c2ecf20Sopenharmony_ci 0x00000060, /* DB_RENDER_CONTROL */ 1078c2ecf20Sopenharmony_ci 0x00000040, /* DB_RENDER_OVERRIDE */ 1088c2ecf20Sopenharmony_ci 1098c2ecf20Sopenharmony_ci 0xc0016900, 1108c2ecf20Sopenharmony_ci 0x00000351, 1118c2ecf20Sopenharmony_ci 0x0000aa00, /* DB_ALPHA_TO_MASK */ 1128c2ecf20Sopenharmony_ci 1138c2ecf20Sopenharmony_ci 0xc00f6900, 1148c2ecf20Sopenharmony_ci 0x00000100, 1158c2ecf20Sopenharmony_ci 0x00000800, /* VGT_MAX_VTX_INDX */ 1168c2ecf20Sopenharmony_ci 0x00000000, /* VGT_MIN_VTX_INDX */ 1178c2ecf20Sopenharmony_ci 0x00000000, /* VGT_INDX_OFFSET */ 1188c2ecf20Sopenharmony_ci 0x00000000, /* VGT_MULTI_PRIM_IB_RESET_INDX */ 1198c2ecf20Sopenharmony_ci 0x00000000, /* SX_ALPHA_TEST_CONTROL */ 1208c2ecf20Sopenharmony_ci 0x00000000, /* CB_BLEND_RED */ 1218c2ecf20Sopenharmony_ci 0x00000000, 1228c2ecf20Sopenharmony_ci 0x00000000, 1238c2ecf20Sopenharmony_ci 0x00000000, 1248c2ecf20Sopenharmony_ci 0x00000000, /* CB_FOG_RED */ 1258c2ecf20Sopenharmony_ci 0x00000000, 1268c2ecf20Sopenharmony_ci 0x00000000, 1278c2ecf20Sopenharmony_ci 0x00000000, /* DB_STENCILREFMASK */ 1288c2ecf20Sopenharmony_ci 0x00000000, /* DB_STENCILREFMASK_BF */ 1298c2ecf20Sopenharmony_ci 0x00000000, /* SX_ALPHA_REF */ 1308c2ecf20Sopenharmony_ci 1318c2ecf20Sopenharmony_ci 0xc0046900, 1328c2ecf20Sopenharmony_ci 0x0000030c, 1338c2ecf20Sopenharmony_ci 0x01000000, /* CB_CLRCMP_CNTL */ 1348c2ecf20Sopenharmony_ci 0x00000000, 1358c2ecf20Sopenharmony_ci 0x00000000, 1368c2ecf20Sopenharmony_ci 0x00000000, 1378c2ecf20Sopenharmony_ci 1388c2ecf20Sopenharmony_ci 0xc0046900, 1398c2ecf20Sopenharmony_ci 0x00000048, 1408c2ecf20Sopenharmony_ci 0x3f800000, /* CB_CLEAR_RED */ 1418c2ecf20Sopenharmony_ci 0x00000000, 1428c2ecf20Sopenharmony_ci 0x3f800000, 1438c2ecf20Sopenharmony_ci 0x3f800000, 1448c2ecf20Sopenharmony_ci 1458c2ecf20Sopenharmony_ci 0xc0016900, 1468c2ecf20Sopenharmony_ci 0x00000080, 1478c2ecf20Sopenharmony_ci 0x00000000, /* PA_SC_WINDOW_OFFSET */ 1488c2ecf20Sopenharmony_ci 1498c2ecf20Sopenharmony_ci 0xc00a6900, 1508c2ecf20Sopenharmony_ci 0x00000083, 1518c2ecf20Sopenharmony_ci 0x0000ffff, /* PA_SC_CLIP_RECT_RULE */ 1528c2ecf20Sopenharmony_ci 0x00000000, /* PA_SC_CLIPRECT_0_TL */ 1538c2ecf20Sopenharmony_ci 0x20002000, 1548c2ecf20Sopenharmony_ci 0x00000000, 1558c2ecf20Sopenharmony_ci 0x20002000, 1568c2ecf20Sopenharmony_ci 0x00000000, 1578c2ecf20Sopenharmony_ci 0x20002000, 1588c2ecf20Sopenharmony_ci 0x00000000, 1598c2ecf20Sopenharmony_ci 0x20002000, 1608c2ecf20Sopenharmony_ci 0x00000000, /* PA_SC_EDGERULE */ 1618c2ecf20Sopenharmony_ci 1628c2ecf20Sopenharmony_ci 0xc0406900, 1638c2ecf20Sopenharmony_ci 0x00000094, 1648c2ecf20Sopenharmony_ci 0x80000000, /* PA_SC_VPORT_SCISSOR_0_TL */ 1658c2ecf20Sopenharmony_ci 0x20002000, /* PA_SC_VPORT_SCISSOR_0_BR */ 1668c2ecf20Sopenharmony_ci 0x80000000, /* PA_SC_VPORT_SCISSOR_1_TL */ 1678c2ecf20Sopenharmony_ci 0x20002000, 1688c2ecf20Sopenharmony_ci 0x80000000, 1698c2ecf20Sopenharmony_ci 0x20002000, 1708c2ecf20Sopenharmony_ci 0x80000000, 1718c2ecf20Sopenharmony_ci 0x20002000, 1728c2ecf20Sopenharmony_ci 0x80000000, 1738c2ecf20Sopenharmony_ci 0x20002000, 1748c2ecf20Sopenharmony_ci 0x80000000, 1758c2ecf20Sopenharmony_ci 0x20002000, 1768c2ecf20Sopenharmony_ci 0x80000000, 1778c2ecf20Sopenharmony_ci 0x20002000, 1788c2ecf20Sopenharmony_ci 0x80000000, 1798c2ecf20Sopenharmony_ci 0x20002000, 1808c2ecf20Sopenharmony_ci 0x80000000, 1818c2ecf20Sopenharmony_ci 0x20002000, 1828c2ecf20Sopenharmony_ci 0x80000000, 1838c2ecf20Sopenharmony_ci 0x20002000, 1848c2ecf20Sopenharmony_ci 0x80000000, 1858c2ecf20Sopenharmony_ci 0x20002000, 1868c2ecf20Sopenharmony_ci 0x80000000, 1878c2ecf20Sopenharmony_ci 0x20002000, 1888c2ecf20Sopenharmony_ci 0x80000000, 1898c2ecf20Sopenharmony_ci 0x20002000, 1908c2ecf20Sopenharmony_ci 0x80000000, 1918c2ecf20Sopenharmony_ci 0x20002000, 1928c2ecf20Sopenharmony_ci 0x80000000, 1938c2ecf20Sopenharmony_ci 0x20002000, 1948c2ecf20Sopenharmony_ci 0x80000000, 1958c2ecf20Sopenharmony_ci 0x20002000, 1968c2ecf20Sopenharmony_ci 0x00000000, /* PA_SC_VPORT_ZMIN_0 */ 1978c2ecf20Sopenharmony_ci 0x3f800000, 1988c2ecf20Sopenharmony_ci 0x00000000, 1998c2ecf20Sopenharmony_ci 0x3f800000, 2008c2ecf20Sopenharmony_ci 0x00000000, 2018c2ecf20Sopenharmony_ci 0x3f800000, 2028c2ecf20Sopenharmony_ci 0x00000000, 2038c2ecf20Sopenharmony_ci 0x3f800000, 2048c2ecf20Sopenharmony_ci 0x00000000, 2058c2ecf20Sopenharmony_ci 0x3f800000, 2068c2ecf20Sopenharmony_ci 0x00000000, 2078c2ecf20Sopenharmony_ci 0x3f800000, 2088c2ecf20Sopenharmony_ci 0x00000000, 2098c2ecf20Sopenharmony_ci 0x3f800000, 2108c2ecf20Sopenharmony_ci 0x00000000, 2118c2ecf20Sopenharmony_ci 0x3f800000, 2128c2ecf20Sopenharmony_ci 0x00000000, 2138c2ecf20Sopenharmony_ci 0x3f800000, 2148c2ecf20Sopenharmony_ci 0x00000000, 2158c2ecf20Sopenharmony_ci 0x3f800000, 2168c2ecf20Sopenharmony_ci 0x00000000, 2178c2ecf20Sopenharmony_ci 0x3f800000, 2188c2ecf20Sopenharmony_ci 0x00000000, 2198c2ecf20Sopenharmony_ci 0x3f800000, 2208c2ecf20Sopenharmony_ci 0x00000000, 2218c2ecf20Sopenharmony_ci 0x3f800000, 2228c2ecf20Sopenharmony_ci 0x00000000, 2238c2ecf20Sopenharmony_ci 0x3f800000, 2248c2ecf20Sopenharmony_ci 0x00000000, 2258c2ecf20Sopenharmony_ci 0x3f800000, 2268c2ecf20Sopenharmony_ci 0x00000000, 2278c2ecf20Sopenharmony_ci 0x3f800000, 2288c2ecf20Sopenharmony_ci 2298c2ecf20Sopenharmony_ci 0xc0026900, 2308c2ecf20Sopenharmony_ci 0x00000292, 2318c2ecf20Sopenharmony_ci 0x00000000, /* PA_SC_MPASS_PS_CNTL */ 2328c2ecf20Sopenharmony_ci 0x00004010, /* PA_SC_MODE_CNTL */ 2338c2ecf20Sopenharmony_ci 2348c2ecf20Sopenharmony_ci 0xc0096900, 2358c2ecf20Sopenharmony_ci 0x00000300, 2368c2ecf20Sopenharmony_ci 0x00000000, /* PA_SC_LINE_CNTL */ 2378c2ecf20Sopenharmony_ci 0x00000000, /* PA_SC_AA_CONFIG */ 2388c2ecf20Sopenharmony_ci 0x0000002d, /* PA_SU_VTX_CNTL */ 2398c2ecf20Sopenharmony_ci 0x3f800000, /* PA_CL_GB_VERT_CLIP_ADJ */ 2408c2ecf20Sopenharmony_ci 0x3f800000, 2418c2ecf20Sopenharmony_ci 0x3f800000, 2428c2ecf20Sopenharmony_ci 0x3f800000, 2438c2ecf20Sopenharmony_ci 0x00000000, /* PA_SC_SAMPLE_LOCS_MCTX */ 2448c2ecf20Sopenharmony_ci 0x00000000, 2458c2ecf20Sopenharmony_ci 2468c2ecf20Sopenharmony_ci 0xc0016900, 2478c2ecf20Sopenharmony_ci 0x00000312, 2488c2ecf20Sopenharmony_ci 0xffffffff, /* PA_SC_AA_MASK */ 2498c2ecf20Sopenharmony_ci 2508c2ecf20Sopenharmony_ci 0xc0066900, 2518c2ecf20Sopenharmony_ci 0x0000037e, 2528c2ecf20Sopenharmony_ci 0x00000000, /* PA_SU_POLY_OFFSET_DB_FMT_CNTL */ 2538c2ecf20Sopenharmony_ci 0x00000000, /* PA_SU_POLY_OFFSET_CLAMP */ 2548c2ecf20Sopenharmony_ci 0x00000000, /* PA_SU_POLY_OFFSET_FRONT_SCALE */ 2558c2ecf20Sopenharmony_ci 0x00000000, /* PA_SU_POLY_OFFSET_FRONT_OFFSET */ 2568c2ecf20Sopenharmony_ci 0x00000000, /* PA_SU_POLY_OFFSET_BACK_SCALE */ 2578c2ecf20Sopenharmony_ci 0x00000000, /* PA_SU_POLY_OFFSET_BACK_OFFSET */ 2588c2ecf20Sopenharmony_ci 2598c2ecf20Sopenharmony_ci 0xc0046900, 2608c2ecf20Sopenharmony_ci 0x000001b6, 2618c2ecf20Sopenharmony_ci 0x00000000, /* SPI_INPUT_Z */ 2628c2ecf20Sopenharmony_ci 0x00000000, /* SPI_FOG_CNTL */ 2638c2ecf20Sopenharmony_ci 0x00000000, /* SPI_FOG_FUNC_SCALE */ 2648c2ecf20Sopenharmony_ci 0x00000000, /* SPI_FOG_FUNC_BIAS */ 2658c2ecf20Sopenharmony_ci 2668c2ecf20Sopenharmony_ci 0xc0016900, 2678c2ecf20Sopenharmony_ci 0x00000225, 2688c2ecf20Sopenharmony_ci 0x00000000, /* SQ_PGM_START_FS */ 2698c2ecf20Sopenharmony_ci 2708c2ecf20Sopenharmony_ci 0xc0016900, 2718c2ecf20Sopenharmony_ci 0x00000229, 2728c2ecf20Sopenharmony_ci 0x00000000, /* SQ_PGM_RESOURCES_FS */ 2738c2ecf20Sopenharmony_ci 2748c2ecf20Sopenharmony_ci 0xc0016900, 2758c2ecf20Sopenharmony_ci 0x00000237, 2768c2ecf20Sopenharmony_ci 0x00000000, /* SQ_PGM_CF_OFFSET_FS */ 2778c2ecf20Sopenharmony_ci 2788c2ecf20Sopenharmony_ci 0xc0026900, 2798c2ecf20Sopenharmony_ci 0x000002a8, 2808c2ecf20Sopenharmony_ci 0x00000000, /* VGT_INSTANCE_STEP_RATE_0 */ 2818c2ecf20Sopenharmony_ci 0x00000000, /* VGT_INSTANCE_STEP_RATE_1 */ 2828c2ecf20Sopenharmony_ci 2838c2ecf20Sopenharmony_ci 0xc0116900, 2848c2ecf20Sopenharmony_ci 0x00000280, 2858c2ecf20Sopenharmony_ci 0x00000000, /* PA_SU_POINT_SIZE */ 2868c2ecf20Sopenharmony_ci 0x00000000, /* PA_SU_POINT_MINMAX */ 2878c2ecf20Sopenharmony_ci 0x00000008, /* PA_SU_LINE_CNTL */ 2888c2ecf20Sopenharmony_ci 0x00000000, /* PA_SC_LINE_STIPPLE */ 2898c2ecf20Sopenharmony_ci 0x00000000, /* VGT_OUTPUT_PATH_CNTL */ 2908c2ecf20Sopenharmony_ci 0x00000000, /* VGT_HOS_CNTL */ 2918c2ecf20Sopenharmony_ci 0x00000000, /* VGT_HOS_MAX_TESS_LEVEL */ 2928c2ecf20Sopenharmony_ci 0x00000000, /* VGT_HOS_MIN_TESS_LEVEL */ 2938c2ecf20Sopenharmony_ci 0x00000000, /* VGT_HOS_REUSE_DEPTH */ 2948c2ecf20Sopenharmony_ci 0x00000000, /* VGT_GROUP_PRIM_TYPE */ 2958c2ecf20Sopenharmony_ci 0x00000000, /* VGT_GROUP_FIRST_DECR */ 2968c2ecf20Sopenharmony_ci 0x00000000, /* VGT_GROUP_DECR */ 2978c2ecf20Sopenharmony_ci 0x00000000, /* VGT_GROUP_VECT_0_CNTL */ 2988c2ecf20Sopenharmony_ci 0x00000000, /* VGT_GROUP_VECT_1_CNTL */ 2998c2ecf20Sopenharmony_ci 0x00000000, /* VGT_GROUP_VECT_0_FMT_CNTL */ 3008c2ecf20Sopenharmony_ci 0x00000000, /* VGT_GROUP_VECT_1_FMT_CNTL */ 3018c2ecf20Sopenharmony_ci 0x00000000, /* VGT_GS_MODE */ 3028c2ecf20Sopenharmony_ci 3038c2ecf20Sopenharmony_ci 0xc0016900, 3048c2ecf20Sopenharmony_ci 0x000002a1, 3058c2ecf20Sopenharmony_ci 0x00000000, /* VGT_PRIMITIVEID_EN */ 3068c2ecf20Sopenharmony_ci 3078c2ecf20Sopenharmony_ci 0xc0016900, 3088c2ecf20Sopenharmony_ci 0x000002a5, 3098c2ecf20Sopenharmony_ci 0x00000000, /* VGT_MULTI_PRIM_ID_RESET_EN */ 3108c2ecf20Sopenharmony_ci 3118c2ecf20Sopenharmony_ci 0xc0036900, 3128c2ecf20Sopenharmony_ci 0x000002ac, 3138c2ecf20Sopenharmony_ci 0x00000000, /* VGT_STRMOUT_EN */ 3148c2ecf20Sopenharmony_ci 0x00000000, /* VGT_REUSE_OFF */ 3158c2ecf20Sopenharmony_ci 0x00000000, /* VGT_VTX_CNT_EN */ 3168c2ecf20Sopenharmony_ci 3178c2ecf20Sopenharmony_ci 0xc0016900, 3188c2ecf20Sopenharmony_ci 0x000000d4, 3198c2ecf20Sopenharmony_ci 0x00000000, /* SX_MISC */ 3208c2ecf20Sopenharmony_ci 3218c2ecf20Sopenharmony_ci 0xc0016900, 3228c2ecf20Sopenharmony_ci 0x000002c8, 3238c2ecf20Sopenharmony_ci 0x00000000, /* VGT_STRMOUT_BUFFER_EN */ 3248c2ecf20Sopenharmony_ci 3258c2ecf20Sopenharmony_ci 0xc0076900, 3268c2ecf20Sopenharmony_ci 0x00000202, 3278c2ecf20Sopenharmony_ci 0x00cc0000, /* CB_COLOR_CONTROL */ 3288c2ecf20Sopenharmony_ci 0x00000210, /* DB_SHADER_CNTL */ 3298c2ecf20Sopenharmony_ci 0x00010000, /* PA_CL_CLIP_CNTL */ 3308c2ecf20Sopenharmony_ci 0x00000244, /* PA_SU_SC_MODE_CNTL */ 3318c2ecf20Sopenharmony_ci 0x00000100, /* PA_CL_VTE_CNTL */ 3328c2ecf20Sopenharmony_ci 0x00000000, /* PA_CL_VS_OUT_CNTL */ 3338c2ecf20Sopenharmony_ci 0x00000000, /* PA_CL_NANINF_CNTL */ 3348c2ecf20Sopenharmony_ci 3358c2ecf20Sopenharmony_ci 0xc0026900, 3368c2ecf20Sopenharmony_ci 0x0000008e, 3378c2ecf20Sopenharmony_ci 0x0000000f, /* CB_TARGET_MASK */ 3388c2ecf20Sopenharmony_ci 0x0000000f, /* CB_SHADER_MASK */ 3398c2ecf20Sopenharmony_ci 3408c2ecf20Sopenharmony_ci 0xc0016900, 3418c2ecf20Sopenharmony_ci 0x000001e8, 3428c2ecf20Sopenharmony_ci 0x00000001, /* CB_SHADER_CONTROL */ 3438c2ecf20Sopenharmony_ci 3448c2ecf20Sopenharmony_ci 0xc0016900, 3458c2ecf20Sopenharmony_ci 0x00000185, 3468c2ecf20Sopenharmony_ci 0x00000000, /* SPI_VS_OUT_ID_0 */ 3478c2ecf20Sopenharmony_ci 3488c2ecf20Sopenharmony_ci 0xc0016900, 3498c2ecf20Sopenharmony_ci 0x00000191, 3508c2ecf20Sopenharmony_ci 0x00000b00, /* SPI_PS_INPUT_CNTL_0 */ 3518c2ecf20Sopenharmony_ci 3528c2ecf20Sopenharmony_ci 0xc0056900, 3538c2ecf20Sopenharmony_ci 0x000001b1, 3548c2ecf20Sopenharmony_ci 0x00000000, /* SPI_VS_OUT_CONFIG */ 3558c2ecf20Sopenharmony_ci 0x00000000, /* SPI_THREAD_GROUPING */ 3568c2ecf20Sopenharmony_ci 0x00000001, /* SPI_PS_IN_CONTROL_0 */ 3578c2ecf20Sopenharmony_ci 0x00000000, /* SPI_PS_IN_CONTROL_1 */ 3588c2ecf20Sopenharmony_ci 0x00000000, /* SPI_INTERP_CONTROL_0 */ 3598c2ecf20Sopenharmony_ci 3608c2ecf20Sopenharmony_ci 0xc0036e00, /* SET_SAMPLER */ 3618c2ecf20Sopenharmony_ci 0x00000000, 3628c2ecf20Sopenharmony_ci 0x00000012, 3638c2ecf20Sopenharmony_ci 0x00000000, 3648c2ecf20Sopenharmony_ci 0x00000000, 3658c2ecf20Sopenharmony_ci}; 3668c2ecf20Sopenharmony_ci 3678c2ecf20Sopenharmony_ciconst u32 r7xx_default_state[] = 3688c2ecf20Sopenharmony_ci{ 3698c2ecf20Sopenharmony_ci 0xc0012800, /* CONTEXT_CONTROL */ 3708c2ecf20Sopenharmony_ci 0x80000000, 3718c2ecf20Sopenharmony_ci 0x80000000, 3728c2ecf20Sopenharmony_ci 3738c2ecf20Sopenharmony_ci 0xc0016800, 3748c2ecf20Sopenharmony_ci 0x00000010, 3758c2ecf20Sopenharmony_ci 0x00008000, /* WAIT_UNTIL */ 3768c2ecf20Sopenharmony_ci 3778c2ecf20Sopenharmony_ci 0xc0016800, 3788c2ecf20Sopenharmony_ci 0x00000542, 3798c2ecf20Sopenharmony_ci 0x07000002, /* TA_CNTL_AUX */ 3808c2ecf20Sopenharmony_ci 3818c2ecf20Sopenharmony_ci 0xc0016800, 3828c2ecf20Sopenharmony_ci 0x000005c5, 3838c2ecf20Sopenharmony_ci 0x00000000, /* VC_ENHANCE */ 3848c2ecf20Sopenharmony_ci 3858c2ecf20Sopenharmony_ci 0xc0016800, 3868c2ecf20Sopenharmony_ci 0x00000363, 3878c2ecf20Sopenharmony_ci 0x00004000, /* SQ_DYN_GPR_CNTL_PS_FLUSH_REQ */ 3888c2ecf20Sopenharmony_ci 3898c2ecf20Sopenharmony_ci 0xc0016800, 3908c2ecf20Sopenharmony_ci 0x0000060c, 3918c2ecf20Sopenharmony_ci 0x00000000, /* DB_DEBUG */ 3928c2ecf20Sopenharmony_ci 3938c2ecf20Sopenharmony_ci 0xc0016800, 3948c2ecf20Sopenharmony_ci 0x0000060e, 3958c2ecf20Sopenharmony_ci 0x00420204, /* DB_WATERMARKS */ 3968c2ecf20Sopenharmony_ci 3978c2ecf20Sopenharmony_ci 0xc0026f00, 3988c2ecf20Sopenharmony_ci 0x00000000, 3998c2ecf20Sopenharmony_ci 0x00000000, /* SQ_VTX_BASE_VTX_LOC */ 4008c2ecf20Sopenharmony_ci 0x00000000, /* SQ_VTX_START_INST_LOC */ 4018c2ecf20Sopenharmony_ci 4028c2ecf20Sopenharmony_ci 0xc0096900, 4038c2ecf20Sopenharmony_ci 0x0000022a, 4048c2ecf20Sopenharmony_ci 0x00000000, /* SQ_ESGS_RING_ITEMSIZE */ 4058c2ecf20Sopenharmony_ci 0x00000000, 4068c2ecf20Sopenharmony_ci 0x00000000, 4078c2ecf20Sopenharmony_ci 0x00000000, 4088c2ecf20Sopenharmony_ci 0x00000000, 4098c2ecf20Sopenharmony_ci 0x00000000, 4108c2ecf20Sopenharmony_ci 0x00000000, 4118c2ecf20Sopenharmony_ci 0x00000000, 4128c2ecf20Sopenharmony_ci 0x00000000, 4138c2ecf20Sopenharmony_ci 4148c2ecf20Sopenharmony_ci 0xc0016900, 4158c2ecf20Sopenharmony_ci 0x00000004, 4168c2ecf20Sopenharmony_ci 0x00000000, /* DB_DEPTH_INFO */ 4178c2ecf20Sopenharmony_ci 4188c2ecf20Sopenharmony_ci 0xc0026900, 4198c2ecf20Sopenharmony_ci 0x0000000a, 4208c2ecf20Sopenharmony_ci 0x00000000, /* DB_STENCIL_CLEAR */ 4218c2ecf20Sopenharmony_ci 0x00000000, /* DB_DEPTH_CLEAR */ 4228c2ecf20Sopenharmony_ci 4238c2ecf20Sopenharmony_ci 0xc0016900, 4248c2ecf20Sopenharmony_ci 0x00000200, 4258c2ecf20Sopenharmony_ci 0x00000000, /* DB_DEPTH_CONTROL */ 4268c2ecf20Sopenharmony_ci 4278c2ecf20Sopenharmony_ci 0xc0026900, 4288c2ecf20Sopenharmony_ci 0x00000343, 4298c2ecf20Sopenharmony_ci 0x00000060, /* DB_RENDER_CONTROL */ 4308c2ecf20Sopenharmony_ci 0x00000000, /* DB_RENDER_OVERRIDE */ 4318c2ecf20Sopenharmony_ci 4328c2ecf20Sopenharmony_ci 0xc0016900, 4338c2ecf20Sopenharmony_ci 0x00000351, 4348c2ecf20Sopenharmony_ci 0x0000aa00, /* DB_ALPHA_TO_MASK */ 4358c2ecf20Sopenharmony_ci 4368c2ecf20Sopenharmony_ci 0xc0096900, 4378c2ecf20Sopenharmony_ci 0x00000100, 4388c2ecf20Sopenharmony_ci 0x00000800, /* VGT_MAX_VTX_INDX */ 4398c2ecf20Sopenharmony_ci 0x00000000, /* VGT_MIN_VTX_INDX */ 4408c2ecf20Sopenharmony_ci 0x00000000, /* VGT_INDX_OFFSET */ 4418c2ecf20Sopenharmony_ci 0x00000000, /* VGT_MULTI_PRIM_IB_RESET_INDX */ 4428c2ecf20Sopenharmony_ci 0x00000000, /* SX_ALPHA_TEST_CONTROL */ 4438c2ecf20Sopenharmony_ci 0x00000000, /* CB_BLEND_RED */ 4448c2ecf20Sopenharmony_ci 0x00000000, 4458c2ecf20Sopenharmony_ci 0x00000000, 4468c2ecf20Sopenharmony_ci 0x00000000, 4478c2ecf20Sopenharmony_ci 4488c2ecf20Sopenharmony_ci 0xc0036900, 4498c2ecf20Sopenharmony_ci 0x0000010c, 4508c2ecf20Sopenharmony_ci 0x00000000, /* DB_STENCILREFMASK */ 4518c2ecf20Sopenharmony_ci 0x00000000, /* DB_STENCILREFMASK_BF */ 4528c2ecf20Sopenharmony_ci 0x00000000, /* SX_ALPHA_REF */ 4538c2ecf20Sopenharmony_ci 4548c2ecf20Sopenharmony_ci 0xc0046900, 4558c2ecf20Sopenharmony_ci 0x0000030c, /* CB_CLRCMP_CNTL */ 4568c2ecf20Sopenharmony_ci 0x01000000, 4578c2ecf20Sopenharmony_ci 0x00000000, 4588c2ecf20Sopenharmony_ci 0x00000000, 4598c2ecf20Sopenharmony_ci 0x00000000, 4608c2ecf20Sopenharmony_ci 4618c2ecf20Sopenharmony_ci 0xc0016900, 4628c2ecf20Sopenharmony_ci 0x00000080, 4638c2ecf20Sopenharmony_ci 0x00000000, /* PA_SC_WINDOW_OFFSET */ 4648c2ecf20Sopenharmony_ci 4658c2ecf20Sopenharmony_ci 0xc00a6900, 4668c2ecf20Sopenharmony_ci 0x00000083, 4678c2ecf20Sopenharmony_ci 0x0000ffff, /* PA_SC_CLIP_RECT_RULE */ 4688c2ecf20Sopenharmony_ci 0x00000000, /* PA_SC_CLIPRECT_0_TL */ 4698c2ecf20Sopenharmony_ci 0x20002000, 4708c2ecf20Sopenharmony_ci 0x00000000, 4718c2ecf20Sopenharmony_ci 0x20002000, 4728c2ecf20Sopenharmony_ci 0x00000000, 4738c2ecf20Sopenharmony_ci 0x20002000, 4748c2ecf20Sopenharmony_ci 0x00000000, 4758c2ecf20Sopenharmony_ci 0x20002000, 4768c2ecf20Sopenharmony_ci 0xaaaaaaaa, /* PA_SC_EDGERULE */ 4778c2ecf20Sopenharmony_ci 4788c2ecf20Sopenharmony_ci 0xc0406900, 4798c2ecf20Sopenharmony_ci 0x00000094, 4808c2ecf20Sopenharmony_ci 0x80000000, /* PA_SC_VPORT_SCISSOR_0_TL */ 4818c2ecf20Sopenharmony_ci 0x20002000, /* PA_SC_VPORT_SCISSOR_0_BR */ 4828c2ecf20Sopenharmony_ci 0x80000000, /* PA_SC_VPORT_SCISSOR_1_TL */ 4838c2ecf20Sopenharmony_ci 0x20002000, 4848c2ecf20Sopenharmony_ci 0x80000000, 4858c2ecf20Sopenharmony_ci 0x20002000, 4868c2ecf20Sopenharmony_ci 0x80000000, 4878c2ecf20Sopenharmony_ci 0x20002000, 4888c2ecf20Sopenharmony_ci 0x80000000, 4898c2ecf20Sopenharmony_ci 0x20002000, 4908c2ecf20Sopenharmony_ci 0x80000000, 4918c2ecf20Sopenharmony_ci 0x20002000, 4928c2ecf20Sopenharmony_ci 0x80000000, 4938c2ecf20Sopenharmony_ci 0x20002000, 4948c2ecf20Sopenharmony_ci 0x80000000, 4958c2ecf20Sopenharmony_ci 0x20002000, 4968c2ecf20Sopenharmony_ci 0x80000000, 4978c2ecf20Sopenharmony_ci 0x20002000, 4988c2ecf20Sopenharmony_ci 0x80000000, 4998c2ecf20Sopenharmony_ci 0x20002000, 5008c2ecf20Sopenharmony_ci 0x80000000, 5018c2ecf20Sopenharmony_ci 0x20002000, 5028c2ecf20Sopenharmony_ci 0x80000000, 5038c2ecf20Sopenharmony_ci 0x20002000, 5048c2ecf20Sopenharmony_ci 0x80000000, 5058c2ecf20Sopenharmony_ci 0x20002000, 5068c2ecf20Sopenharmony_ci 0x80000000, 5078c2ecf20Sopenharmony_ci 0x20002000, 5088c2ecf20Sopenharmony_ci 0x80000000, 5098c2ecf20Sopenharmony_ci 0x20002000, 5108c2ecf20Sopenharmony_ci 0x80000000, 5118c2ecf20Sopenharmony_ci 0x20002000, 5128c2ecf20Sopenharmony_ci 0x00000000, /* PA_SC_VPORT_ZMIN_0 */ 5138c2ecf20Sopenharmony_ci 0x3f800000, 5148c2ecf20Sopenharmony_ci 0x00000000, 5158c2ecf20Sopenharmony_ci 0x3f800000, 5168c2ecf20Sopenharmony_ci 0x00000000, 5178c2ecf20Sopenharmony_ci 0x3f800000, 5188c2ecf20Sopenharmony_ci 0x00000000, 5198c2ecf20Sopenharmony_ci 0x3f800000, 5208c2ecf20Sopenharmony_ci 0x00000000, 5218c2ecf20Sopenharmony_ci 0x3f800000, 5228c2ecf20Sopenharmony_ci 0x00000000, 5238c2ecf20Sopenharmony_ci 0x3f800000, 5248c2ecf20Sopenharmony_ci 0x00000000, 5258c2ecf20Sopenharmony_ci 0x3f800000, 5268c2ecf20Sopenharmony_ci 0x00000000, 5278c2ecf20Sopenharmony_ci 0x3f800000, 5288c2ecf20Sopenharmony_ci 0x00000000, 5298c2ecf20Sopenharmony_ci 0x3f800000, 5308c2ecf20Sopenharmony_ci 0x00000000, 5318c2ecf20Sopenharmony_ci 0x3f800000, 5328c2ecf20Sopenharmony_ci 0x00000000, 5338c2ecf20Sopenharmony_ci 0x3f800000, 5348c2ecf20Sopenharmony_ci 0x00000000, 5358c2ecf20Sopenharmony_ci 0x3f800000, 5368c2ecf20Sopenharmony_ci 0x00000000, 5378c2ecf20Sopenharmony_ci 0x3f800000, 5388c2ecf20Sopenharmony_ci 0x00000000, 5398c2ecf20Sopenharmony_ci 0x3f800000, 5408c2ecf20Sopenharmony_ci 0x00000000, 5418c2ecf20Sopenharmony_ci 0x3f800000, 5428c2ecf20Sopenharmony_ci 0x00000000, 5438c2ecf20Sopenharmony_ci 0x3f800000, 5448c2ecf20Sopenharmony_ci 5458c2ecf20Sopenharmony_ci 0xc0026900, 5468c2ecf20Sopenharmony_ci 0x00000292, 5478c2ecf20Sopenharmony_ci 0x00000000, /* PA_SC_MPASS_PS_CNTL */ 5488c2ecf20Sopenharmony_ci 0x00514000, /* PA_SC_MODE_CNTL */ 5498c2ecf20Sopenharmony_ci 5508c2ecf20Sopenharmony_ci 0xc0096900, 5518c2ecf20Sopenharmony_ci 0x00000300, 5528c2ecf20Sopenharmony_ci 0x00000000, /* PA_SC_LINE_CNTL */ 5538c2ecf20Sopenharmony_ci 0x00000000, /* PA_SC_AA_CONFIG */ 5548c2ecf20Sopenharmony_ci 0x0000002d, /* PA_SU_VTX_CNTL */ 5558c2ecf20Sopenharmony_ci 0x3f800000, /* PA_CL_GB_VERT_CLIP_ADJ */ 5568c2ecf20Sopenharmony_ci 0x3f800000, 5578c2ecf20Sopenharmony_ci 0x3f800000, 5588c2ecf20Sopenharmony_ci 0x3f800000, 5598c2ecf20Sopenharmony_ci 0x00000000, /* PA_SC_SAMPLE_LOCS_MCTX */ 5608c2ecf20Sopenharmony_ci 0x00000000, 5618c2ecf20Sopenharmony_ci 5628c2ecf20Sopenharmony_ci 0xc0016900, 5638c2ecf20Sopenharmony_ci 0x00000312, 5648c2ecf20Sopenharmony_ci 0xffffffff, /* PA_SC_AA_MASK */ 5658c2ecf20Sopenharmony_ci 5668c2ecf20Sopenharmony_ci 0xc0066900, 5678c2ecf20Sopenharmony_ci 0x0000037e, 5688c2ecf20Sopenharmony_ci 0x00000000, /* PA_SU_POLY_OFFSET_DB_FMT_CNTL */ 5698c2ecf20Sopenharmony_ci 0x00000000, /* PA_SU_POLY_OFFSET_CLAMP */ 5708c2ecf20Sopenharmony_ci 0x00000000, /* PA_SU_POLY_OFFSET_FRONT_SCALE */ 5718c2ecf20Sopenharmony_ci 0x00000000, /* PA_SU_POLY_OFFSET_FRONT_OFFSET */ 5728c2ecf20Sopenharmony_ci 0x00000000, /* PA_SU_POLY_OFFSET_BACK_SCALE */ 5738c2ecf20Sopenharmony_ci 0x00000000, /* PA_SU_POLY_OFFSET_BACK_OFFSET */ 5748c2ecf20Sopenharmony_ci 5758c2ecf20Sopenharmony_ci 0xc0046900, 5768c2ecf20Sopenharmony_ci 0x000001b6, 5778c2ecf20Sopenharmony_ci 0x00000000, /* SPI_INPUT_Z */ 5788c2ecf20Sopenharmony_ci 0x00000000, /* SPI_FOG_CNTL */ 5798c2ecf20Sopenharmony_ci 0x00000000, /* SPI_FOG_FUNC_SCALE */ 5808c2ecf20Sopenharmony_ci 0x00000000, /* SPI_FOG_FUNC_BIAS */ 5818c2ecf20Sopenharmony_ci 5828c2ecf20Sopenharmony_ci 0xc0016900, 5838c2ecf20Sopenharmony_ci 0x00000225, 5848c2ecf20Sopenharmony_ci 0x00000000, /* SQ_PGM_START_FS */ 5858c2ecf20Sopenharmony_ci 5868c2ecf20Sopenharmony_ci 0xc0016900, 5878c2ecf20Sopenharmony_ci 0x00000229, 5888c2ecf20Sopenharmony_ci 0x00000000, /* SQ_PGM_RESOURCES_FS */ 5898c2ecf20Sopenharmony_ci 5908c2ecf20Sopenharmony_ci 0xc0016900, 5918c2ecf20Sopenharmony_ci 0x00000237, 5928c2ecf20Sopenharmony_ci 0x00000000, /* SQ_PGM_CF_OFFSET_FS */ 5938c2ecf20Sopenharmony_ci 5948c2ecf20Sopenharmony_ci 0xc0026900, 5958c2ecf20Sopenharmony_ci 0x000002a8, 5968c2ecf20Sopenharmony_ci 0x00000000, /* VGT_INSTANCE_STEP_RATE_0 */ 5978c2ecf20Sopenharmony_ci 0x00000000, /* VGT_INSTANCE_STEP_RATE_1 */ 5988c2ecf20Sopenharmony_ci 5998c2ecf20Sopenharmony_ci 0xc0116900, 6008c2ecf20Sopenharmony_ci 0x00000280, 6018c2ecf20Sopenharmony_ci 0x00000000, /* PA_SU_POINT_SIZE */ 6028c2ecf20Sopenharmony_ci 0x00000000, /* PA_SU_POINT_MINMAX */ 6038c2ecf20Sopenharmony_ci 0x00000008, /* PA_SU_LINE_CNTL */ 6048c2ecf20Sopenharmony_ci 0x00000000, /* PA_SC_LINE_STIPPLE */ 6058c2ecf20Sopenharmony_ci 0x00000000, /* VGT_OUTPUT_PATH_CNTL */ 6068c2ecf20Sopenharmony_ci 0x00000000, /* VGT_HOS_CNTL */ 6078c2ecf20Sopenharmony_ci 0x00000000, /* VGT_HOS_MAX_TESS_LEVEL */ 6088c2ecf20Sopenharmony_ci 0x00000000, /* VGT_HOS_MIN_TESS_LEVEL */ 6098c2ecf20Sopenharmony_ci 0x00000000, /* VGT_HOS_REUSE_DEPTH */ 6108c2ecf20Sopenharmony_ci 0x00000000, /* VGT_GROUP_PRIM_TYPE */ 6118c2ecf20Sopenharmony_ci 0x00000000, /* VGT_GROUP_FIRST_DECR */ 6128c2ecf20Sopenharmony_ci 0x00000000, /* VGT_GROUP_DECR */ 6138c2ecf20Sopenharmony_ci 0x00000000, /* VGT_GROUP_VECT_0_CNTL */ 6148c2ecf20Sopenharmony_ci 0x00000000, /* VGT_GROUP_VECT_1_CNTL */ 6158c2ecf20Sopenharmony_ci 0x00000000, /* VGT_GROUP_VECT_0_FMT_CNTL */ 6168c2ecf20Sopenharmony_ci 0x00000000, /* VGT_GROUP_VECT_1_FMT_CNTL */ 6178c2ecf20Sopenharmony_ci 0x00000000, /* VGT_GS_MODE */ 6188c2ecf20Sopenharmony_ci 6198c2ecf20Sopenharmony_ci 0xc0016900, 6208c2ecf20Sopenharmony_ci 0x000002a1, 6218c2ecf20Sopenharmony_ci 0x00000000, /* VGT_PRIMITIVEID_EN */ 6228c2ecf20Sopenharmony_ci 6238c2ecf20Sopenharmony_ci 0xc0016900, 6248c2ecf20Sopenharmony_ci 0x000002a5, 6258c2ecf20Sopenharmony_ci 0x00000000, /* VGT_MULTI_PRIM_ID_RESET_EN */ 6268c2ecf20Sopenharmony_ci 6278c2ecf20Sopenharmony_ci 0xc0036900, 6288c2ecf20Sopenharmony_ci 0x000002ac, 6298c2ecf20Sopenharmony_ci 0x00000000, /* VGT_STRMOUT_EN */ 6308c2ecf20Sopenharmony_ci 0x00000000, /* VGT_REUSE_OFF */ 6318c2ecf20Sopenharmony_ci 0x00000000, /* VGT_VTX_CNT_EN */ 6328c2ecf20Sopenharmony_ci 6338c2ecf20Sopenharmony_ci 0xc0016900, 6348c2ecf20Sopenharmony_ci 0x000000d4, 6358c2ecf20Sopenharmony_ci 0x00000000, /* SX_MISC */ 6368c2ecf20Sopenharmony_ci 6378c2ecf20Sopenharmony_ci 0xc0016900, 6388c2ecf20Sopenharmony_ci 0x000002c8, 6398c2ecf20Sopenharmony_ci 0x00000000, /* VGT_STRMOUT_BUFFER_EN */ 6408c2ecf20Sopenharmony_ci 6418c2ecf20Sopenharmony_ci 0xc0076900, 6428c2ecf20Sopenharmony_ci 0x00000202, 6438c2ecf20Sopenharmony_ci 0x00cc0000, /* CB_COLOR_CONTROL */ 6448c2ecf20Sopenharmony_ci 0x00000210, /* DB_SHADER_CNTL */ 6458c2ecf20Sopenharmony_ci 0x00010000, /* PA_CL_CLIP_CNTL */ 6468c2ecf20Sopenharmony_ci 0x00000244, /* PA_SU_SC_MODE_CNTL */ 6478c2ecf20Sopenharmony_ci 0x00000100, /* PA_CL_VTE_CNTL */ 6488c2ecf20Sopenharmony_ci 0x00000000, /* PA_CL_VS_OUT_CNTL */ 6498c2ecf20Sopenharmony_ci 0x00000000, /* PA_CL_NANINF_CNTL */ 6508c2ecf20Sopenharmony_ci 6518c2ecf20Sopenharmony_ci 0xc0026900, 6528c2ecf20Sopenharmony_ci 0x0000008e, 6538c2ecf20Sopenharmony_ci 0x0000000f, /* CB_TARGET_MASK */ 6548c2ecf20Sopenharmony_ci 0x0000000f, /* CB_SHADER_MASK */ 6558c2ecf20Sopenharmony_ci 6568c2ecf20Sopenharmony_ci 0xc0016900, 6578c2ecf20Sopenharmony_ci 0x000001e8, 6588c2ecf20Sopenharmony_ci 0x00000001, /* CB_SHADER_CONTROL */ 6598c2ecf20Sopenharmony_ci 6608c2ecf20Sopenharmony_ci 0xc0016900, 6618c2ecf20Sopenharmony_ci 0x00000185, 6628c2ecf20Sopenharmony_ci 0x00000000, /* SPI_VS_OUT_ID_0 */ 6638c2ecf20Sopenharmony_ci 6648c2ecf20Sopenharmony_ci 0xc0016900, 6658c2ecf20Sopenharmony_ci 0x00000191, 6668c2ecf20Sopenharmony_ci 0x00000b00, /* SPI_PS_INPUT_CNTL_0 */ 6678c2ecf20Sopenharmony_ci 6688c2ecf20Sopenharmony_ci 0xc0056900, 6698c2ecf20Sopenharmony_ci 0x000001b1, 6708c2ecf20Sopenharmony_ci 0x00000000, /* SPI_VS_OUT_CONFIG */ 6718c2ecf20Sopenharmony_ci 0x00000001, /* SPI_THREAD_GROUPING */ 6728c2ecf20Sopenharmony_ci 0x00000001, /* SPI_PS_IN_CONTROL_0 */ 6738c2ecf20Sopenharmony_ci 0x00000000, /* SPI_PS_IN_CONTROL_1 */ 6748c2ecf20Sopenharmony_ci 0x00000000, /* SPI_INTERP_CONTROL_0 */ 6758c2ecf20Sopenharmony_ci 6768c2ecf20Sopenharmony_ci 0xc0036e00, /* SET_SAMPLER */ 6778c2ecf20Sopenharmony_ci 0x00000000, 6788c2ecf20Sopenharmony_ci 0x00000012, 6798c2ecf20Sopenharmony_ci 0x00000000, 6808c2ecf20Sopenharmony_ci 0x00000000, 6818c2ecf20Sopenharmony_ci}; 6828c2ecf20Sopenharmony_ci 6838c2ecf20Sopenharmony_ci/* same for r6xx/r7xx */ 6848c2ecf20Sopenharmony_ciconst u32 r6xx_vs[] = 6858c2ecf20Sopenharmony_ci{ 6868c2ecf20Sopenharmony_ci 0x00000004, 6878c2ecf20Sopenharmony_ci 0x81000000, 6888c2ecf20Sopenharmony_ci 0x0000203c, 6898c2ecf20Sopenharmony_ci 0x94000b08, 6908c2ecf20Sopenharmony_ci 0x00004000, 6918c2ecf20Sopenharmony_ci 0x14200b1a, 6928c2ecf20Sopenharmony_ci 0x00000000, 6938c2ecf20Sopenharmony_ci 0x00000000, 6948c2ecf20Sopenharmony_ci 0x3c000000, 6958c2ecf20Sopenharmony_ci 0x68cd1000, 6968c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN 6978c2ecf20Sopenharmony_ci 0x000a0000, 6988c2ecf20Sopenharmony_ci#else 6998c2ecf20Sopenharmony_ci 0x00080000, 7008c2ecf20Sopenharmony_ci#endif 7018c2ecf20Sopenharmony_ci 0x00000000, 7028c2ecf20Sopenharmony_ci}; 7038c2ecf20Sopenharmony_ci 7048c2ecf20Sopenharmony_ciconst u32 r6xx_ps[] = 7058c2ecf20Sopenharmony_ci{ 7068c2ecf20Sopenharmony_ci 0x00000002, 7078c2ecf20Sopenharmony_ci 0x80800000, 7088c2ecf20Sopenharmony_ci 0x00000000, 7098c2ecf20Sopenharmony_ci 0x94200688, 7108c2ecf20Sopenharmony_ci 0x00000010, 7118c2ecf20Sopenharmony_ci 0x000d1000, 7128c2ecf20Sopenharmony_ci 0xb0800000, 7138c2ecf20Sopenharmony_ci 0x00000000, 7148c2ecf20Sopenharmony_ci}; 7158c2ecf20Sopenharmony_ci 7168c2ecf20Sopenharmony_ciconst u32 r6xx_ps_size = ARRAY_SIZE(r6xx_ps); 7178c2ecf20Sopenharmony_ciconst u32 r6xx_vs_size = ARRAY_SIZE(r6xx_vs); 7188c2ecf20Sopenharmony_ciconst u32 r6xx_default_size = ARRAY_SIZE(r6xx_default_state); 7198c2ecf20Sopenharmony_ciconst u32 r7xx_default_size = ARRAY_SIZE(r7xx_default_state); 720