summaryrefslogtreecommitdiff
path: root/src/i915_hwmc.c
diff options
context:
space:
mode:
authorZhenyu Wang <zhenyu.z.wang@intel.com>2007-10-23 00:09:06 +0800
committerZhenyu Wang <zhenyu.z.wang@intel.com>2007-10-23 00:09:06 +0800
commitfc9368ce7dacd52ef222559d20188ddcf2a85df5 (patch)
tree863edd6a7cdd02df46c3ed01b9bb84bcb4e6f20a /src/i915_hwmc.c
parentcc892d1ba1d87d08bdd04f857efc6b8f64620018 (diff)
split xvmc user lib chipset drivers
Diffstat (limited to 'src/i915_hwmc.c')
-rw-r--r--src/i915_hwmc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/i915_hwmc.c b/src/i915_hwmc.c
index ed5e7bc0..e2c91304 100644
--- a/src/i915_hwmc.c
+++ b/src/i915_hwmc.c
@@ -56,7 +56,6 @@
#endif
#define _INTEL_XVMC_SERVER_
-#include "i830_hwmc.h"
#include "i915_hwmc.h"
#define I915_XVMC_MAX_BUFFERS 2
@@ -531,6 +530,7 @@ static int I915XvMCCreateContext (ScrnInfoPtr pScrn, XvMCContextPtr pContext,
return BadAlloc;
}
+ contextRec->comm.type = xvmc_driver->flag;
contextRec->ctxno = i;
contextRec->sis.handle = ctxpriv->sis_handle;
contextRec->sis.offset = ctxpriv->mcStaticIndirectState->offset;
@@ -892,7 +892,7 @@ static void i915_xvmc_fini(ScrnInfoPtr pScrn)
struct intel_xvmc_driver i915_xvmc_driver = {
.name = "i915_xvmc",
.adaptor = &pAdapt,
- .flag = XVMC_DRIVER_MPEG2_MC,
+ .flag = XVMC_I915_MPEG2_MC,
.init = i915_xvmc_init,
.fini = i915_xvmc_fini,
.putimage_size = i915_xvmc_putimage_size,