From c2ca1c5abca687adb08d6e137bc3b70bdecb083d Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 23 Sep 2012 08:56:50 +0100 Subject: [PATCH] Reorder INTEL_XVMC define so that we pick up Option "XvMC" Otherwise it will remain disabled. Reported-by: Giacomo Comes Signed-off-by: Chris Wilson --- src/intel.h | 7 +------ src/intel_options.h | 3 ++- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/intel.h b/src/intel.h index 48ec386a..a5603fee 100644 --- a/src/intel.h +++ b/src/intel.h @@ -68,6 +68,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include "i915_drm.h" #include "intel_driver.h" +#include "intel_options.h" #include "intel_list.h" #include "compat-api.h" @@ -142,12 +143,6 @@ void intel_set_pixmap_bo(PixmapPtr pixmap, dri_bo * bo); #include "common.h" -#ifdef XvMCExtension -#ifdef ENABLE_XVMC -#define INTEL_XVMC 1 -#endif -#endif - #define PITCH_NONE 0 /** enumeration of 3d consumers so some can maintain invariant state. */ diff --git a/src/intel_options.h b/src/intel_options.h index 39c0b73f..3b5262a5 100644 --- a/src/intel_options.h +++ b/src/intel_options.h @@ -23,8 +23,9 @@ enum intel_options { OPTION_PREFER_OVERLAY, OPTION_HOTPLUG, OPTION_RELAXED_FENCING, -#ifdef INTEL_XVMC +#if defined(XvMCExtension) && defined(ENABLE_XVMC) OPTION_XVMC, +#define INTEL_XVMC 1 #endif #ifdef USE_SNA OPTION_THROTTLE,