From patchwork Thu May 26 13:38:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TWFyZWsgT2zFocOhaw==?= X-Patchwork-Id: 9136985 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6EC1F6075A for ; Thu, 26 May 2016 13:39:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 55EE0281D4 for ; Thu, 26 May 2016 13:39:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 49582282F6; Thu, 26 May 2016 13:39:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 495D2282F8 for ; Thu, 26 May 2016 13:39:11 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4D7926E105; Thu, 26 May 2016 13:39:08 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x244.google.com (mail-wm0-x244.google.com [IPv6:2a00:1450:400c:c09::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6B0B06E105 for ; Thu, 26 May 2016 13:39:06 +0000 (UTC) Received: by mail-wm0-x244.google.com with SMTP id e3so5552834wme.2 for ; Thu, 26 May 2016 06:39:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=0/w87s0/l2aVdCx7qaRt6cTkCmrNm+Bm9PBYuitEmQ0=; b=rjQ3PrgSYK3p72iprQEgCOunJ4Yo2I3O4hInEKZyG1rF7fam26BjAQ2OFt+Sddv7ZV cd2PROKUKGvxTibsFAy8+h/to0zVZjZifgALAdKXNHV/2zdfn3pH8XqGliBOYRyC7jY9 2kFhE3SLrJTSs6B3WZLIpY+r7GtyNFtVcUUhj0oBuC1TYrtNtzyc7zOTgMGscJRgGmXU SOsKPP9yudmeUCn7iSOQQBPhbfdfPcXnG99ZBoTxNRd5tYq3/JvMyXN8cmtUkQys0syh N1m8irBjl17tf+1tXP5Ie2KXAr5gYN2dmPnBUNPrDyGXlI2Axp4azwUW2HFIABe58OEy AvZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=0/w87s0/l2aVdCx7qaRt6cTkCmrNm+Bm9PBYuitEmQ0=; b=APfpYkjvTvk4XGF0++OvPj2T3rgU+XL/6K7HXk5v+Eve7Tf0zj7tKYmHyHsH22/Ulk s6R7ZcR7KHUBxuv3RVc/e0roXu+uC3qWFQVUe/NFD05IS03NAdn/zsoo14nO/aqKjNfq RbG0rFwlcnq7V20RyERIxUOqe4lq+pej0bXUUh4XEj5Ia3leRNCcADqkxLRPVHsnbziR 1YctgVTqXhy0Mulk/ec4mtLq7eirZK+8KtJw0k0AKwk9EeAVcK4bjwEbeEjHalBl9Nk9 bIE/0S0siq+Ru7pKc0g3Wk1fydc1I31paUDzTqP6x/OrJjB3peU84ke3o/nVJc5E7PiT gcWg== X-Gm-Message-State: ALyK8tJTQbb31yMSH36YJEVQG2oFD3dSW6rkMtD+dYpWPPbX/wGyc7OjphWlgp72P8gd+Q== X-Received: by 10.194.25.194 with SMTP id e2mr4860425wjg.84.1464269944730; Thu, 26 May 2016 06:39:04 -0700 (PDT) Received: from heaven.amd.com (ip-94-112-85-2.net.upcbroadband.cz. [94.112.85.2]) by smtp.gmail.com with ESMTPSA id f1sm2694020wmf.22.2016.05.26.06.39.03 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 May 2016 06:39:03 -0700 (PDT) From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm] radeon: use SAMPLE_SPLIT=2 for better MSAA perf on EG/CM Date: Thu, 26 May 2016 15:38:59 +0200 Message-Id: <1464269939-29552-1-git-send-email-maraeo@gmail.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Marek Olšák Reviewed-by: Alex Deucher --- radeon/radeon_surface.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/radeon/radeon_surface.c b/radeon/radeon_surface.c index 5ec9745..1424660 100644 --- a/radeon/radeon_surface.c +++ b/radeon/radeon_surface.c @@ -957,8 +957,10 @@ static int eg_surface_best(struct radeon_surface_manager *surf_man, } surf->stencil_tile_split = 64; } else { - /* tile split must be >= 256 for colorbuffer surfaces */ - surf->tile_split = MAX2(surf->nsamples * surf->bpe * 64, 256); + /* tile split must be >= 256 for colorbuffer surfaces, + * SAMPLE_SPLIT = tile_split / (bpe * 64), the optimal value is 2 + */ + surf->tile_split = MAX2(2 * surf->bpe * 64, 256); if (surf->tile_split > 4096) surf->tile_split = 4096; }