Reorder INTEL_XVMC define so that we pick up Option "XvMC"

Otherwise it will remain disabled.

Reported-by: Giacomo Comes <comes@naic.edu>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-09-23 08:56:50 +01:00
parent 92dbedc613
commit c2ca1c5abc
2 changed files with 3 additions and 7 deletions

View File

@ -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. */

View File

@ -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,