From patchwork Tue Feb 1 18:16:22 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Widawsky X-Patchwork-Id: 523621 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p11ILMvd002052 for ; Tue, 1 Feb 2011 18:21:42 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4B3429E938 for ; Tue, 1 Feb 2011 10:21:22 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-yw0-f49.google.com (mail-yw0-f49.google.com [209.85.213.49]) by gabe.freedesktop.org (Postfix) with ESMTP id 417499E878 for ; Tue, 1 Feb 2011 10:18:01 -0800 (PST) Received: by ywf7 with SMTP id 7so2693908ywf.36 for ; Tue, 01 Feb 2011 10:18:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=w5spHUlDkyeMq6GecNo/gPZjLv6xOQo0WYxwRwMORe0=; b=lMysAyrLmq6gegtL4ZCrSAwk7javmNjlLBR9MH2bSY9+br1K39JgTAChZhAlLAjmX8 O7By7MFK4ZZPmxAYm/PQ6hfE7E+BigXkY/ahjNoIengiLnNMp3jWxbHdJDooR9AmF5zs Ha/ShoFLG7TpJQ5odXNRTRvf1gXbTvrEJ2LgM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=x3VEMvVPX7GLhfI0aSCwjji4ntV0KLiRGgPLipfUXULP5g/e9q0xBUBc3fTPybzM8B tq/Zo9YFXTXc3Nkl9yd3JAbmp8R5wPUtz/mw2f/OcZ91IBPeEFmUZVCggRhhssH2p+yM o3XeqOexRZ4af9ENIrxrSiZduTKbWIggC68Tk= Received: by 10.90.89.11 with SMTP id m11mr11171113agb.18.1296584280556; Tue, 01 Feb 2011 10:18:00 -0800 (PST) Received: from localhost.localdomain ([67.208.96.87]) by mx.google.com with ESMTPS id f10sm27543608anh.5.2011.02.01.10.17.58 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 01 Feb 2011 10:17:59 -0800 (PST) From: Ben Widawsky To: intel-gfx@lists.freedesktop.org Date: Tue, 1 Feb 2011 10:16:22 -0800 Message-Id: <1296584186-20446-6-git-send-email-bwidawsk@gmail.com> X-Mailer: git-send-email 1.7.3.4 In-Reply-To: <1296584186-20446-1-git-send-email-bwidawsk@gmail.com> References: <1296584186-20446-1-git-send-email-bwidawsk@gmail.com> Subject: [Intel-gfx] [PATCH 5/9] drm/i915/context: switch context support query to variable X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.11 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+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 01 Feb 2011 18:21:42 +0000 (UTC) diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index b0acc0d..9d055ba 100644 --- a/drivers/gpu/drm/i915/i915_dma.c +++ b/drivers/gpu/drm/i915/i915_dma.c @@ -772,7 +772,7 @@ static int i915_getparam(struct drm_device *dev, void *data, value = INTEL_INFO(dev)->gen >= 4; break; case I915_PARAM_HAS_CONTEXTS: - value = HAS_HW_CONTEXTS(dev); + value = dev_priv->ctx_disable ? 0 : 1; break; case I915_PARAM_HAS_PPGTT: value = HAS_PPGTT(dev);