From patchwork Wed Aug 22 15:02:42 2012 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: 1361801 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 9AD273FD40 for ; Wed, 22 Aug 2012 15:03:41 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 61F33A0A61 for ; Wed, 22 Aug 2012 08:03:41 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com [74.125.82.43]) by gabe.freedesktop.org (Postfix) with ESMTP id 57ADDA08D7 for ; Wed, 22 Aug 2012 08:02:59 -0700 (PDT) Received: by wgbdr1 with SMTP id dr1so753717wgb.12 for ; Wed, 22 Aug 2012 08:02:58 -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:mime-version:content-type :content-transfer-encoding; bh=ksddubuO8aDKfZLRBIvEpGuATCpPCFXYhdPjHycoCSQ=; b=0XUUd5/XE7Wzq+ak27rZSsqvBEwT3A1bLmu4I5FQzrx93bVAmMm/G758WFEvZz1mwk 3Y1OkBoq0HanI/2V0rAV85yzLavqeegOMPC/rMJlFzkaTFHIVNWx8GmDdtMNWHY+vXBs VZeDl+sFknIzTjl7Q6P6ilnhXBWoLAbY6409eagWqDA3bNhtozfK+vp2jDuNN0/Xa7mt xVUtXbcSE6nATa5an0GAackkrvQHD7VEKfjMAsn2/+cFUm5SBh3/s1Cyz6CiwLFzwqJ2 5Owv7Bf0vPyl4ZQYiPf6iyVYudlzjmNEeghBfMwVOi8eiqiMilaIyUhsLrFSGD2OPa4J gZeQ== Received: by 10.180.80.134 with SMTP id r6mr6659899wix.1.1345647778366; Wed, 22 Aug 2012 08:02:58 -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 ef5sm13157183wib.3.2012.08.22.08.02.53 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 22 Aug 2012 08:02:54 -0700 (PDT) From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= To: dri-devel@lists.freedesktop.org Subject: [PATCH 1/2] drm/radeon: fix reading CB_COLORn_MASK from the CS Date: Wed, 22 Aug 2012 17:02:42 +0200 Message-Id: <1345647764-6078-1-git-send-email-maraeo@gmail.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 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: , 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 Signed-off-by: Marek Olšák --- drivers/gpu/drm/radeon/r600_cs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/r600_cs.c b/drivers/gpu/drm/radeon/r600_cs.c index ab74e6b..7799e28 100644 --- a/drivers/gpu/drm/radeon/r600_cs.c +++ b/drivers/gpu/drm/radeon/r600_cs.c @@ -1416,7 +1416,7 @@ static int r600_cs_check_reg(struct radeon_cs_parser *p, u32 reg, u32 idx) case R_028118_CB_COLOR6_MASK: case R_02811C_CB_COLOR7_MASK: tmp = (reg - R_028100_CB_COLOR0_MASK) / 4; - track->cb_color_mask[tmp] = ib[idx]; + track->cb_color_mask[tmp] = radeon_get_ib_value(p, idx); if (G_0280A0_TILE_MODE(track->cb_color_info[tmp])) { track->cb_dirty = true; }