return VA_STATUS_SUCCESS;
}
-static VAStatus
-surface_allocate(VADriverContextP ctx, vlVaSurface *surface,
- struct pipe_video_buffer *templat)
+VAStatus
+vlVaHandleSurfaceAllocate(VADriverContextP ctx, vlVaSurface *surface,
+ struct pipe_video_buffer *templat)
{
vlVaDriver *drv;
struct pipe_surface **surfaces;
!(memory_attibute->flags & VA_SURFACE_EXTBUF_DESC_ENABLE_TILING))
templat.bind = PIPE_BIND_LINEAR | PIPE_BIND_SHARED;
- vaStatus = surface_allocate(ctx, surf, &templat);
+ vaStatus = vlVaHandleSurfaceAllocate(ctx, surf, &templat);
if (vaStatus != VA_STATUS_SUCCESS)
goto free_surf;
break;
// internal functions
VAStatus vlVaHandleVAProcPipelineParameterBufferType(vlVaDriver *drv, vlVaContext *context, vlVaBuffer *buf);
+VAStatus vlVaHandleSurfaceAllocate(VADriverContextP ctx, vlVaSurface *surface, struct pipe_video_buffer *templat);
void vlVaGetReferenceFrame(vlVaDriver *drv, VASurfaceID surface_id, struct pipe_video_buffer **ref_frame);
void vlVaHandlePictureParameterBufferMPEG12(vlVaDriver *drv, vlVaContext *context, vlVaBuffer *buf);
void vlVaHandleIQMatrixBufferMPEG12(vlVaContext *context, vlVaBuffer *buf);