diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2010-03-10 18:59:29 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2010-04-08 11:22:24 +0200 |
commit | 8a31dacb067f813a5b0eafc16d265434e48ec5fc (patch) | |
tree | 2ae9ef895de3cdfd686b89465e56dd9fc5b6a6cf /src/xvmc/i915_xvmc.c | |
parent | 16e5edde4d97e1818e0dbfbc165bd8199f697336 (diff) |
libXvMC: derive driver context from struct intel_xvmc_context
... by putting struct intel_xvmc_surface at the beginning. Also kill
the common context handling code and simply keep a pointer in the
surface private to the context.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'src/xvmc/i915_xvmc.c')
-rw-r--r-- | src/xvmc/i915_xvmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xvmc/i915_xvmc.c b/src/xvmc/i915_xvmc.c index 55d81960..45be718e 100644 --- a/src/xvmc/i915_xvmc.c +++ b/src/xvmc/i915_xvmc.c @@ -1103,7 +1103,7 @@ static int i915_xvmc_mc_render_surface(Display * display, XvMCContext * context, if (!i915_xvmc_alloc_render_state_buffers(pI915XvMC)) return BadAlloc; - intel_ctx = intel_xvmc_find_context(context->context_id); + intel_ctx = context->privData; if (!intel_ctx) { XVMC_ERR("Can't find intel xvmc context\n"); return BadValue; |