From 3bb33c911b895819fde5e179b2466c08f88164cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6nig?= Date: Fri, 8 Jul 2011 15:07:39 +0200 Subject: [g3dvl] remove the unused priv member from pipe_video_context --- src/gallium/drivers/r300/r300_screen.c | 2 +- src/gallium/drivers/r600/r600_pipe.c | 2 +- src/gallium/drivers/softpipe/sp_screen.c | 2 +- src/gallium/include/pipe/p_screen.h | 3 +-- src/gallium/include/pipe/p_video_context.h | 2 -- src/gallium/winsys/g3dvl/dri/dri_winsys.c | 5 +---- src/gallium/winsys/g3dvl/xlib/xsp_winsys.c | 3 +-- 7 files changed, 6 insertions(+), 13 deletions(-) (limited to 'src/gallium') diff --git a/src/gallium/drivers/r300/r300_screen.c b/src/gallium/drivers/r300/r300_screen.c index 854fc39..141df11 100644 --- a/src/gallium/drivers/r300/r300_screen.c +++ b/src/gallium/drivers/r300/r300_screen.c @@ -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); diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c index 9e0b0ea..b3264c5 100644 --- a/src/gallium/drivers/r600/r600_pipe.c +++ b/src/gallium/drivers/r600/r600_pipe.c @@ -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); diff --git a/src/gallium/drivers/softpipe/sp_screen.c b/src/gallium/drivers/softpipe/sp_screen.c index 2a54852..98147cf 100644 --- a/src/gallium/drivers/softpipe/sp_screen.c +++ b/src/gallium/drivers/softpipe/sp_screen.c @@ -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); diff --git a/src/gallium/include/pipe/p_screen.h b/src/gallium/include/pipe/p_screen.h index 32869bb..2820934 100644 --- a/src/gallium/include/pipe/p_screen.h +++ b/src/gallium/include/pipe/p_screen.h @@ -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 diff --git a/src/gallium/include/pipe/p_video_context.h b/src/gallium/include/pipe/p_video_context.h index 7ea67d3..aa42e8e 100644 --- a/src/gallium/include/pipe/p_video_context.h +++ b/src/gallium/include/pipe/p_video_context.h @@ -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 diff --git a/src/gallium/winsys/g3dvl/dri/dri_winsys.c b/src/gallium/winsys/g3dvl/dri/dri_winsys.c index 29b7d3e..1d066f8 100644 --- a/src/gallium/winsys/g3dvl/dri/dri_winsys.c +++ b/src/gallium/winsys/g3dvl/dri/dri_winsys.c @@ -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; diff --git a/src/gallium/winsys/g3dvl/xlib/xsp_winsys.c b/src/gallium/winsys/g3dvl/xlib/xsp_winsys.c index 5cea619..0487bd9 100644 --- a/src/gallium/winsys/g3dvl/xlib/xsp_winsys.c +++ b/src/gallium/winsys/g3dvl/xlib/xsp_winsys.c @@ -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; -- cgit v1.1