[g3dvl] remove the unused priv member from pipe_video_context

This commit is contained in:
Christian König 2011-07-08 15:07:39 +02:00
parent bd5fd67a3e
commit 3bb33c911b
7 changed files with 6 additions and 13 deletions

View file

@ -426,7 +426,7 @@ static boolean r300_is_format_supported(struct pipe_screen* screen,
}
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);

View file

@ -302,7 +302,7 @@ static struct pipe_context *r600_create_context(struct pipe_screen *screen, void
}
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);

View file

@ -301,7 +301,7 @@ softpipe_flush_frontbuffer(struct pipe_screen *_screen,
}
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);

View file

@ -101,8 +101,7 @@ struct pipe_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

View file

@ -47,8 +47,6 @@ struct pipe_video_context
{
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

View file

@ -256,14 +256,11 @@ vl_video_create(struct vl_screen *vscreen)
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;

View file

@ -183,7 +183,7 @@ vl_video_create(struct vl_screen *vscreen)
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;
@ -196,7 +196,6 @@ vl_video_create(struct vl_screen *vscreen)
return NULL;
}
vpipe->priv = vctx;
vctx->vpipe = vpipe;
vctx->vscreen = vscreen;