From patchwork Sat Sep 29 13:12:24 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: 1528351 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 2EAE93FE4F for ; Sat, 29 Sep 2012 13:12:50 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1A5B79F5CD for ; Sat, 29 Sep 2012 06:12:49 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) by gabe.freedesktop.org (Postfix) with ESMTP id B25369E951 for ; Sat, 29 Sep 2012 06:12:38 -0700 (PDT) Received: by mail-wi0-f171.google.com with SMTP id hj13so747213wib.12 for ; Sat, 29 Sep 2012 06:12:38 -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=mouByyWojjKJB7UYFCzWRN1sZAR5PfuHs77F9tPSqvA=; b=UE8YCzi4AEqC194JgnM1Gs3sxb/ZaDiNsKjlB1IbJ16YRAAUgGwBOZ73YnE+8ZRdkH /C2wG1XPcF0oxVAATn5027WRLELI7RYp2KnAzXcwcNHKMdw74II7HY13Zx0nNQUxRpi0 kwjs29jFYzaywDQw3EFGYNSNZA4NIu9bA0gs1zMPzj4ibC5qknTe88H08XfEGqO8ieaq 7/xPq+dRA8AbX3yujQ053Cw94BeU1dEhitNzEKie2eJ1ttTcTsuh9N6jDoNyaZDJnwoG BnGt0w1dQxkgRbvts6snzcgFp5rSeFY5OU9dsuLWpuyMpG4quuKsim5Nh7FugH83vSKE PKTg== Received: by 10.180.8.134 with SMTP id r6mr3682511wia.18.1348924357932; Sat, 29 Sep 2012 06:12:37 -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 q7sm5646459wiy.11.2012.09.29.06.12.34 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 29 Sep 2012 06:12:36 -0700 (PDT) From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= To: dri-devel@lists.freedesktop.org Subject: [PATCH] radeon: don't take the stencil-specific codepath for buffers without stencil Date: Sat, 29 Sep 2012 15:12:24 +0200 Message-Id: <1348924345-13595-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: Alex Deucher diff --git a/radeon/radeon_surface.c b/radeon/radeon_surface.c index 80b1505..03b1c5d 100644 --- a/radeon/radeon_surface.c +++ b/radeon/radeon_surface.c @@ -911,7 +911,7 @@ static int eg_surface_best(struct radeon_surface_manager *surf_man, * fmask buffer has different optimal value figure them out once we * use it. */ - if (surf->flags & (RADEON_SURF_ZBUFFER | RADEON_SURF_SBUFFER)) { + if (surf->flags & RADEON_SURF_SBUFFER) { /* assume 1 bytes for stencil, we optimize for stencil as stencil * and depth shares surface values */