From patchwork Wed Sep 2 05:11:34 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xiang, Haihao" X-Patchwork-Id: 45138 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n825Adan030077 for ; Wed, 2 Sep 2009 05:10:39 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6165C9E996; Tue, 1 Sep 2009 22:10:39 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTP id 3DEF89E741 for ; Tue, 1 Sep 2009 22:10:37 -0700 (PDT) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 01 Sep 2009 21:59:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.44,316,1249282800"; d="scan'208";a="723099725" Received: from xhh-ilk32.sh.intel.com (HELO localhost.localdomain) ([10.239.36.168]) by fmsmga001.fm.intel.com with ESMTP; 01 Sep 2009 22:13:40 -0700 From: "Xiang, Haihao" To: intel-gfx@lists.freedesktop.org Date: Wed, 2 Sep 2009 13:11:34 +0800 Message-Id: <1251868296-6595-1-git-send-email-haihao.xiang@intel.com> X-Mailer: git-send-email 1.5.6.3 Subject: [Intel-gfx] [PATCH] intel_gpu_dump: Fix the length of CONSTANT_BUFFER X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.9 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org --- tools/intel_gpu_dump.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/tools/intel_gpu_dump.c b/tools/intel_gpu_dump.c index bb2637d..2ab418c 100644 --- a/tools/intel_gpu_dump.c +++ b/tools/intel_gpu_dump.c @@ -1521,6 +1521,7 @@ decode_3d_965(uint32_t *data, int count, uint32_t hw_offset, int *failures) (data[1] >> 4) & 0x1f, data[1] & 0x7); return len; case 0x6002: + len = (data[0] & 0x000000ff) + 2; instr_out(data, hw_offset, 0, "CONSTANT_BUFFER: %s\n", (data[0] >> 8) & 1 ? "valid" : "invalid"); instr_out(data, hw_offset, 1, "offset: 0x%08x, length: 0x%08x\n",