From patchwork Mon Aug 20 15:28:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?TWFyZWsgT2zFocOhaw==?= X-Patchwork-Id: 1349761 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork1.kernel.org (Postfix) with ESMTP id 4F25A3FC33 for ; Mon, 20 Aug 2012 15:29:06 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 108D59EFC9 for ; Mon, 20 Aug 2012 08:29:06 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-bk0-f49.google.com (mail-bk0-f49.google.com [209.85.214.49]) by gabe.freedesktop.org (Postfix) with ESMTP id 5D1D29EFE9 for ; Mon, 20 Aug 2012 08:28:22 -0700 (PDT) Received: by bkcji2 with SMTP id ji2so2233404bkc.36 for ; Mon, 20 Aug 2012 08:28:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:x-mailer; bh=WBDDItMntOPbsMwOkW8sX24VxpD5lrTAmLOjYZ4NIRU=; b=JAOm6lZ6jccHTgoLs5pD2GXG72hhxtxxn1NEOj6577LRk4vs5kiMPPYNQtJhcUKEwI I5tQ7gMpVBku345ajfypntAh/eS9LhnZABYVkzUf4WmyoTmEWTLrOhEDOi3cABZpxtbZ R7kYnbkpJTxYC8mFWUnWi2AQ/58RfCMD0JOY+PHweMWZzqV5F0d4FXm0s89XoNzWPo3n jqbjVkjhGEPYHQXLXJZWt+C7mBPygi1BYzE0rWsiVztDbRoPcIV5F6ra1ae335fByqY4 y8GqKUFVJowzcBe/AaT41EDpUACyDMZHkYbr1dvzSy39YmQhHwYAMCn3a71OYPidzk3R UP/Q== Received: by 10.204.143.138 with SMTP id v10mr4413489bku.114.1345476501261; Mon, 20 Aug 2012 08:28:21 -0700 (PDT) Received: from localhost.localdomain (static-84-242-70-218.net.upcbroadband.cz. [84.242.70.218]) by mx.google.com with ESMTPS id j9sm6405293bkv.0.2012.08.20.08.28.19 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 20 Aug 2012 08:28:20 -0700 (PDT) From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= To: dri-devel@lists.freedesktop.org Subject: [PATCH] radeon: align r600 msaa buffers to a multiple of macrotile size * num samples Date: Mon, 20 Aug 2012 17:28:13 +0200 Message-Id: <1345476493-29635-1-git-send-email-maraeo@gmail.com> X-Mailer: git-send-email 1.7.9.5 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org I am not sure whether this is needed, but better be safe than sorry. --- radeon/radeon_surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radeon/radeon_surface.c b/radeon/radeon_surface.c index 98f4aaf..4118a37 100644 --- a/radeon/radeon_surface.c +++ b/radeon/radeon_surface.c @@ -356,7 +356,7 @@ static int r6_surface_init_2d(struct radeon_surface_manager *surf_man, surf->bo_alignment = MAX2(surf_man->hw_info.num_pipes * surf_man->hw_info.num_banks * - surf->bpe * 64, + surf->nsamples * surf->bpe * 64, xalign * yalign * surf->nsamples * surf->bpe); }