diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2010-03-09 16:20:33 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2010-04-08 11:22:23 +0200 |
commit | 79fe4caafd21f6ca262901eac4a66ce5a4eaf548 (patch) | |
tree | fc6471805ce7d5b3c953b01d36ce69b33ebcfa2b /src/xvmc/i915_xvmc.c | |
parent | 00b63ecb192b7eafea9482bf5c5c5d442ce2c6fc (diff) |
XvMC: dynamically allocate adaptor
And kill all the static structures. This way it's clearer what's
common and what's specific. And the code is shorter too.
Also clean up src/i830_hwmc.c - kill the nonstandard surface types
for i915 and the associated code.
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 | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/xvmc/i915_xvmc.c b/src/xvmc/i915_xvmc.c index 2b110be1..638998cf 100644 --- a/src/xvmc/i915_xvmc.c +++ b/src/xvmc/i915_xvmc.c @@ -1137,12 +1137,6 @@ static int i915_xvmc_mc_render_surface(Display * display, XvMCContext * context, if (!i915_xvmc_alloc_render_state_buffers(pI915XvMC)) return BadAlloc; - if (context->surface_type_id >= SURFACE_TYPE_MAX) { - XVMC_ERR("Unsupprted surface_type_id %d.", - context->surface_type_id); - return BadValue; - } - intel_ctx = intel_xvmc_find_context(context->context_id); if (!intel_ctx) { XVMC_ERR("Can't find intel xvmc context\n"); |