vl,omx,va,vdpau,xvmc: don't set the priv pointer in context_create
authorMarek Olšák <marek.olsak@amd.com>
Wed, 7 Jun 2017 12:47:13 +0000 (14:47 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 12 Jun 2017 16:24:37 +0000 (18:24 +0200)
Unused and radeonsi ignores it anyway.

Acked-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/auxiliary/vl/vl_winsys_dri3.c
src/gallium/state_trackers/omx/vid_dec.c
src/gallium/state_trackers/omx/vid_enc.c
src/gallium/state_trackers/va/context.c
src/gallium/state_trackers/vdpau/device.c
src/gallium/state_trackers/xvmc/context.c

index a810dea6c026a6769cac4029e9683c2e9ad8b437..c7c615b395838b1d50697eb95a6785086a2810dc 100644 (file)
@@ -823,7 +823,7 @@ vl_dri3_screen_create(Display *display, int screen)
       goto release_pipe;
 
    scrn->pipe = scrn->base.pscreen->context_create(scrn->base.pscreen,
-                                                   &scrn->base, 0);
+                                                   NULL, 0);
    if (!scrn->pipe)
        goto no_context;
 
index 9a6efb8e2877a08db1dfbfec26a6ffc297424639..313bc0aa8bd0eff808f3d018b11ad1669fb4c606 100644 (file)
@@ -178,7 +178,7 @@ static OMX_ERRORTYPE vid_dec_Constructor(OMX_COMPONENTTYPE *comp, OMX_STRING nam
       return OMX_ErrorInsufficientResources;
 
    screen = priv->screen->pscreen;
-   priv->pipe = screen->context_create(screen, priv->screen, 0);
+   priv->pipe = screen->context_create(screen, NULL, 0);
    if (!priv->pipe)
       return OMX_ErrorInsufficientResources;
 
index 7ad251ea69f744ed53ff07b49b5ceb08d1efa175..1a4fb62d408adafff9109bce83e5999d224bade7 100644 (file)
@@ -179,7 +179,7 @@ static OMX_ERRORTYPE vid_enc_Constructor(OMX_COMPONENTTYPE *comp, OMX_STRING nam
                                 PIPE_VIDEO_ENTRYPOINT_ENCODE, PIPE_VIDEO_CAP_SUPPORTED))
       return OMX_ErrorBadParameter;
 
-   priv->s_pipe = screen->context_create(screen, priv->screen, 0);
+   priv->s_pipe = screen->context_create(screen, NULL, 0);
    if (!priv->s_pipe)
       return OMX_ErrorInsufficientResources;
 
@@ -196,7 +196,7 @@ static OMX_ERRORTYPE vid_enc_Constructor(OMX_COMPONENTTYPE *comp, OMX_STRING nam
       return OMX_ErrorInsufficientResources;
    }
 
-   priv->t_pipe = screen->context_create(screen, priv->screen, 0);
+   priv->t_pipe = screen->context_create(screen, NULL, 0);
    if (!priv->t_pipe)
       return OMX_ErrorInsufficientResources;
 
index ae9154a332a6cf498c30513f8001d9ef87225537..6e7a58da68788173ea128f08c63347e416602971 100644 (file)
@@ -143,7 +143,7 @@ VA_DRIVER_INIT_FUNC(VADriverContextP ctx)
       goto error_screen;
 
    drv->pipe = drv->vscreen->pscreen->context_create(drv->vscreen->pscreen,
-                                                     drv->vscreen, 0);
+                                                     NULL, 0);
    if (!drv->pipe)
       goto error_pipe;
 
index eae9f04ee10c17051a8d421b33da0558a3ddf37d..c3f156f0bb4243501232d9eb8003db309f889042 100644 (file)
@@ -72,7 +72,7 @@ vdp_imp_device_create_x11(Display *display, int screen, VdpDevice *device,
    }
 
    pscreen = dev->vscreen->pscreen;
-   dev->context = pscreen->context_create(pscreen, dev->vscreen, 0);
+   dev->context = pscreen->context_create(pscreen, NULL, 0);
    if (!dev->context) {
       ret = VDP_STATUS_RESOURCES;
       goto no_context;
index c239b3ddd6bfbaad626832e22b765e71a84e2fb9..1ecff5e8ac153c05e9bd42a396803a53a4c742b0 100644 (file)
@@ -239,7 +239,7 @@ Status XvMCCreateContext(Display *dpy, XvPortID port, int surface_type_id,
       return BadAlloc;
    }
 
-   pipe = vscreen->pscreen->context_create(vscreen->pscreen, vscreen, 0);
+   pipe = vscreen->pscreen->context_create(vscreen->pscreen, NULL, 0);
    if (!pipe) {
       XVMC_MSG(XVMC_ERR, "[XvMC] Could not create VL context.\n");
       vscreen->destroy(vscreen);