From: Alex Deucher Subject: [PATCH 2/2] r6xx/r7xx: default to micro (1D) tiling for now Date: Tue, 25 May 2010 19:14:51 -0400 Message-ID: <1274829291-17564-3-git-send-email-alexdeucher@gmail.com> References: <1274829291-17564-1-git-send-email-alexdeucher@gmail.com> <1274829291-17564-2-git-send-email-alexdeucher@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-gx0-f220.google.com (mail-gx0-f220.google.com [209.85.217.220]) by gabe.freedesktop.org (Postfix) with ESMTP id D35769EB3B for ; Tue, 25 May 2010 16:15:56 -0700 (PDT) Received: by mail-gx0-f220.google.com with SMTP id 20so2659338gxk.12 for ; Tue, 25 May 2010 16:15:56 -0700 (PDT) In-Reply-To: <1274829291-17564-2-git-send-email-alexdeucher@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: airlied@gmail.com, dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org SW de-tiling used in the r600c 3D driver has issues with certain configurations. Signed-off-by: Alex Deucher --- src/radeon_dri2.c | 32 +++++++++++++++++++++++++------- 1 files changed, 25 insertions(+), 7 deletions(-) diff --git a/src/radeon_dri2.c b/src/radeon_dri2.c index d10d9a8..0811bb1 100644 --- a/src/radeon_dri2.c +++ b/src/radeon_dri2.c @@ -102,7 +102,10 @@ radeon_dri2_create_buffers(DrawablePtr drawable, case DRI2BufferDepth: case DRI2BufferDepthStencil: if (info->ChipFamily >= CHIP_FAMILY_R600) - flags = RADEON_CREATE_PIXMAP_TILING_MACRO; + /* macro is the preferred setting, but the 2D detiling for software + * fallbacks in mesa still has issues on some configurations + */ + flags = RADEON_CREATE_PIXMAP_TILING_MICRO; else flags = RADEON_CREATE_PIXMAP_TILING_MACRO | RADEON_CREATE_PIXMAP_TILING_MICRO; break; @@ -110,7 +113,13 @@ radeon_dri2_create_buffers(DrawablePtr drawable, case DRI2BufferBackRight: case DRI2BufferFakeFrontLeft: case DRI2BufferFakeFrontRight: - flags = RADEON_CREATE_PIXMAP_TILING_MACRO; + if (info->ChipFamily >= CHIP_FAMILY_R600) + /* macro is the preferred setting, but the 2D detiling for software + * fallbacks in mesa still has issues on some configurations + */ + flags = RADEON_CREATE_PIXMAP_TILING_MICRO; + else + flags = RADEON_CREATE_PIXMAP_TILING_MACRO; break; default: flags = 0; @@ -186,16 +195,25 @@ radeon_dri2_create_buffer(DrawablePtr drawable, switch(attachment) { case DRI2BufferDepth: case DRI2BufferDepthStencil: - if (info->ChipFamily >= CHIP_FAMILY_R600) - flags = RADEON_CREATE_PIXMAP_TILING_MACRO; - else - flags = RADEON_CREATE_PIXMAP_TILING_MACRO | RADEON_CREATE_PIXMAP_TILING_MICRO; + /* macro is the preferred setting, but the 2D detiling for software + * fallbacks in mesa still has issues on some configurations + */ + if (info->ChipFamily >= CHIP_FAMILY_R600) + flags = RADEON_CREATE_PIXMAP_TILING_MICRO; + else + flags = RADEON_CREATE_PIXMAP_TILING_MACRO | RADEON_CREATE_PIXMAP_TILING_MICRO; break; case DRI2BufferBackLeft: case DRI2BufferBackRight: case DRI2BufferFakeFrontLeft: case DRI2BufferFakeFrontRight: - flags = RADEON_CREATE_PIXMAP_TILING_MACRO; + if (info->ChipFamily >= CHIP_FAMILY_R600) + /* macro is the preferred setting, but the 2D detiling for software + * fallbacks in mesa still has issues on some configurations + */ + flags = RADEON_CREATE_PIXMAP_TILING_MICRO; + else + flags = RADEON_CREATE_PIXMAP_TILING_MACRO; break; default: flags = 0; -- 1.5.6.3