[g3dvl] remove the unused priv member from pipe_video_context
authorChristian König <deathsimple@vodafone.de>
Fri, 8 Jul 2011 13:07:39 +0000 (15:07 +0200)
committerChristian König <deathsimple@vodafone.de>
Fri, 8 Jul 2011 13:07:39 +0000 (15:07 +0200)
src/gallium/drivers/r300/r300_screen.c
src/gallium/drivers/r600/r600_pipe.c
src/gallium/drivers/softpipe/sp_screen.c
src/gallium/include/pipe/p_screen.h
src/gallium/include/pipe/p_video_context.h
src/gallium/winsys/g3dvl/dri/dri_winsys.c
src/gallium/winsys/g3dvl/xlib/xsp_winsys.c

index 854fc39e0149724efb8d83cedad9f041a7205fcc..141df11ef91ecb3b868a6b32bdff9f1819e5331d 100644 (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);
 
index 9e0b0ea3e4992fb54686a8834c1b3d1ba8d2b5c7..b3264c5a67007bbc170b5b9522998955e50e223e 100644 (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);
 
index 2a5485209d1b9eb1b6b93ba6e433b4bc54376d42..98147cfd3c8c638a02b366cec5206b129ac4665d 100644 (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);
 
index 32869bb71e807acd7234e71018e21f10b81b6cda..28209346c7871775c0a64e96907dc8e26ad8cc73 100644 (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
index 7ea67d3d198a141f38fb8567e476fde3d83f07f6..aa42e8e0884518e8d740f7bc517234e0af579f2f 100644 (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
index 29b7d3ea468598bf294caf6305a796f6eb969126..1d066f826db5feffeebd0e6f30c33d03bd77d2c8 100644 (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;
 
index 5cea6196cf7a0e5b3e07d1c168784e8443575190..0487bd9c560ba5a7c2f6f2bb6b830ea3b1bf927d 100644 (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;