Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp909465pxb; Wed, 6 Apr 2022 04:01:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwP6vUjCt4v4WrqVoxSdw0c1MZz0omz8gTMvxISJTRhZold73fwiWtEIlBt/W6S76/g+5Kl X-Received: by 2002:a05:6a00:815:b0:4fb:e46:511c with SMTP id m21-20020a056a00081500b004fb0e46511cmr8168972pfk.54.1649242883462; Wed, 06 Apr 2022 04:01:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649242883; cv=none; d=google.com; s=arc-20160816; b=hMKDTe6w+Cc8vj2p7/NohVygs/njSpmOBhRrejiM5S02NXsqbHWfbMCSoFlHak3d/L 4a9bVzBeMx7E3cy7p0ijSUq6v9/Kt5TNkzV4MjBmqEyPXZlD4Xu+ba0L5qa8O6tk2CaX zr01TDoKs5HeT24fpGWOPzmUSXSdbL7vDxyBibKY1OkymWkRg725hVQDJS5SFZPFmxgV Y5mWwXCArGxO+HQI07wA22nwTWvZZWp3r5xsEveOL2nZziX40Kqr5p7IZPGHKEqCdaVd l/ZOMhuxQbZ315MumHlgdAcPIBxzwlNGBqK+v4OenDeJoBZHWR7D3PHf6Tb4p+JQtsp+ 9pBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=vY5pnIVo4eMwYUxCKVBQEcU9CNBIJau33Z1kUJk3f8U=; b=uiaPwze9p0DpI/rWfTrtcr6aueZdvdArLbwGje3vLq/gBtVtEBR8PkFZsn83Qkf+9F y9XDxGM7WqQm5Ts3tvyFxIJAa9h0s7hgPhynvMgblQxo5H8/tOJBK/8wnsoP3+pX81pu Uwhx0PFanhae7gMj3GSw0HjjlL4RJa2YxVFPM5T1AWRopvrEeI+w8lkA1KKHi3tvpPZC 5+E1TitTZJF7aTc3EFpWkMZ5aj9FW1W0tBGsMebK24s9MjhnXD1Yt5aK/Ed5BvAub3Ko PGQ1f/THDlRmxjvX7BhdcDEgT1mqwodxDNAeMyl4XjGOA9kj7466qJ/B6N2JLyXtiEtK AI7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=VdhCFVGb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id n2-20020a6563c2000000b003816043f114si15332391pgv.777.2022.04.06.04.01.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 04:01:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=VdhCFVGb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 992153E6976; Wed, 6 Apr 2022 02:24:13 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1579338AbiDEX1H (ORCPT + 99 others); Tue, 5 Apr 2022 19:27:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1385335AbiDEPPM (ORCPT ); Tue, 5 Apr 2022 11:15:12 -0400 Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E33503B54E for ; Tue, 5 Apr 2022 06:31:36 -0700 (PDT) Received: by mail-oi1-x22c.google.com with SMTP id v75so13414708oie.1 for ; Tue, 05 Apr 2022 06:31:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=vY5pnIVo4eMwYUxCKVBQEcU9CNBIJau33Z1kUJk3f8U=; b=VdhCFVGbEdIrzpupJeCw1NzlfY9wBZdFbfbu3+kCDlUcGNISJCGsIeFFPkTdhWjBkQ s9RALUSZlw0T+ZJvFL2+msfIfzw1M0MESEqQx4dlsGTasUr3o/Cxa19UraCYeZ6tvM1x 8bSJL+gbPhdLenoHRcRbtBJzeLYFyItmiKRXRiRM+i/41cA2GQ7lB7QqlXk9Orgmiw+6 B/yn9JNws7VgAS+Xhms0qw+nBpr9sohLiO4wvBv5iIk5owVAE/HKS4AEbKhGtIW8RbBb kNwAactyDqV75U4EV0+sRTXB61O1jZEDTGawj407qg51C9pemT+Bz4DUkbuA32zdrLX/ 3Huw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=vY5pnIVo4eMwYUxCKVBQEcU9CNBIJau33Z1kUJk3f8U=; b=dQ/qVx57wXuqXm90H1NVVqup2Vu5Rd40cbauuHVu6OS5jCtJm+qrfw5oqyeSJ18Of+ q2o3wsCBmGMR5Fy6rio21+QXvk1+zhvV5S3PrjI8UxOFI84Fc7+IUYGWi8bKrmYBYMsB nIiqi0AXIOUVsdMzl30fBSdNwNd21EEnxv1kpyBjirHldIgi/3k5Z63TrMV75SUp2ANi MDtERbjfsJWNzev8gwJ9dfSYcBCfZiLOWSN3GS4/52WtLemTWNLobLqZ4qBGoNjLSPiC 9X5+mOrtH+CLQhvmvycTAUrOfOEttR/yIdXgC8eKdJxs2DgwqdmSnLNyVn7AvsYfRDBs ifzA== X-Gm-Message-State: AOAM531bR/o/byyit8N/9H8xdJiIB8FDGjSKonVWvpPvIHCmbjqEtT0b FS/O04AefN/zOQbK0ilFnU+zc+Wa2v29A1GtgT7O8ugZ X-Received: by 2002:a05:6808:df1:b0:2ec:b193:ad6c with SMTP id g49-20020a0568080df100b002ecb193ad6cmr1319256oic.200.1649165496142; Tue, 05 Apr 2022 06:31:36 -0700 (PDT) MIME-Version: 1.0 References: <20220404225710.972071-1-trix@redhat.com> <65f33162-74ff-f205-aea9-3ed84dfddde1@amd.com> In-Reply-To: <65f33162-74ff-f205-aea9-3ed84dfddde1@amd.com> From: Alex Deucher Date: Tue, 5 Apr 2022 09:31:24 -0400 Message-ID: Subject: Re: [PATCH v2] drm/radeon: change si_default_state table from global to static To: =?UTF-8?Q?Christian_K=C3=B6nig?= Cc: Tom Rix , "Deucher, Alexander" , xinhui pan , Dave Airlie , Daniel Vetter , Maling list - DRI developers , LKML , amd-gfx list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Applied. Thanks! Alex On Tue, Apr 5, 2022 at 2:04 AM Christian K=C3=B6nig wrote: > > Am 05.04.22 um 00:57 schrieb Tom Rix: > > Smatch reports these issues > > si_blit_shaders.c:31:11: warning: symbol 'si_default_state' > > was not declared. Should it be static? > > si_blit_shaders.c:253:11: warning: symbol 'si_default_size' > > was not declared. Should it be static? > > > > Both symbols are only used in si.c. Single file symbols > > should be static. So move the definition of > > si_default_state and si_default_size to si_blit_shader.h > > and change their storage-class-specifier to static. > > > > Remove unneeded si_blit_shader.c > > > > Signed-off-by: Tom Rix > > Reviewed-by: Christian K=C3=B6nig > > > --- > > v2: move definitions to header > > > > drivers/gpu/drm/radeon/Makefile | 2 +- > > drivers/gpu/drm/radeon/si_blit_shaders.c | 253 ----------------------= - > > drivers/gpu/drm/radeon/si_blit_shaders.h | 223 +++++++++++++++++++- > > 3 files changed, 222 insertions(+), 256 deletions(-) > > delete mode 100644 drivers/gpu/drm/radeon/si_blit_shaders.c > > > > diff --git a/drivers/gpu/drm/radeon/Makefile b/drivers/gpu/drm/radeon/M= akefile > > index 11c97edde54d..664381f4eb07 100644 > > --- a/drivers/gpu/drm/radeon/Makefile > > +++ b/drivers/gpu/drm/radeon/Makefile > > @@ -44,7 +44,7 @@ radeon-y +=3D radeon_device.o radeon_asic.o radeon_km= s.o \ > > evergreen.o evergreen_cs.o evergreen_blit_shaders.o \ > > evergreen_hdmi.o radeon_trace_points.o ni.o cayman_blit_shaders.o= \ > > atombios_encoders.o radeon_semaphore.o radeon_sa.o atombios_i2c.o= si.o \ > > - si_blit_shaders.o radeon_prime.o cik.o cik_blit_shaders.o \ > > + radeon_prime.o cik.o cik_blit_shaders.o \ > > r600_dpm.o rs780_dpm.o rv6xx_dpm.o rv770_dpm.o rv730_dpm.o rv740_= dpm.o \ > > rv770_smc.o cypress_dpm.o btc_dpm.o sumo_dpm.o sumo_smc.o trinity= _dpm.o \ > > trinity_smc.o ni_dpm.o si_smc.o si_dpm.o kv_smc.o kv_dpm.o ci_smc= .o \ > > diff --git a/drivers/gpu/drm/radeon/si_blit_shaders.c b/drivers/gpu/drm= /radeon/si_blit_shaders.c > > deleted file mode 100644 > > index ec415e7dfa4b..000000000000 > > --- a/drivers/gpu/drm/radeon/si_blit_shaders.c > > +++ /dev/null > > @@ -1,253 +0,0 @@ > > -/* > > - * Copyright 2011 Advanced Micro Devices, Inc. > > - * > > - * Permission is hereby granted, free of charge, to any person obtaini= ng a > > - * copy of this software and associated documentation files (the "Soft= ware"), > > - * to deal in the Software without restriction, including without limi= tation > > - * the rights to use, copy, modify, merge, publish, distribute, sublic= ense, > > - * and/or sell copies of the Software, and to permit persons to whom t= he > > - * Software is furnished to do so, subject to the following conditions= : > > - * > > - * The above copyright notice and this permission notice (including th= e next > > - * paragraph) shall be included in all copies or substantial portions = of the > > - * Software. > > - * > > - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXP= RESS OR > > - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABI= LITY, > > - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT = SHALL > > - * THE COPYRIGHT HOLDER(S) AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAI= M, DAMAGES OR > > - * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWIS= E, > > - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE = OR OTHER > > - * DEALINGS IN THE SOFTWARE. > > - * > > - * Authors: > > - * Alex Deucher > > - */ > > - > > -#include > > -#include > > -#include > > - > > -const u32 si_default_state[] =3D > > -{ > > - 0xc0066900, > > - 0x00000000, > > - 0x00000060, /* DB_RENDER_CONTROL */ > > - 0x00000000, /* DB_COUNT_CONTROL */ > > - 0x00000000, /* DB_DEPTH_VIEW */ > > - 0x0000002a, /* DB_RENDER_OVERRIDE */ > > - 0x00000000, /* DB_RENDER_OVERRIDE2 */ > > - 0x00000000, /* DB_HTILE_DATA_BASE */ > > - > > - 0xc0046900, > > - 0x00000008, > > - 0x00000000, /* DB_DEPTH_BOUNDS_MIN */ > > - 0x00000000, /* DB_DEPTH_BOUNDS_MAX */ > > - 0x00000000, /* DB_STENCIL_CLEAR */ > > - 0x00000000, /* DB_DEPTH_CLEAR */ > > - > > - 0xc0036900, > > - 0x0000000f, > > - 0x00000000, /* DB_DEPTH_INFO */ > > - 0x00000000, /* DB_Z_INFO */ > > - 0x00000000, /* DB_STENCIL_INFO */ > > - > > - 0xc0016900, > > - 0x00000080, > > - 0x00000000, /* PA_SC_WINDOW_OFFSET */ > > - > > - 0xc00d6900, > > - 0x00000083, > > - 0x0000ffff, /* PA_SC_CLIPRECT_RULE */ > > - 0x00000000, /* PA_SC_CLIPRECT_0_TL */ > > - 0x20002000, /* PA_SC_CLIPRECT_0_BR */ > > - 0x00000000, > > - 0x20002000, > > - 0x00000000, > > - 0x20002000, > > - 0x00000000, > > - 0x20002000, > > - 0xaaaaaaaa, /* PA_SC_EDGERULE */ > > - 0x00000000, /* PA_SU_HARDWARE_SCREEN_OFFSET */ > > - 0x0000000f, /* CB_TARGET_MASK */ > > - 0x0000000f, /* CB_SHADER_MASK */ > > - > > - 0xc0226900, > > - 0x00000094, > > - 0x80000000, /* PA_SC_VPORT_SCISSOR_0_TL */ > > - 0x20002000, /* PA_SC_VPORT_SCISSOR_0_BR */ > > - 0x80000000, > > - 0x20002000, > > - 0x80000000, > > - 0x20002000, > > - 0x80000000, > > - 0x20002000, > > - 0x80000000, > > - 0x20002000, > > - 0x80000000, > > - 0x20002000, > > - 0x80000000, > > - 0x20002000, > > - 0x80000000, > > - 0x20002000, > > - 0x80000000, > > - 0x20002000, > > - 0x80000000, > > - 0x20002000, > > - 0x80000000, > > - 0x20002000, > > - 0x80000000, > > - 0x20002000, > > - 0x80000000, > > - 0x20002000, > > - 0x80000000, > > - 0x20002000, > > - 0x80000000, > > - 0x20002000, > > - 0x80000000, > > - 0x20002000, > > - 0x00000000, /* PA_SC_VPORT_ZMIN_0 */ > > - 0x3f800000, /* PA_SC_VPORT_ZMAX_0 */ > > - > > - 0xc0026900, > > - 0x000000d9, > > - 0x00000000, /* CP_RINGID */ > > - 0x00000000, /* CP_VMID */ > > - > > - 0xc0046900, > > - 0x00000100, > > - 0xffffffff, /* VGT_MAX_VTX_INDX */ > > - 0x00000000, /* VGT_MIN_VTX_INDX */ > > - 0x00000000, /* VGT_INDX_OFFSET */ > > - 0x00000000, /* VGT_MULTI_PRIM_IB_RESET_INDX */ > > - > > - 0xc0046900, > > - 0x00000105, > > - 0x00000000, /* CB_BLEND_RED */ > > - 0x00000000, /* CB_BLEND_GREEN */ > > - 0x00000000, /* CB_BLEND_BLUE */ > > - 0x00000000, /* CB_BLEND_ALPHA */ > > - > > - 0xc0016900, > > - 0x000001e0, > > - 0x00000000, /* CB_BLEND0_CONTROL */ > > - > > - 0xc00e6900, > > - 0x00000200, > > - 0x00000000, /* DB_DEPTH_CONTROL */ > > - 0x00000000, /* DB_EQAA */ > > - 0x00cc0010, /* CB_COLOR_CONTROL */ > > - 0x00000210, /* DB_SHADER_CONTROL */ > > - 0x00010000, /* PA_CL_CLIP_CNTL */ > > - 0x00000004, /* PA_SU_SC_MODE_CNTL */ > > - 0x00000100, /* PA_CL_VTE_CNTL */ > > - 0x00000000, /* PA_CL_VS_OUT_CNTL */ > > - 0x00000000, /* PA_CL_NANINF_CNTL */ > > - 0x00000000, /* PA_SU_LINE_STIPPLE_CNTL */ > > - 0x00000000, /* PA_SU_LINE_STIPPLE_SCALE */ > > - 0x00000000, /* PA_SU_PRIM_FILTER_CNTL */ > > - 0x00000000, /* */ > > - 0x00000000, /* */ > > - > > - 0xc0116900, > > - 0x00000280, > > - 0x00000000, /* PA_SU_POINT_SIZE */ > > - 0x00000000, /* PA_SU_POINT_MINMAX */ > > - 0x00000008, /* PA_SU_LINE_CNTL */ > > - 0x00000000, /* PA_SC_LINE_STIPPLE */ > > - 0x00000000, /* VGT_OUTPUT_PATH_CNTL */ > > - 0x00000000, /* VGT_HOS_CNTL */ > > - 0x00000000, > > - 0x00000000, > > - 0x00000000, > > - 0x00000000, > > - 0x00000000, > > - 0x00000000, > > - 0x00000000, > > - 0x00000000, > > - 0x00000000, > > - 0x00000000, > > - 0x00000000, /* VGT_GS_MODE */ > > - > > - 0xc0026900, > > - 0x00000292, > > - 0x00000000, /* PA_SC_MODE_CNTL_0 */ > > - 0x00000000, /* PA_SC_MODE_CNTL_1 */ > > - > > - 0xc0016900, > > - 0x000002a1, > > - 0x00000000, /* VGT_PRIMITIVEID_EN */ > > - > > - 0xc0016900, > > - 0x000002a5, > > - 0x00000000, /* VGT_MULTI_PRIM_IB_RESET_EN */ > > - > > - 0xc0026900, > > - 0x000002a8, > > - 0x00000000, /* VGT_INSTANCE_STEP_RATE_0 */ > > - 0x00000000, > > - > > - 0xc0026900, > > - 0x000002ad, > > - 0x00000000, /* VGT_REUSE_OFF */ > > - 0x00000000, > > - > > - 0xc0016900, > > - 0x000002d5, > > - 0x00000000, /* VGT_SHADER_STAGES_EN */ > > - > > - 0xc0016900, > > - 0x000002dc, > > - 0x0000aa00, /* DB_ALPHA_TO_MASK */ > > - > > - 0xc0066900, > > - 0x000002de, > > - 0x00000000, /* PA_SU_POLY_OFFSET_DB_FMT_CNTL */ > > - 0x00000000, > > - 0x00000000, > > - 0x00000000, > > - 0x00000000, > > - 0x00000000, > > - > > - 0xc0026900, > > - 0x000002e5, > > - 0x00000000, /* VGT_STRMOUT_CONFIG */ > > - 0x00000000, > > - > > - 0xc01b6900, > > - 0x000002f5, > > - 0x76543210, /* PA_SC_CENTROID_PRIORITY_0 */ > > - 0xfedcba98, /* PA_SC_CENTROID_PRIORITY_1 */ > > - 0x00000000, /* PA_SC_LINE_CNTL */ > > - 0x00000000, /* PA_SC_AA_CONFIG */ > > - 0x00000005, /* PA_SU_VTX_CNTL */ > > - 0x3f800000, /* PA_CL_GB_VERT_CLIP_ADJ */ > > - 0x3f800000, /* PA_CL_GB_VERT_DISC_ADJ */ > > - 0x3f800000, /* PA_CL_GB_HORZ_CLIP_ADJ */ > > - 0x3f800000, /* PA_CL_GB_HORZ_DISC_ADJ */ > > - 0x00000000, /* PA_SC_AA_SAMPLE_LOCS_PIXEL_X0Y0_0 */ > > - 0x00000000, > > - 0x00000000, > > - 0x00000000, > > - 0x00000000, > > - 0x00000000, > > - 0x00000000, > > - 0x00000000, > > - 0x00000000, > > - 0x00000000, > > - 0x00000000, > > - 0x00000000, > > - 0x00000000, > > - 0x00000000, > > - 0x00000000, > > - 0x00000000, > > - 0xffffffff, /* PA_SC_AA_MASK_X0Y0_X1Y0 */ > > - 0xffffffff, > > - > > - 0xc0026900, > > - 0x00000316, > > - 0x0000000e, /* VGT_VERTEX_REUSE_BLOCK_CNTL */ > > - 0x00000010, /* */ > > -}; > > - > > -const u32 si_default_size =3D ARRAY_SIZE(si_default_state); > > diff --git a/drivers/gpu/drm/radeon/si_blit_shaders.h b/drivers/gpu/drm= /radeon/si_blit_shaders.h > > index c739e51e3961..829a2b6228b7 100644 > > --- a/drivers/gpu/drm/radeon/si_blit_shaders.h > > +++ b/drivers/gpu/drm/radeon/si_blit_shaders.h > > @@ -25,8 +25,227 @@ > > #ifndef SI_BLIT_SHADERS_H > > #define SI_BLIT_SHADERS_H > > > > -extern const u32 si_default_state[]; > > +static const u32 si_default_state[] =3D { > > + 0xc0066900, > > + 0x00000000, > > + 0x00000060, /* DB_RENDER_CONTROL */ > > + 0x00000000, /* DB_COUNT_CONTROL */ > > + 0x00000000, /* DB_DEPTH_VIEW */ > > + 0x0000002a, /* DB_RENDER_OVERRIDE */ > > + 0x00000000, /* DB_RENDER_OVERRIDE2 */ > > + 0x00000000, /* DB_HTILE_DATA_BASE */ > > > > -extern const u32 si_default_size; > > + 0xc0046900, > > + 0x00000008, > > + 0x00000000, /* DB_DEPTH_BOUNDS_MIN */ > > + 0x00000000, /* DB_DEPTH_BOUNDS_MAX */ > > + 0x00000000, /* DB_STENCIL_CLEAR */ > > + 0x00000000, /* DB_DEPTH_CLEAR */ > > + > > + 0xc0036900, > > + 0x0000000f, > > + 0x00000000, /* DB_DEPTH_INFO */ > > + 0x00000000, /* DB_Z_INFO */ > > + 0x00000000, /* DB_STENCIL_INFO */ > > + > > + 0xc0016900, > > + 0x00000080, > > + 0x00000000, /* PA_SC_WINDOW_OFFSET */ > > + > > + 0xc00d6900, > > + 0x00000083, > > + 0x0000ffff, /* PA_SC_CLIPRECT_RULE */ > > + 0x00000000, /* PA_SC_CLIPRECT_0_TL */ > > + 0x20002000, /* PA_SC_CLIPRECT_0_BR */ > > + 0x00000000, > > + 0x20002000, > > + 0x00000000, > > + 0x20002000, > > + 0x00000000, > > + 0x20002000, > > + 0xaaaaaaaa, /* PA_SC_EDGERULE */ > > + 0x00000000, /* PA_SU_HARDWARE_SCREEN_OFFSET */ > > + 0x0000000f, /* CB_TARGET_MASK */ > > + 0x0000000f, /* CB_SHADER_MASK */ > > + > > + 0xc0226900, > > + 0x00000094, > > + 0x80000000, /* PA_SC_VPORT_SCISSOR_0_TL */ > > + 0x20002000, /* PA_SC_VPORT_SCISSOR_0_BR */ > > + 0x80000000, > > + 0x20002000, > > + 0x80000000, > > + 0x20002000, > > + 0x80000000, > > + 0x20002000, > > + 0x80000000, > > + 0x20002000, > > + 0x80000000, > > + 0x20002000, > > + 0x80000000, > > + 0x20002000, > > + 0x80000000, > > + 0x20002000, > > + 0x80000000, > > + 0x20002000, > > + 0x80000000, > > + 0x20002000, > > + 0x80000000, > > + 0x20002000, > > + 0x80000000, > > + 0x20002000, > > + 0x80000000, > > + 0x20002000, > > + 0x80000000, > > + 0x20002000, > > + 0x80000000, > > + 0x20002000, > > + 0x80000000, > > + 0x20002000, > > + 0x00000000, /* PA_SC_VPORT_ZMIN_0 */ > > + 0x3f800000, /* PA_SC_VPORT_ZMAX_0 */ > > + > > + 0xc0026900, > > + 0x000000d9, > > + 0x00000000, /* CP_RINGID */ > > + 0x00000000, /* CP_VMID */ > > + > > + 0xc0046900, > > + 0x00000100, > > + 0xffffffff, /* VGT_MAX_VTX_INDX */ > > + 0x00000000, /* VGT_MIN_VTX_INDX */ > > + 0x00000000, /* VGT_INDX_OFFSET */ > > + 0x00000000, /* VGT_MULTI_PRIM_IB_RESET_INDX */ > > + > > + 0xc0046900, > > + 0x00000105, > > + 0x00000000, /* CB_BLEND_RED */ > > + 0x00000000, /* CB_BLEND_GREEN */ > > + 0x00000000, /* CB_BLEND_BLUE */ > > + 0x00000000, /* CB_BLEND_ALPHA */ > > + > > + 0xc0016900, > > + 0x000001e0, > > + 0x00000000, /* CB_BLEND0_CONTROL */ > > + > > + 0xc00e6900, > > + 0x00000200, > > + 0x00000000, /* DB_DEPTH_CONTROL */ > > + 0x00000000, /* DB_EQAA */ > > + 0x00cc0010, /* CB_COLOR_CONTROL */ > > + 0x00000210, /* DB_SHADER_CONTROL */ > > + 0x00010000, /* PA_CL_CLIP_CNTL */ > > + 0x00000004, /* PA_SU_SC_MODE_CNTL */ > > + 0x00000100, /* PA_CL_VTE_CNTL */ > > + 0x00000000, /* PA_CL_VS_OUT_CNTL */ > > + 0x00000000, /* PA_CL_NANINF_CNTL */ > > + 0x00000000, /* PA_SU_LINE_STIPPLE_CNTL */ > > + 0x00000000, /* PA_SU_LINE_STIPPLE_SCALE */ > > + 0x00000000, /* PA_SU_PRIM_FILTER_CNTL */ > > + 0x00000000, /* */ > > + 0x00000000, /* */ > > + > > + 0xc0116900, > > + 0x00000280, > > + 0x00000000, /* PA_SU_POINT_SIZE */ > > + 0x00000000, /* PA_SU_POINT_MINMAX */ > > + 0x00000008, /* PA_SU_LINE_CNTL */ > > + 0x00000000, /* PA_SC_LINE_STIPPLE */ > > + 0x00000000, /* VGT_OUTPUT_PATH_CNTL */ > > + 0x00000000, /* VGT_HOS_CNTL */ > > + 0x00000000, > > + 0x00000000, > > + 0x00000000, > > + 0x00000000, > > + 0x00000000, > > + 0x00000000, > > + 0x00000000, > > + 0x00000000, > > + 0x00000000, > > + 0x00000000, > > + 0x00000000, /* VGT_GS_MODE */ > > + > > + 0xc0026900, > > + 0x00000292, > > + 0x00000000, /* PA_SC_MODE_CNTL_0 */ > > + 0x00000000, /* PA_SC_MODE_CNTL_1 */ > > + > > + 0xc0016900, > > + 0x000002a1, > > + 0x00000000, /* VGT_PRIMITIVEID_EN */ > > + > > + 0xc0016900, > > + 0x000002a5, > > + 0x00000000, /* VGT_MULTI_PRIM_IB_RESET_EN */ > > + > > + 0xc0026900, > > + 0x000002a8, > > + 0x00000000, /* VGT_INSTANCE_STEP_RATE_0 */ > > + 0x00000000, > > + > > + 0xc0026900, > > + 0x000002ad, > > + 0x00000000, /* VGT_REUSE_OFF */ > > + 0x00000000, > > + > > + 0xc0016900, > > + 0x000002d5, > > + 0x00000000, /* VGT_SHADER_STAGES_EN */ > > + > > + 0xc0016900, > > + 0x000002dc, > > + 0x0000aa00, /* DB_ALPHA_TO_MASK */ > > + > > + 0xc0066900, > > + 0x000002de, > > + 0x00000000, /* PA_SU_POLY_OFFSET_DB_FMT_CNTL */ > > + 0x00000000, > > + 0x00000000, > > + 0x00000000, > > + 0x00000000, > > + 0x00000000, > > + > > + 0xc0026900, > > + 0x000002e5, > > + 0x00000000, /* VGT_STRMOUT_CONFIG */ > > + 0x00000000, > > + > > + 0xc01b6900, > > + 0x000002f5, > > + 0x76543210, /* PA_SC_CENTROID_PRIORITY_0 */ > > + 0xfedcba98, /* PA_SC_CENTROID_PRIORITY_1 */ > > + 0x00000000, /* PA_SC_LINE_CNTL */ > > + 0x00000000, /* PA_SC_AA_CONFIG */ > > + 0x00000005, /* PA_SU_VTX_CNTL */ > > + 0x3f800000, /* PA_CL_GB_VERT_CLIP_ADJ */ > > + 0x3f800000, /* PA_CL_GB_VERT_DISC_ADJ */ > > + 0x3f800000, /* PA_CL_GB_HORZ_CLIP_ADJ */ > > + 0x3f800000, /* PA_CL_GB_HORZ_DISC_ADJ */ > > + 0x00000000, /* PA_SC_AA_SAMPLE_LOCS_PIXEL_X0Y0_0 */ > > + 0x00000000, > > + 0x00000000, > > + 0x00000000, > > + 0x00000000, > > + 0x00000000, > > + 0x00000000, > > + 0x00000000, > > + 0x00000000, > > + 0x00000000, > > + 0x00000000, > > + 0x00000000, > > + 0x00000000, > > + 0x00000000, > > + 0x00000000, > > + 0x00000000, > > + 0xffffffff, /* PA_SC_AA_MASK_X0Y0_X1Y0 */ > > + 0xffffffff, > > + > > + 0xc0026900, > > + 0x00000316, > > + 0x0000000e, /* VGT_VERTEX_REUSE_BLOCK_CNTL */ > > + 0x00000010, /* */ > > +}; > > + > > +static const u32 si_default_size =3D ARRAY_SIZE(si_default_state); > > > > #endif >