From patchwork Sun Aug 19 13:25:05 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: 1344281 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 E60983FC33 for ; Sun, 19 Aug 2012 13:25:30 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8ED0EA0890 for ; Sun, 19 Aug 2012 06:25:30 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by gabe.freedesktop.org (Postfix) with ESMTP id 96377A0882 for ; Sun, 19 Aug 2012 06:25:18 -0700 (PDT) Received: by wibhm2 with SMTP id hm2so2528861wib.0 for ; Sun, 19 Aug 2012 06:25:17 -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=twO8YJ4p2Expm5u9lkouCoc3j0dkUc+Ju3197HbI2V0=; b=MYGQdLjie/gt4qBvWFZGheEg6O8aOFj6gLZUYrVBigvFtapnmHMfZ1wKpXnjQAxsyf 9gV5b513pbKCysuuLuxOVaIv77Gl6K53hzIQuqvCNhb8ln/axhxv2WmKcsaWIsnf44dZ BcogDyBzMS+S81NRXlMS6qqV/S1oN2CtLlEbF4RnwZ9MuY+DZxsj2022V9n8tMpKLkR6 Z522KJFjd0AdiOcgXfp++jafP1y9lk5VY/iyV+C0ekyjsOpkkNTEpCK2fpT3TuAFphGj JFlv0fHiXsrziZ+nDpCAfWWEQgWolREDo+hmfkA6EZJheZx3bNnjPOlYwNu/Ty99bjr9 MOFA== Received: by 10.180.97.135 with SMTP id ea7mr19891893wib.11.1345382717473; Sun, 19 Aug 2012 06:25:17 -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 el6sm22177187wib.8.2012.08.19.06.25.14 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 19 Aug 2012 06:25:16 -0700 (PDT) From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= To: dri-devel@lists.freedesktop.org Subject: [PATCH] r600g: fix allocation of MSAA surfaces on r600-r700 Date: Sun, 19 Aug 2012 15:25:05 +0200 Message-Id: <1345382705-2603-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 --- radeon/radeon_surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Jerome Glisse diff --git a/radeon/radeon_surface.c b/radeon/radeon_surface.c index 892dca6..98f4aaf 100644 --- a/radeon/radeon_surface.c +++ b/radeon/radeon_surface.c @@ -165,7 +165,7 @@ static void surf_minify(struct radeon_surface *surf, surf->level[level].nblk_z = ALIGN(surf->level[level].nblk_z, zalign); surf->level[level].offset = offset; - surf->level[level].pitch_bytes = surf->level[level].nblk_x * surf->bpe; + surf->level[level].pitch_bytes = surf->level[level].nblk_x * surf->bpe * surf->nsamples; surf->level[level].slice_size = surf->level[level].pitch_bytes * surf->level[level].nblk_y; surf->bo_size = offset + surf->level[level].slice_size * surf->level[level].nblk_z * surf->array_size;