From patchwork Wed Aug 22 15:02:43 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: 1361821 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id 161C5DF280 for ; Wed, 22 Aug 2012 15:04:29 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8464DA0A62 for ; Wed, 22 Aug 2012 08:04:28 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by gabe.freedesktop.org (Postfix) with ESMTP id 01A76A0A43 for ; Wed, 22 Aug 2012 08:03:00 -0700 (PDT) Received: by wibhn17 with SMTP id hn17so732091wib.12 for ; Wed, 22 Aug 2012 08:03:00 -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:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=GelNUHpiqra1ubASlD2TZIeRB8nqu8nRZ5++IdKSEUE=; b=hpHpFkY1mnms/Mgj5OyTKyM4a208mbcGxmrOZrTV2h+NZ9EHSXXv/kS7DvQgZWYfvU jcIzhhGtS1OKdp+Xyz/nkknivcZP/aHm2Nm18kTsxyiXVMKOEkXpWf38dcTqbPm22DDY pbdmmsgqvCgtJcXF9vV2nnKkTe/KivzvYbZZJ+CD1XZozVLqUQAqBTjWri+6Si4Kvm2U A9t+/PjaPNCmxyMHej5cpVRlyeFZW26j/GJqtMwCimVtsvqELVU1P4ZSzb4wSehBEQvi Dv/cQYeHVZvcIoQ/IlSiv2CIEd0slrjRqP6EEEm8jBZD735BDSY8voAV1pkWbQ5hPceW FC8Q== Received: by 10.180.78.170 with SMTP id c10mr6639892wix.3.1345647780257; Wed, 22 Aug 2012 08:03:00 -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.58 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 22 Aug 2012 08:02:59 -0700 (PDT) From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= To: dri-devel@lists.freedesktop.org Subject: [PATCH 2/2] drm/radeon: initialize tracked CS state Date: Wed, 22 Aug 2012 17:02:43 +0200 Message-Id: <1345647764-6078-2-git-send-email-maraeo@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1345647764-6078-1-git-send-email-maraeo@gmail.com> References: <1345647764-6078-1-git-send-email-maraeo@gmail.com> 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 This should help catch uninitialized registers and reject commands because of that. Signed-off-by: Marek Olšák --- drivers/gpu/drm/radeon/r600_cs.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/r600_cs.c b/drivers/gpu/drm/radeon/r600_cs.c index 7799e28..8866937 100644 --- a/drivers/gpu/drm/radeon/r600_cs.c +++ b/drivers/gpu/drm/radeon/r600_cs.c @@ -315,7 +315,14 @@ static void r600_cs_track_init(struct r600_cs_track *track) track->cb_color_bo[i] = NULL; track->cb_color_bo_offset[i] = 0xFFFFFFFF; track->cb_color_bo_mc[i] = 0xFFFFFFFF; - } + track->cb_color_frag_bo[i] = NULL; + track->cb_color_frag_offset[i] = 0xFFFFFFFF; + track->cb_color_tile_bo[i] = NULL; + track->cb_color_tile_offset[i] = 0xFFFFFFFF; + track->cb_color_mask[i] = 0xFFFFFFFF; + } + track->nsamples = 16; + track->log_nsamples = 4; track->cb_target_mask = 0xFFFFFFFF; track->cb_shader_mask = 0xFFFFFFFF; track->cb_dirty = true;