1841cf442SAlex Deucher /* 2841cf442SAlex Deucher * Copyright 2012 Advanced Micro Devices, Inc. 3841cf442SAlex Deucher * 4841cf442SAlex Deucher * Permission is hereby granted, free of charge, to any person obtaining a 5841cf442SAlex Deucher * copy of this software and associated documentation files (the "Software"), 6841cf442SAlex Deucher * to deal in the Software without restriction, including without limitation 7841cf442SAlex Deucher * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8841cf442SAlex Deucher * and/or sell copies of the Software, and to permit persons to whom the 9841cf442SAlex Deucher * Software is furnished to do so, subject to the following conditions: 10841cf442SAlex Deucher * 11841cf442SAlex Deucher * The above copyright notice and this permission notice (including the next 12841cf442SAlex Deucher * paragraph) shall be included in all copies or substantial portions of the 13841cf442SAlex Deucher * Software. 14841cf442SAlex Deucher * 15841cf442SAlex Deucher * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16841cf442SAlex Deucher * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17841cf442SAlex Deucher * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18841cf442SAlex Deucher * THE COPYRIGHT HOLDER(S) AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 19841cf442SAlex Deucher * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 20841cf442SAlex Deucher * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 21841cf442SAlex Deucher * DEALINGS IN THE SOFTWARE. 22841cf442SAlex Deucher * 23*790d8e8eSTom Rix * Authors: 24*790d8e8eSTom Rix * Alex Deucher <alexander.deucher@amd.com> 25841cf442SAlex Deucher */ 26841cf442SAlex Deucher 27841cf442SAlex Deucher #ifndef CIK_BLIT_SHADERS_H 28841cf442SAlex Deucher #define CIK_BLIT_SHADERS_H 29841cf442SAlex Deucher 30*790d8e8eSTom Rix static const u32 cik_default_state[] = 31*790d8e8eSTom Rix { 32*790d8e8eSTom Rix 0xc0066900, 33*790d8e8eSTom Rix 0x00000000, 34*790d8e8eSTom Rix 0x00000060, /* DB_RENDER_CONTROL */ 35*790d8e8eSTom Rix 0x00000000, /* DB_COUNT_CONTROL */ 36*790d8e8eSTom Rix 0x00000000, /* DB_DEPTH_VIEW */ 37*790d8e8eSTom Rix 0x0000002a, /* DB_RENDER_OVERRIDE */ 38*790d8e8eSTom Rix 0x00000000, /* DB_RENDER_OVERRIDE2 */ 39*790d8e8eSTom Rix 0x00000000, /* DB_HTILE_DATA_BASE */ 40841cf442SAlex Deucher 41*790d8e8eSTom Rix 0xc0046900, 42*790d8e8eSTom Rix 0x00000008, 43*790d8e8eSTom Rix 0x00000000, /* DB_DEPTH_BOUNDS_MIN */ 44*790d8e8eSTom Rix 0x00000000, /* DB_DEPTH_BOUNDS_MAX */ 45*790d8e8eSTom Rix 0x00000000, /* DB_STENCIL_CLEAR */ 46*790d8e8eSTom Rix 0x00000000, /* DB_DEPTH_CLEAR */ 47*790d8e8eSTom Rix 48*790d8e8eSTom Rix 0xc0036900, 49*790d8e8eSTom Rix 0x0000000f, 50*790d8e8eSTom Rix 0x00000000, /* DB_DEPTH_INFO */ 51*790d8e8eSTom Rix 0x00000000, /* DB_Z_INFO */ 52*790d8e8eSTom Rix 0x00000000, /* DB_STENCIL_INFO */ 53*790d8e8eSTom Rix 54*790d8e8eSTom Rix 0xc0016900, 55*790d8e8eSTom Rix 0x00000080, 56*790d8e8eSTom Rix 0x00000000, /* PA_SC_WINDOW_OFFSET */ 57*790d8e8eSTom Rix 58*790d8e8eSTom Rix 0xc00d6900, 59*790d8e8eSTom Rix 0x00000083, 60*790d8e8eSTom Rix 0x0000ffff, /* PA_SC_CLIPRECT_RULE */ 61*790d8e8eSTom Rix 0x00000000, /* PA_SC_CLIPRECT_0_TL */ 62*790d8e8eSTom Rix 0x20002000, /* PA_SC_CLIPRECT_0_BR */ 63*790d8e8eSTom Rix 0x00000000, 64*790d8e8eSTom Rix 0x20002000, 65*790d8e8eSTom Rix 0x00000000, 66*790d8e8eSTom Rix 0x20002000, 67*790d8e8eSTom Rix 0x00000000, 68*790d8e8eSTom Rix 0x20002000, 69*790d8e8eSTom Rix 0xaaaaaaaa, /* PA_SC_EDGERULE */ 70*790d8e8eSTom Rix 0x00000000, /* PA_SU_HARDWARE_SCREEN_OFFSET */ 71*790d8e8eSTom Rix 0x0000000f, /* CB_TARGET_MASK */ 72*790d8e8eSTom Rix 0x0000000f, /* CB_SHADER_MASK */ 73*790d8e8eSTom Rix 74*790d8e8eSTom Rix 0xc0226900, 75*790d8e8eSTom Rix 0x00000094, 76*790d8e8eSTom Rix 0x80000000, /* PA_SC_VPORT_SCISSOR_0_TL */ 77*790d8e8eSTom Rix 0x20002000, /* PA_SC_VPORT_SCISSOR_0_BR */ 78*790d8e8eSTom Rix 0x80000000, 79*790d8e8eSTom Rix 0x20002000, 80*790d8e8eSTom Rix 0x80000000, 81*790d8e8eSTom Rix 0x20002000, 82*790d8e8eSTom Rix 0x80000000, 83*790d8e8eSTom Rix 0x20002000, 84*790d8e8eSTom Rix 0x80000000, 85*790d8e8eSTom Rix 0x20002000, 86*790d8e8eSTom Rix 0x80000000, 87*790d8e8eSTom Rix 0x20002000, 88*790d8e8eSTom Rix 0x80000000, 89*790d8e8eSTom Rix 0x20002000, 90*790d8e8eSTom Rix 0x80000000, 91*790d8e8eSTom Rix 0x20002000, 92*790d8e8eSTom Rix 0x80000000, 93*790d8e8eSTom Rix 0x20002000, 94*790d8e8eSTom Rix 0x80000000, 95*790d8e8eSTom Rix 0x20002000, 96*790d8e8eSTom Rix 0x80000000, 97*790d8e8eSTom Rix 0x20002000, 98*790d8e8eSTom Rix 0x80000000, 99*790d8e8eSTom Rix 0x20002000, 100*790d8e8eSTom Rix 0x80000000, 101*790d8e8eSTom Rix 0x20002000, 102*790d8e8eSTom Rix 0x80000000, 103*790d8e8eSTom Rix 0x20002000, 104*790d8e8eSTom Rix 0x80000000, 105*790d8e8eSTom Rix 0x20002000, 106*790d8e8eSTom Rix 0x80000000, 107*790d8e8eSTom Rix 0x20002000, 108*790d8e8eSTom Rix 0x00000000, /* PA_SC_VPORT_ZMIN_0 */ 109*790d8e8eSTom Rix 0x3f800000, /* PA_SC_VPORT_ZMAX_0 */ 110*790d8e8eSTom Rix 111*790d8e8eSTom Rix 0xc0046900, 112*790d8e8eSTom Rix 0x00000100, 113*790d8e8eSTom Rix 0xffffffff, /* VGT_MAX_VTX_INDX */ 114*790d8e8eSTom Rix 0x00000000, /* VGT_MIN_VTX_INDX */ 115*790d8e8eSTom Rix 0x00000000, /* VGT_INDX_OFFSET */ 116*790d8e8eSTom Rix 0x00000000, /* VGT_MULTI_PRIM_IB_RESET_INDX */ 117*790d8e8eSTom Rix 118*790d8e8eSTom Rix 0xc0046900, 119*790d8e8eSTom Rix 0x00000105, 120*790d8e8eSTom Rix 0x00000000, /* CB_BLEND_RED */ 121*790d8e8eSTom Rix 0x00000000, /* CB_BLEND_GREEN */ 122*790d8e8eSTom Rix 0x00000000, /* CB_BLEND_BLUE */ 123*790d8e8eSTom Rix 0x00000000, /* CB_BLEND_ALPHA */ 124*790d8e8eSTom Rix 125*790d8e8eSTom Rix 0xc0016900, 126*790d8e8eSTom Rix 0x000001e0, 127*790d8e8eSTom Rix 0x00000000, /* CB_BLEND0_CONTROL */ 128*790d8e8eSTom Rix 129*790d8e8eSTom Rix 0xc00c6900, 130*790d8e8eSTom Rix 0x00000200, 131*790d8e8eSTom Rix 0x00000000, /* DB_DEPTH_CONTROL */ 132*790d8e8eSTom Rix 0x00000000, /* DB_EQAA */ 133*790d8e8eSTom Rix 0x00cc0010, /* CB_COLOR_CONTROL */ 134*790d8e8eSTom Rix 0x00000210, /* DB_SHADER_CONTROL */ 135*790d8e8eSTom Rix 0x00010000, /* PA_CL_CLIP_CNTL */ 136*790d8e8eSTom Rix 0x00000004, /* PA_SU_SC_MODE_CNTL */ 137*790d8e8eSTom Rix 0x00000100, /* PA_CL_VTE_CNTL */ 138*790d8e8eSTom Rix 0x00000000, /* PA_CL_VS_OUT_CNTL */ 139*790d8e8eSTom Rix 0x00000000, /* PA_CL_NANINF_CNTL */ 140*790d8e8eSTom Rix 0x00000000, /* PA_SU_LINE_STIPPLE_CNTL */ 141*790d8e8eSTom Rix 0x00000000, /* PA_SU_LINE_STIPPLE_SCALE */ 142*790d8e8eSTom Rix 0x00000000, /* PA_SU_PRIM_FILTER_CNTL */ 143*790d8e8eSTom Rix 144*790d8e8eSTom Rix 0xc0116900, 145*790d8e8eSTom Rix 0x00000280, 146*790d8e8eSTom Rix 0x00000000, /* PA_SU_POINT_SIZE */ 147*790d8e8eSTom Rix 0x00000000, /* PA_SU_POINT_MINMAX */ 148*790d8e8eSTom Rix 0x00000008, /* PA_SU_LINE_CNTL */ 149*790d8e8eSTom Rix 0x00000000, /* PA_SC_LINE_STIPPLE */ 150*790d8e8eSTom Rix 0x00000000, /* VGT_OUTPUT_PATH_CNTL */ 151*790d8e8eSTom Rix 0x00000000, /* VGT_HOS_CNTL */ 152*790d8e8eSTom Rix 0x00000000, 153*790d8e8eSTom Rix 0x00000000, 154*790d8e8eSTom Rix 0x00000000, 155*790d8e8eSTom Rix 0x00000000, 156*790d8e8eSTom Rix 0x00000000, 157*790d8e8eSTom Rix 0x00000000, 158*790d8e8eSTom Rix 0x00000000, 159*790d8e8eSTom Rix 0x00000000, 160*790d8e8eSTom Rix 0x00000000, 161*790d8e8eSTom Rix 0x00000000, 162*790d8e8eSTom Rix 0x00000000, /* VGT_GS_MODE */ 163*790d8e8eSTom Rix 164*790d8e8eSTom Rix 0xc0026900, 165*790d8e8eSTom Rix 0x00000292, 166*790d8e8eSTom Rix 0x00000000, /* PA_SC_MODE_CNTL_0 */ 167*790d8e8eSTom Rix 0x00000000, /* PA_SC_MODE_CNTL_1 */ 168*790d8e8eSTom Rix 169*790d8e8eSTom Rix 0xc0016900, 170*790d8e8eSTom Rix 0x000002a1, 171*790d8e8eSTom Rix 0x00000000, /* VGT_PRIMITIVEID_EN */ 172*790d8e8eSTom Rix 173*790d8e8eSTom Rix 0xc0016900, 174*790d8e8eSTom Rix 0x000002a5, 175*790d8e8eSTom Rix 0x00000000, /* VGT_MULTI_PRIM_IB_RESET_EN */ 176*790d8e8eSTom Rix 177*790d8e8eSTom Rix 0xc0026900, 178*790d8e8eSTom Rix 0x000002a8, 179*790d8e8eSTom Rix 0x00000000, /* VGT_INSTANCE_STEP_RATE_0 */ 180*790d8e8eSTom Rix 0x00000000, 181*790d8e8eSTom Rix 182*790d8e8eSTom Rix 0xc0026900, 183*790d8e8eSTom Rix 0x000002ad, 184*790d8e8eSTom Rix 0x00000000, /* VGT_REUSE_OFF */ 185*790d8e8eSTom Rix 0x00000000, 186*790d8e8eSTom Rix 187*790d8e8eSTom Rix 0xc0016900, 188*790d8e8eSTom Rix 0x000002d5, 189*790d8e8eSTom Rix 0x00000000, /* VGT_SHADER_STAGES_EN */ 190*790d8e8eSTom Rix 191*790d8e8eSTom Rix 0xc0016900, 192*790d8e8eSTom Rix 0x000002dc, 193*790d8e8eSTom Rix 0x0000aa00, /* DB_ALPHA_TO_MASK */ 194*790d8e8eSTom Rix 195*790d8e8eSTom Rix 0xc0066900, 196*790d8e8eSTom Rix 0x000002de, 197*790d8e8eSTom Rix 0x00000000, /* PA_SU_POLY_OFFSET_DB_FMT_CNTL */ 198*790d8e8eSTom Rix 0x00000000, 199*790d8e8eSTom Rix 0x00000000, 200*790d8e8eSTom Rix 0x00000000, 201*790d8e8eSTom Rix 0x00000000, 202*790d8e8eSTom Rix 0x00000000, 203*790d8e8eSTom Rix 204*790d8e8eSTom Rix 0xc0026900, 205*790d8e8eSTom Rix 0x000002e5, 206*790d8e8eSTom Rix 0x00000000, /* VGT_STRMOUT_CONFIG */ 207*790d8e8eSTom Rix 0x00000000, 208*790d8e8eSTom Rix 209*790d8e8eSTom Rix 0xc01b6900, 210*790d8e8eSTom Rix 0x000002f5, 211*790d8e8eSTom Rix 0x76543210, /* PA_SC_CENTROID_PRIORITY_0 */ 212*790d8e8eSTom Rix 0xfedcba98, /* PA_SC_CENTROID_PRIORITY_1 */ 213*790d8e8eSTom Rix 0x00000000, /* PA_SC_LINE_CNTL */ 214*790d8e8eSTom Rix 0x00000000, /* PA_SC_AA_CONFIG */ 215*790d8e8eSTom Rix 0x00000005, /* PA_SU_VTX_CNTL */ 216*790d8e8eSTom Rix 0x3f800000, /* PA_CL_GB_VERT_CLIP_ADJ */ 217*790d8e8eSTom Rix 0x3f800000, /* PA_CL_GB_VERT_DISC_ADJ */ 218*790d8e8eSTom Rix 0x3f800000, /* PA_CL_GB_HORZ_CLIP_ADJ */ 219*790d8e8eSTom Rix 0x3f800000, /* PA_CL_GB_HORZ_DISC_ADJ */ 220*790d8e8eSTom Rix 0x00000000, /* PA_SC_AA_SAMPLE_LOCS_PIXEL_X0Y0_0 */ 221*790d8e8eSTom Rix 0x00000000, 222*790d8e8eSTom Rix 0x00000000, 223*790d8e8eSTom Rix 0x00000000, 224*790d8e8eSTom Rix 0x00000000, 225*790d8e8eSTom Rix 0x00000000, 226*790d8e8eSTom Rix 0x00000000, 227*790d8e8eSTom Rix 0x00000000, 228*790d8e8eSTom Rix 0x00000000, 229*790d8e8eSTom Rix 0x00000000, 230*790d8e8eSTom Rix 0x00000000, 231*790d8e8eSTom Rix 0x00000000, 232*790d8e8eSTom Rix 0x00000000, 233*790d8e8eSTom Rix 0x00000000, 234*790d8e8eSTom Rix 0x00000000, 235*790d8e8eSTom Rix 0x00000000, 236*790d8e8eSTom Rix 0xffffffff, /* PA_SC_AA_MASK_X0Y0_X1Y0 */ 237*790d8e8eSTom Rix 0xffffffff, 238*790d8e8eSTom Rix 239*790d8e8eSTom Rix 0xc0026900, 240*790d8e8eSTom Rix 0x00000316, 241*790d8e8eSTom Rix 0x0000000e, /* VGT_VERTEX_REUSE_BLOCK_CNTL */ 242*790d8e8eSTom Rix 0x00000010, /* */ 243*790d8e8eSTom Rix }; 244*790d8e8eSTom Rix 245*790d8e8eSTom Rix static const u32 cik_default_size = ARRAY_SIZE(cik_default_state); 246841cf442SAlex Deucher 247841cf442SAlex Deucher #endif 248