@@ -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}
};
@@ -43,6 +43,7 @@ enum intel_options {
OPTION_DEBUG_FLUSH_CACHES,
OPTION_DEBUG_WAIT,
OPTION_BUFFER_CACHE,
+ OPTION_RESOURCESTREAMER,
#endif
NUM_OPTIONS,
};
@@ -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;
@@ -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))
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(-)