From 676028ec0cbd4fadded92feefc8371e075abcc12 Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Wed, 10 Mar 2010 19:23:06 +0100 Subject: libXvMC: unify CreateSurface Simply store the desired bo size in intel_xvmc_context and initialize it in the driver's create_context function. Signed-off-by: Daniel Vetter --- src/xvmc/intel_xvmc.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/xvmc/intel_xvmc.h') diff --git a/src/xvmc/intel_xvmc.h b/src/xvmc/intel_xvmc.h index 684f9314..9aa55487 100644 --- a/src/xvmc/intel_xvmc.h +++ b/src/xvmc/intel_xvmc.h @@ -104,6 +104,7 @@ extern Status _xvmc_destroy_subpicture(Display * dpy, struct intel_xvmc_context { struct intel_xvmc_hw_context *hw; + uint32_t surface_bo_size; drm_context_t hw_context; /* context id to kernel drm */ }; typedef struct intel_xvmc_context *intel_xvmc_context_ptr; @@ -170,10 +171,6 @@ typedef struct _intel_xvmc_driver { Status(*destroy_context) (Display * display, XvMCContext * context); - Status(*create_surface) (Display * display, XvMCContext * context, - XvMCSurface * surface, int priv_count, - CARD32 * priv_data); - Status(*render_surface) (Display * display, XvMCContext * context, unsigned int picture_structure, XvMCSurface * target_surface, -- cgit v1.2.3