From: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
To: intel-gfx@lists.freedesktop.org
Subject: [RFC PATCH 1/2] xf86-video-intel: Add "ResourceStreamer" option
Date: Tue, 22 Apr 2014 18:16:35 +0300 [thread overview]
Message-ID: <1398179796-5103-2-git-send-email-abdiel.janulgue@linux.intel.com> (raw)
In-Reply-To: <1398179796-5103-1-git-send-email-abdiel.janulgue@linux.intel.com>
Signed-off-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
---
src/intel_options.c | 1 +
src/intel_options.h | 1 +
src/uxa/intel.h | 3 +++
src/uxa/intel_driver.c | 10 +++++++++-
4 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/src/intel_options.c b/src/intel_options.c
index 02a4ae1..cc418d1 100644
--- a/src/intel_options.c
+++ b/src/intel_options.c
@@ -35,6 +35,7 @@ const OptionInfoRec intel_options[] = {
{OPTION_DEBUG_FLUSH_CACHES, "DebugFlushCaches", OPTV_BOOLEAN, {0}, 0},
{OPTION_DEBUG_WAIT, "DebugWait", OPTV_BOOLEAN, {0}, 0},
{OPTION_BUFFER_CACHE, "BufferCache", OPTV_BOOLEAN, {0}, 1},
+ {OPTION_RESOURCESTREAMER, "ResourceStreamer", OPTV_BOOLEAN, {0}, 0},
#endif
{-1, NULL, OPTV_NONE, {0}, 0}
};
diff --git a/src/intel_options.h b/src/intel_options.h
index 77f0c45..4867419 100644
--- a/src/intel_options.h
+++ b/src/intel_options.h
@@ -43,6 +43,7 @@ enum intel_options {
OPTION_DEBUG_FLUSH_CACHES,
OPTION_DEBUG_WAIT,
OPTION_BUFFER_CACHE,
+ OPTION_RESOURCESTREAMER,
#endif
NUM_OPTIONS,
};
diff --git a/src/uxa/intel.h b/src/uxa/intel.h
index 6ac770e..611eeea 100644
--- a/src/uxa/intel.h
+++ b/src/uxa/intel.h
@@ -349,6 +349,9 @@ typedef struct intel_screen_private {
*/
Bool fallback_debug;
unsigned debug_flush;
+
+ dri_bo *hw_bt_pool_bo;
+ Bool use_resource_streamer;
#if HAVE_UDEV
struct udev_monitor *uevent_monitor;
pointer uevent_handler;
diff --git a/src/uxa/intel_driver.c b/src/uxa/intel_driver.c
index 0a4fe2a..5574ffe 100644
--- a/src/uxa/intel_driver.c
+++ b/src/uxa/intel_driver.c
@@ -196,6 +196,15 @@ static Bool I830GetEarlyOptions(ScrnInfoPtr scrn)
intel->fallback_debug = xf86ReturnOptValBool(intel->Options,
OPTION_FALLBACKDEBUG,
FALSE);
+ intel->use_resource_streamer = xf86ReturnOptValBool(intel->Options,
+ OPTION_RESOURCESTREAMER,
+ FALSE);
+ if (intel->use_resource_streamer)
+ xf86DrvMsg(scrn->scrnIndex, X_CONFIG,
+ "Enabling Resource Streamer\n");
+ else
+ xf86DrvMsg(scrn->scrnIndex, X_CONFIG,
+ "Disabling Resource Streamer\n");
intel->debug_flush = 0;
@@ -870,7 +879,6 @@ I830ScreenInit(SCREEN_INIT_ARGS_DECL)
* appropriate.
*/
intel->XvEnabled = TRUE;
-
#ifdef DRI2
if (intel->directRenderingType == DRI_NONE
&& I830DRI2ScreenInit(screen))
--
1.7.9.5
next prev parent reply other threads:[~2014-04-22 15:13 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-22 15:16 [RFC] xf86-video-intel: enable hw-generated binding tables Abdiel Janulgue
2014-04-22 15:16 ` Abdiel Janulgue [this message]
2014-04-22 15:16 ` [RFC PATCH 2/2] xf86-video-intel: Enable hw-generated binding tables for UXA Abdiel Janulgue
2014-04-22 15:23 ` [RFC] xf86-video-intel: enable hw-generated binding tables Chris Wilson
2014-04-22 17:20 ` Daniel Vetter
2014-04-23 11:21 ` Abdiel Janulgue
2014-04-23 16:52 ` Daniel Vetter
2014-04-23 17:50 ` Ville Syrjälä
2014-04-24 6:08 ` Abdiel Janulgue
2014-04-24 6:06 ` Chris Wilson
2014-04-24 8:25 ` Abdiel Janulgue
2014-04-24 10:04 ` Daniel Vetter
2014-04-24 10:17 ` Ville Syrjälä
2014-04-24 11:22 ` Abdiel Janulgue
2014-05-02 18:24 ` Abdiel Janulgue
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1398179796-5103-2-git-send-email-abdiel.janulgue@linux.intel.com \
--to=abdiel.janulgue@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox