diff options
author | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2007-11-14 00:11:20 +0800 |
---|---|---|
committer | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2007-11-14 00:11:20 +0800 |
commit | e8db8584ae4860aa991c916126335b287a972d5b (patch) | |
tree | 2edf181a20fb5525512e34a2b97d1ce045074c4b /src/xvmc/intel_xvmc.c | |
parent | 11c0e0dbef42f1ae77a77d534870d3e9821fb017 (diff) |
xvmc: attempt to move batch buffer code out of i915 private
Diffstat (limited to 'src/xvmc/intel_xvmc.c')
-rw-r--r-- | src/xvmc/intel_xvmc.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/xvmc/intel_xvmc.c b/src/xvmc/intel_xvmc.c index 804ce491..6a99d6d4 100644 --- a/src/xvmc/intel_xvmc.c +++ b/src/xvmc/intel_xvmc.c @@ -141,6 +141,9 @@ Status XvMCCreateContext(Display *display, XvPortID port, return BadValue; } xvmc_driver->sarea_size = comm->sarea_size; + xvmc_driver->batchbuffer.handle = comm->batchbuffer.handle; + xvmc_driver->batchbuffer.offset = comm->batchbuffer.offset; + xvmc_driver->batchbuffer.size = comm->batchbuffer.size; ret = uniDRIQueryDirectRenderingCapable(display, screen, &isCapable); @@ -204,8 +207,7 @@ Status XvMCCreateContext(Display *display, XvPortID port, return ret; } - /* FIXME batch buffer */ - //intelInitBatchBuffer(xvmc_driver); + intelInitBatchBuffer(); return Success; } @@ -675,7 +677,7 @@ Status XvMCRenderSurface(Display *display, XvMCContext *context, } /* Field Picture */ } - intelFlushBatch(pI915XvMC, TRUE); + intelFlushBatch(TRUE); pI915XvMC->last_render = pI915XvMC->alloc.irq_emitted; privTarget->last_render = pI915XvMC->last_render; |