From patchwork Thu Nov 20 12:06:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Forbes X-Patchwork-Id: 5347671 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id CDC369F2F1 for ; Thu, 20 Nov 2014 12:06:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1B7C4200F0 for ; Thu, 20 Nov 2014 12:06:32 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 7B570201C8 for ; Thu, 20 Nov 2014 12:06:30 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A47A26E385; Thu, 20 Nov 2014 04:06:29 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) by gabe.freedesktop.org (Postfix) with ESMTP id A7DA16E2DB for ; Thu, 20 Nov 2014 04:06:28 -0800 (PST) Received: by mail-pa0-f53.google.com with SMTP id kq14so2434962pab.40 for ; Thu, 20 Nov 2014 04:06:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=KFeV/xMJjyUl5xtduqsPUeD6niOS9sYxHRoGHGC2iK4=; b=DLYxhW5HCTwGFt33+TkdO4Wt2l3H7CJt6gML7N1E6BGmNJNcc7Bj0btsM/QoiCmQAc 4tOZTBTHSFojYcXcNhCBeaasiaYLO5PxCFApv1NaW2KIG+PKBIi4M64PW4jLeBLvt8eB k1wr45KgHha/sTg/Mwy4qh1kZdWhAiWaVjqp2NFMeMSh2GRhKieV0vXExatpst3xrbsL OqF2N0Ob16vkI2qONS7V2lq1rVax5TKdor1jA4f1twWPCfYfFRf0d29gfFvG6C5itVMi QOKKt9XOhiAGthWwApNBMREStLM0tAkHA+OKx9q+gNO7npSz0xnYCQ97bEGYBsVDa9g1 JREA== X-Gm-Message-State: ALoCoQkTcZmazg/3+ayB5pC9aWWubBvlDuM6TAvQSoTz19CH4MqCUgZqCuY965Kbi7TYmI2CYJuo X-Received: by 10.68.246.164 with SMTP id xx4mr16395124pbc.64.1416485188311; Thu, 20 Nov 2014 04:06:28 -0800 (PST) Received: from localhost.localdomain (202-78-145-199.cable.telstraclear.net. [202.78.145.199]) by mx.google.com with ESMTPSA id ut7sm1954661pbc.8.2014.11.20.04.06.24 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 20 Nov 2014 04:06:26 -0800 (PST) From: Chris Forbes To: dri-devel@lists.freedesktop.org Subject: [PATCH] intel: Fix decode of Gen7 3DSTATE_VERTEX_BUFFERS Date: Fri, 21 Nov 2014 01:06:11 +1300 Message-Id: <1416485171-30702-1-git-send-email-chrisf@ijw.co.nz> X-Mailer: git-send-email 2.1.3 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Buffer index / access mode bits are the same as on Gen6. 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 7d5cbe5..adda29a 100644 --- a/intel/intel_decode.c +++ b/intel/intel_decode.c @@ -3383,7 +3383,7 @@ decode_3d_965(struct drm_intel_decode *ctx) for (i = 1; i < len;) { int idx, access; - if (IS_GEN6(devid)) { + if (IS_GEN6(devid) || IS_GEN7(devid)) { idx = 26; access = 20; } else {