diff options
author | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2007-09-26 14:01:57 +0800 |
---|---|---|
committer | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2007-09-26 14:01:57 +0800 |
commit | b10a9668dc50d10489b2ae531d89c8ab7c408170 (patch) | |
tree | b3f9af258dfdc170325cec2f502bf2c43f3fb5a3 /src | |
parent | f12eaaf385e7a0b85524588a5d865d1cc3f1a0cf (diff) |
fix i915 xvmc devPrivate reference
Diffstat (limited to 'src')
-rw-r--r-- | src/i830.h | 6 | ||||
-rw-r--r-- | src/i915_hwmc.c | 15 |
2 files changed, 10 insertions, 11 deletions
@@ -319,12 +319,12 @@ typedef struct _I830Rec { /* For Xvideo */ i830_memory *overlay_regs; #endif - +#ifdef XvMCExtension /* For XvMC */ - void *xvmc; Bool XvMCEnabled; Bool IsXvMCSurface; - +#endif + XF86ModReqInfo shadowReq; /* to test for later libshadow */ Rotation rotation; void (*PointerMoved)(int, int, int); diff --git a/src/i915_hwmc.c b/src/i915_hwmc.c index 32a08795..2869aaa1 100644 --- a/src/i915_hwmc.c +++ b/src/i915_hwmc.c @@ -458,7 +458,7 @@ static int I915XvMCCreateContext (ScrnInfoPtr pScrn, XvMCContextPtr pContext, DRIInfoPtr pDRIInfo = pI830->pDRIInfo; I830DRIPtr pI830DRI = pDRIInfo->devPrivate; I915XvMCCreateContextRec *contextRec = NULL; - I915XvMCPtr pXvMC = pI830->xvmc; + I915XvMCPtr pXvMC = (I915XvMCPtr)xvmc_driver->devPrivate; I915XvMCContextPriv *ctxpriv = NULL; int i; @@ -569,7 +569,7 @@ static int I915XvMCCreateSurface(ScrnInfoPtr pScrn, XvMCSurfacePtr pSurf, int *num_priv, long **priv ) { I830Ptr pI830 = I830PTR(pScrn); - I915XvMCPtr pXvMC = pI830->xvmc; + I915XvMCPtr pXvMC = (I915XvMCPtr)xvmc_driver->devPrivate; I915XvMCSurfacePriv *sfpriv = NULL; I915XvMCCreateSurfaceRec *surfaceRec = NULL; XvMCContextPtr ctx = NULL; @@ -663,7 +663,7 @@ static int I915XvMCCreateSubpicture (ScrnInfoPtr pScrn, XvMCSubpicturePtr pSubp, int *num_priv, long **priv ) { I830Ptr pI830 = I830PTR(pScrn); - I915XvMCPtr pXvMC = pI830->xvmc; + I915XvMCPtr pXvMC = (I915XvMCPtr)xvmc_driver->devPrivate; I915XvMCSurfacePriv *sfpriv = NULL; I915XvMCCreateSurfaceRec *surfaceRec = NULL; XvMCContextPtr ctx = NULL; @@ -749,8 +749,7 @@ static int I915XvMCCreateSubpicture (ScrnInfoPtr pScrn, XvMCSubpicturePtr pSubp, static void I915XvMCDestroyContext (ScrnInfoPtr pScrn, XvMCContextPtr pContext) { - I830Ptr pI830 = I830PTR(pScrn); - I915XvMCPtr pXvMC = pI830->xvmc; + I915XvMCPtr pXvMC = (I915XvMCPtr)xvmc_driver->devPrivate; int i; for (i = 0; i < I915_XVMC_MAX_CONTEXTS; i++) { @@ -771,7 +770,7 @@ static void I915XvMCDestroyContext (ScrnInfoPtr pScrn, XvMCContextPtr pContext) static void I915XvMCDestroySurface (ScrnInfoPtr pScrn, XvMCSurfacePtr pSurf) { I830Ptr pI830 = I830PTR(pScrn); - I915XvMCPtr pXvMC = pI830->xvmc; + I915XvMCPtr pXvMC = (I915XvMCPtr)xvmc_driver->devPrivate; int i; for (i = 0; i < I915_XVMC_MAX_SURFACES; i++) { @@ -792,7 +791,7 @@ static void I915XvMCDestroySurface (ScrnInfoPtr pScrn, XvMCSurfacePtr pSurf) static void I915XvMCDestroySubpicture (ScrnInfoPtr pScrn, XvMCSubpicturePtr pSubp) { I830Ptr pI830 = I830PTR(pScrn); - I915XvMCPtr pXvMC = pI830->xvmc; + I915XvMCPtr pXvMC = (I915XvMCPtr)xvmc_driver->devPrivate; int i; for (i = 0; i < I915_XVMC_MAX_SURFACES; i++) { @@ -818,7 +817,7 @@ static int I915XvMCPutImage(ScrnInfoPtr pScrn, short src_x, short src_y, DrawablePtr pDraw) { I830Ptr pI830 = I830PTR(pScrn); - I915XvMCPtr pXvMC = pI830->xvmc; + I915XvMCPtr pXvMC = (I915XvMCPtr)xvmc_driver->devPrivate; I915XvMCCommandBuffer *i915XvMCData = (I915XvMCCommandBuffer *)buf; int ret; |