}
static struct pipe_video_context *
-r300_video_create(struct pipe_screen *screen, struct pipe_context *pipe, void *priv)
+r300_video_create(struct pipe_screen *screen, struct pipe_context *pipe)
{
assert(screen);
}
static struct pipe_video_context *
-r600_video_create(struct pipe_screen *screen, struct pipe_context *pipe, void *priv)
+r600_video_create(struct pipe_screen *screen, struct pipe_context *pipe)
{
assert(screen && pipe);
}
static struct pipe_video_context *
-sp_video_create(struct pipe_screen *screen, struct pipe_context *context, void *priv)
+sp_video_create(struct pipe_screen *screen, struct pipe_context *context)
{
assert(screen);
struct pipe_context * (*context_create)( struct pipe_screen *, void *priv );
struct pipe_video_context * (*video_context_create)( struct pipe_screen *screen,
- struct pipe_context *context,
- void *priv );
+ struct pipe_context *context );
/**
* Check if the given pipe_format is supported as a texture or
{
struct pipe_screen *screen;
- void *priv; /**< context private data (for DRI for example) */
-
/**
* destroy context, all objects created from this context
* (buffers, decoders, compositors etc...) must be freed before calling this
goto no_pipe;
}
- vl_dri_ctx->base.vpipe = vscreen->pscreen->video_context_create(vscreen->pscreen,
- vl_dri_ctx->base.pipe,
- vl_dri_ctx);
+ vl_dri_ctx->base.vpipe = vscreen->pscreen->video_context_create(vscreen->pscreen, vl_dri_ctx->base.pipe);
if (!vl_dri_ctx->base.vpipe)
goto no_pipe;
- vl_dri_ctx->base.vpipe->priv = vl_dri_ctx;
vl_dri_ctx->base.vscreen = vscreen;
vl_dri_ctx->fd = vl_dri_scrn->dri_screen->fd;
if (!pipe)
return NULL;
- vpipe = vscreen->pscreen->video_context_create(vscreen->pscreen, pipe, NULL);
+ vpipe = vscreen->pscreen->video_context_create(vscreen->pscreen, pipe);
if (!vpipe) {
pipe->destroy(pipe);
return NULL;
return NULL;
}
- vpipe->priv = vctx;
vctx->vpipe = vpipe;
vctx->vscreen = vscreen;