diff options
author | Marek Olšák <[email protected]> | 2017-06-07 14:47:13 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-06-12 18:24:37 +0200 |
commit | e8be83f7f8f0b7846adb0b21daae58380f037d2f (patch) | |
tree | 9c6de310861d1d82d70885fd44afdd0fed94dcfc /src/gallium/state_trackers | |
parent | 621a7845299643d12970a53c337adfc37cdbf757 (diff) |
vl,omx,va,vdpau,xvmc: don't set the priv pointer in context_create
Unused and radeonsi ignores it anyway.
Acked-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/omx/vid_dec.c | 2 | ||||
-rw-r--r-- | src/gallium/state_trackers/omx/vid_enc.c | 4 | ||||
-rw-r--r-- | src/gallium/state_trackers/va/context.c | 2 | ||||
-rw-r--r-- | src/gallium/state_trackers/vdpau/device.c | 2 | ||||
-rw-r--r-- | src/gallium/state_trackers/xvmc/context.c | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/src/gallium/state_trackers/omx/vid_dec.c b/src/gallium/state_trackers/omx/vid_dec.c index 9a6efb8e287..313bc0aa8bd 100644 --- a/src/gallium/state_trackers/omx/vid_dec.c +++ b/src/gallium/state_trackers/omx/vid_dec.c @@ -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; diff --git a/src/gallium/state_trackers/omx/vid_enc.c b/src/gallium/state_trackers/omx/vid_enc.c index 7ad251ea69f..1a4fb62d408 100644 --- a/src/gallium/state_trackers/omx/vid_enc.c +++ b/src/gallium/state_trackers/omx/vid_enc.c @@ -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; diff --git a/src/gallium/state_trackers/va/context.c b/src/gallium/state_trackers/va/context.c index ae9154a332a..6e7a58da687 100644 --- a/src/gallium/state_trackers/va/context.c +++ b/src/gallium/state_trackers/va/context.c @@ -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; diff --git a/src/gallium/state_trackers/vdpau/device.c b/src/gallium/state_trackers/vdpau/device.c index eae9f04ee10..c3f156f0bb4 100644 --- a/src/gallium/state_trackers/vdpau/device.c +++ b/src/gallium/state_trackers/vdpau/device.c @@ -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; diff --git a/src/gallium/state_trackers/xvmc/context.c b/src/gallium/state_trackers/xvmc/context.c index c239b3ddd6b..1ecff5e8ac1 100644 --- a/src/gallium/state_trackers/xvmc/context.c +++ b/src/gallium/state_trackers/xvmc/context.c @@ -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); |