From patchwork Wed Oct 14 22:01:59 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Mickler X-Patchwork-Id: 53839 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 n9EM2hmh027752 for ; Wed, 14 Oct 2009 22:02:43 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8C82D9EDDD; Wed, 14 Oct 2009 15:02:42 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mx01.d-labs.de (ist.d-labs.de [213.239.218.44]) by gabe.freedesktop.org (Postfix) with ESMTP id 342BD9EB76 for ; Wed, 14 Oct 2009 15:02:39 -0700 (PDT) Received: from schatten.dmk.lab (f053211145.adsl.alicedsl.de [78.53.211.145]) by mx01.d-labs.de (Postfix) with ESMTP id 7E8B17FED1; Thu, 15 Oct 2009 00:02:37 +0200 (CEST) Date: Thu, 15 Oct 2009 00:01:59 +0200 From: Florian Mickler To: Matt Turner Message-ID: <20091015000159.45e46e3d@schatten.dmk.lab> In-Reply-To: <1255459087.4454.135.camel@gaiman.anholt.net> References: <20091013172305.GA2549@x61.home> <20091013105811.140192c0@jbarnes-g45> <1255459087.4454.135.camel@gaiman.anholt.net> X-Mailer: Claws Mail 3.7.2 (GTK+ 2.16.6; x86_64-pc-linux-gnu) Mime-Version: 1.0 Cc: intel-gfx@lists.freedesktop.org Subject: Re: [Intel-gfx] Framebuffer compression with 2.6.32-rc 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 diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index f8ce9a3..b634512 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c @@ -348,6 +348,20 @@ static int i915_ringbuffer_info(struct seq_file *m, void *data) return 0; } +static int i915_fbc_info(struct seq_file *m, void *data) +{ + struct drm_info_node *node = (struct drm_info_node *) m->private; + struct drm_device *dev = node->minor->dev; + drm_i915_private_t *dev_priv = dev->dev_private; + + unsigned int enabled = I915_READ(FBC_STATUS) & FBC_STAT_COMPRESSING; + + seq_printf(m, "Framebuffer compression enabled : %s\n", + enabled ? "yes" : "no"); + + return 0; +} + static int i915_error_state(struct seq_file *m, void *unused) { struct drm_info_node *node = (struct drm_info_node *) m->private; @@ -427,6 +441,7 @@ static struct drm_info_list i915_debugfs_list[] = { {"i915_ringbuffer_info", i915_ringbuffer_info, 0}, {"i915_batchbuffers", i915_batchbuffer_info, 0}, {"i915_error_state", i915_error_state, 0}, + {"i915_fbc", i915_fbc_info, 0}, }; #define I915_DEBUGFS_ENTRIES ARRAY_SIZE(i915_debugfs_list)