From mboxrd@z Thu Jan 1 00:00:00 1970 From: Abdiel Janulgue Subject: [RFC PATCH 1/2] xf86-video-intel: Add "ResourceStreamer" option Date: Tue, 22 Apr 2014 18:16:35 +0300 Message-ID: <1398179796-5103-2-git-send-email-abdiel.janulgue@linux.intel.com> References: <1398179796-5103-1-git-send-email-abdiel.janulgue@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTP id 251C66E8DD for ; Tue, 22 Apr 2014 08:13:11 -0700 (PDT) In-Reply-To: <1398179796-5103-1-git-send-email-abdiel.janulgue@linux.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org Signed-off-by: Abdiel Janulgue --- 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