From patchwork Wed Nov 16 08:55:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tvrtko Ursulin X-Patchwork-Id: 9431089 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F06FC6021C for ; Wed, 16 Nov 2016 08:56:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E1DC128E91 for ; Wed, 16 Nov 2016 08:56:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D6F5C28EA6; Wed, 16 Nov 2016 08:56:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A4B6D28E91 for ; Wed, 16 Nov 2016 08:56:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 43A096E675; Wed, 16 Nov 2016 08:56:14 +0000 (UTC) X-Original-To: Intel-gfx@lists.freedesktop.org Delivered-To: Intel-gfx@lists.freedesktop.org Received: from mail-wm0-x243.google.com (mail-wm0-x243.google.com [IPv6:2a00:1450:400c:c09::243]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6032B6E663 for ; Wed, 16 Nov 2016 08:55:55 +0000 (UTC) Received: by mail-wm0-x243.google.com with SMTP id u144so8748545wmu.0 for ; Wed, 16 Nov 2016 00:55:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ursulin-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=d2zEmwQqCHS2IjcOQRb6rpnl5u8Thh4iwS+vdmYwEMg=; b=cYU1BqWMMmc9lJ82ClzYfGeDTF681uI5PTkCllktOWQrGdSF8BsaBluyZ6GFHl7qIS NK7qH9HYgZqx9GbjOcmGGNG6paSEgZIul1Gg+Ki5Mva0Z8P1NswM3jZPSIdOyQHd/gTH ydHGPhaL4/40o0a5/BKpfRRqD0pW8St/O92qtvb6WpFwCPtItEiecFyJhlbAuG7pv/8X wEea47yrsth8yRS256SMB6HRRjvuAvkHt3HtRQABmX82Xidm/hzEiKIlLda56mxPhTl9 GftMI9erw3hGERWaczJcXMDL1FWdpWRcXi0aQVV7teyduyR6FRbTPzpsgOj2U9VTM1SS 8b3A== 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:in-reply-to :references; bh=d2zEmwQqCHS2IjcOQRb6rpnl5u8Thh4iwS+vdmYwEMg=; b=MDZX9NGh04woRTVz36kg4IfbJ/yfcwvfhHDcmkOj+Ym2Br5i8doVSVKZ/ACWTPWwXC t9tojSi2h3wEpnp/zxDNfssi5mJ7U1dDTfodUS6dh3JW4SKSPkCr2w7mhYVqxwG54PfX Q/ceV22Wb5DIR4eaTqmmjJZHhkun8tu/UhfvIltnUtw0AXmgV8RSzL8uXAxE3PlwG2d3 9/agTKb0329tadAnveOKrSjA4HaljPYzpdjZb9opN5sdOE0avhG0VAN4qBVBgtDJg7nE shctR+99t32EmeC7KyJGt075ASmPspvQETdLhAWSCom3WWGbE6B/PTx1z3/y+i+GD9x3 BGWA== X-Gm-Message-State: ABUngveRpCijuqSJwdFLAX0wRUdsV/uEQKRAtQJ72E4LYQsX1sNG/WDocY+zFXKPtIOkrg== X-Received: by 10.194.9.34 with SMTP id w2mr1049903wja.24.1479286553478; Wed, 16 Nov 2016 00:55:53 -0800 (PST) Received: from t460p.intel ([2a02:c7d:9bd6:b000:f37e:1e07:a7d8:46cd]) by smtp.gmail.com with ESMTPSA id l187sm8885201wml.6.2016.11.16.00.55.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Nov 2016 00:55:53 -0800 (PST) From: Tvrtko Ursulin X-Google-Original-From: Tvrtko Ursulin To: Intel-gfx@lists.freedesktop.org Date: Wed, 16 Nov 2016 08:55:32 +0000 Message-Id: <1479286545-15020-3-git-send-email-tvrtko.ursulin@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1479286545-15020-1-git-send-email-tvrtko.ursulin@linux.intel.com> References: <1479286545-15020-1-git-send-email-tvrtko.ursulin@linux.intel.com> Subject: [Intel-gfx] [PATCH 02/15] drm/i915: Use dev_priv in INTEL_INFO in i915_gem_execbuffer.c X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP From: Tvrtko Ursulin Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_gem_execbuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_gem_execbuffer.c b/drivers/gpu/drm/i915/i915_gem_execbuffer.c index e804cb2fa57e..e4efffe02fa8 100644 --- a/drivers/gpu/drm/i915/i915_gem_execbuffer.c +++ b/drivers/gpu/drm/i915/i915_gem_execbuffer.c @@ -1878,7 +1878,7 @@ i915_gem_execbuffer(struct drm_device *dev, void *data, exec2_list[i].relocs_ptr = exec_list[i].relocs_ptr; exec2_list[i].alignment = exec_list[i].alignment; exec2_list[i].offset = exec_list[i].offset; - if (INTEL_INFO(dev)->gen < 4) + if (INTEL_GEN(to_i915(dev)) < 4) exec2_list[i].flags = EXEC_OBJECT_NEEDS_FENCE; else exec2_list[i].flags = 0;