xf86-video-intel: src/intel.h src/intel_options.h
Chris Wilson
ickle at kemper.freedesktop.org
Sun Sep 23 00:59:48 PDT 2012
src/intel.h | 7 +------
src/intel_options.h | 3 ++-
2 files changed, 3 insertions(+), 7 deletions(-)
New commits:
commit c2ca1c5abca687adb08d6e137bc3b70bdecb083d
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Sun Sep 23 08:56:50 2012 +0100
Reorder INTEL_XVMC define so that we pick up Option "XvMC"
Otherwise it will remain disabled.
Reported-by: Giacomo Comes <comes at naic.edu>
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
diff --git a/src/intel.h b/src/intel.h
index 48ec386..a5603fe 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 39c0b73..3b5262a 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,
More information about the xorg-commit
mailing list