From patchwork Mon Jan 28 08:01:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Forbes X-Patchwork-Id: 2053641 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 9F1D43FD1A for ; Mon, 28 Jan 2013 07:59:55 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5FCC6E64CA for ; Sun, 27 Jan 2013 23:59:55 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pb0-f49.google.com (mail-pb0-f49.google.com [209.85.160.49]) by gabe.freedesktop.org (Postfix) with ESMTP id C46E1E5DDE for ; Sun, 27 Jan 2013 23:59:42 -0800 (PST) Received: by mail-pb0-f49.google.com with SMTP id xa12so1310588pbc.22 for ; Sun, 27 Jan 2013 23:59:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=z1LicPGvUM5bHj/5i6OSKAggaXNRd4QjjhlqSikehwE=; b=nJJSwwlR47x3ns3wQGb5867gGsa51vIHAbxt9BkXnS61YeOsMq9GfRDLEeGktPpEme ibxFkBhZ5lDWAotauTooQHmXsEk902/iu/cIduiVl1vY3H71ZI3gF9iuY4GcdGbdiNX9 vO2Zb/rYiQBwEzhFAUu0OL0UlU3KGnEMTk6imS31HaH7h47AgJdp98BTNy0NFl5P7gaJ n287aO4JmwmeQlO/W1msM2BB3IciukcrS+uBdtgBstYhEWkKLUoxFgIKvHeSDYKsE3wv W0bpXrzU9GLqoG89cje1pWRz/KHAuUXVErPvhXjcrpaXNea1EWxjVd4iJHX/n4Vrxsw3 dWlA== X-Received: by 10.68.248.68 with SMTP id yk4mr35292434pbc.154.1359359982570; Sun, 27 Jan 2013 23:59:42 -0800 (PST) Received: from localhost.localdomain (202-78-145-199.cable.telstraclear.net. [202.78.145.199]) by mx.google.com with ESMTPS id o5sm6294252pay.5.2013.01.27.23.59.40 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 27 Jan 2013 23:59:41 -0800 (PST) From: Chris Forbes To: dri-devel@lists.freedesktop.org Subject: [PATCH] intel: fix length mask for Gen5/Gen6 3DSTATE_CLEAR_PARAMS Date: Mon, 28 Jan 2013 21:01:18 +1300 Message-Id: <1359360078-24743-1-git-send-email-chrisf@ijw.co.nz> X-Mailer: git-send-email 1.8.1.1 X-Gm-Message-State: ALoCoQmCuXXX2lZwt2omLIYDkXR22Bi88wTiEoJd8PrZUI8LhcHtsaHTNnFmycczH2loHFLFXW7V 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 On Gen6, bit 15 is now `Depth Clear Value Valid`. This was being treated as part of the length, and failing the rest of the batchbuffer decode. Signed-off-by: Chris Forbes --- intel/intel_decode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intel/intel_decode.c b/intel/intel_decode.c index a4b045a..842921b 100644 --- a/intel/intel_decode.c +++ b/intel/intel_decode.c @@ -3224,7 +3224,7 @@ decode_3d_965(struct drm_intel_decode *ctx) { 0x790b, 0xffff, 4, 4, "3DSTATE_GS_SVB_INDEX" }, { 0x790d, 0xffff, 3, 3, "3DSTATE_MULTISAMPLE", 6 }, { 0x790d, 0xffff, 4, 4, "3DSTATE_MULTISAMPLE", 7 }, - { 0x7910, 0xffff, 2, 2, "3DSTATE_CLEAR_PARAMS" }, + { 0x7910, 0x00ff, 2, 2, "3DSTATE_CLEAR_PARAMS" }, { 0x7912, 0x00ff, 2, 2, "3DSTATE_PUSH_CONSTANT_ALLOC_VS" }, { 0x7913, 0x00ff, 2, 2, "3DSTATE_PUSH_CONSTANT_ALLOC_HS" }, { 0x7914, 0x00ff, 2, 2, "3DSTATE_PUSH_CONSTANT_ALLOC_DS" },