diff options
author | Timothy Arceri <[email protected]> | 2017-03-05 12:12:30 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-03-07 08:52:38 +1100 |
commit | ba72554f3e576c1674d52ab16d8d2edff9398b71 (patch) | |
tree | 317c80f33ea1edcf238d3545ff1a6104a7d55fc8 /src/gallium/state_trackers/vdpau | |
parent | be188289e1bf0e259c91a751c405d54bb99bc5d4 (diff) |
gallium/util: replace pipe_mutex_lock() with mtx_lock()
replace pipe_mutex_lock() was made unnecessary with fd33a6bcd7f12.
Replaced using:
find ./src -type f -exec sed -i -- \
's:pipe_mutex_lock(\([^)]*\)):mtx_lock(\&\1):g' {} \;
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/vdpau')
-rw-r--r-- | src/gallium/state_trackers/vdpau/bitmap.c | 8 | ||||
-rw-r--r-- | src/gallium/state_trackers/vdpau/decode.c | 8 | ||||
-rw-r--r-- | src/gallium/state_trackers/vdpau/htab.c | 10 | ||||
-rw-r--r-- | src/gallium/state_trackers/vdpau/mixer.c | 12 | ||||
-rw-r--r-- | src/gallium/state_trackers/vdpau/output.c | 20 | ||||
-rw-r--r-- | src/gallium/state_trackers/vdpau/presentation.c | 16 | ||||
-rw-r--r-- | src/gallium/state_trackers/vdpau/query.c | 18 | ||||
-rw-r--r-- | src/gallium/state_trackers/vdpau/surface.c | 12 |
8 files changed, 52 insertions, 52 deletions
diff --git a/src/gallium/state_trackers/vdpau/bitmap.c b/src/gallium/state_trackers/vdpau/bitmap.c index d9ec60d20ad..14f6c36c6cc 100644 --- a/src/gallium/state_trackers/vdpau/bitmap.c +++ b/src/gallium/state_trackers/vdpau/bitmap.c @@ -79,7 +79,7 @@ vlVdpBitmapSurfaceCreate(VdpDevice device, res_tmpl.bind = PIPE_BIND_SAMPLER_VIEW | PIPE_BIND_RENDER_TARGET; res_tmpl.usage = frequently_accessed ? PIPE_USAGE_DYNAMIC : PIPE_USAGE_DEFAULT; - pipe_mutex_lock(dev->mutex); + mtx_lock(&dev->mutex); if (!CheckSurfaceParams(pipe->screen, &res_tmpl)) { ret = VDP_STATUS_RESOURCES; @@ -106,7 +106,7 @@ vlVdpBitmapSurfaceCreate(VdpDevice device, *surface = vlAddDataHTAB(vlsurface); if (*surface == 0) { - pipe_mutex_lock(dev->mutex); + mtx_lock(&dev->mutex); ret = VDP_STATUS_ERROR; goto err_sampler; } @@ -134,7 +134,7 @@ vlVdpBitmapSurfaceDestroy(VdpBitmapSurface surface) if (!vlsurface) return VDP_STATUS_INVALID_HANDLE; - pipe_mutex_lock(vlsurface->device->mutex); + mtx_lock(&vlsurface->device->mutex); pipe_sampler_view_reference(&vlsurface->sampler_view, NULL); pipe_mutex_unlock(vlsurface->device->mutex); @@ -196,7 +196,7 @@ vlVdpBitmapSurfacePutBitsNative(VdpBitmapSurface surface, pipe = vlsurface->device->context; - pipe_mutex_lock(vlsurface->device->mutex); + mtx_lock(&vlsurface->device->mutex); dst_box = RectToPipeBox(destination_rect, vlsurface->sampler_view->texture); pipe->texture_subdata(pipe, vlsurface->sampler_view->texture, 0, diff --git a/src/gallium/state_trackers/vdpau/decode.c b/src/gallium/state_trackers/vdpau/decode.c index 387371b29ab..0f8b8ff606e 100644 --- a/src/gallium/state_trackers/vdpau/decode.c +++ b/src/gallium/state_trackers/vdpau/decode.c @@ -71,7 +71,7 @@ vlVdpDecoderCreate(VdpDevice device, pipe = dev->context; screen = dev->vscreen->pscreen; - pipe_mutex_lock(dev->mutex); + mtx_lock(&dev->mutex); supported = screen->get_video_param ( @@ -163,7 +163,7 @@ vlVdpDecoderDestroy(VdpDecoder decoder) if (!vldecoder) return VDP_STATUS_INVALID_HANDLE; - pipe_mutex_lock(vldecoder->mutex); + mtx_lock(&vldecoder->mutex); vldecoder->decoder->destroy(vldecoder->decoder); pipe_mutex_unlock(vldecoder->mutex); mtx_destroy(&vldecoder->mutex); @@ -614,7 +614,7 @@ vlVdpDecoderRender(VdpDecoder decoder, dec->profile, PIPE_VIDEO_ENTRYPOINT_BITSTREAM) || !buffer_support[vlsurf->video_buffer->interlaced]) { - pipe_mutex_lock(vlsurf->device->mutex); + mtx_lock(&vlsurf->device->mutex); /* destroy the old one */ if (vlsurf->video_buffer) @@ -674,7 +674,7 @@ vlVdpDecoderRender(VdpDecoder decoder, if (ret != VDP_STATUS_OK) return ret; - pipe_mutex_lock(vldecoder->mutex); + mtx_lock(&vldecoder->mutex); dec->begin_frame(dec, vlsurf->video_buffer, &desc.base); dec->decode_bitstream(dec, vlsurf->video_buffer, &desc.base, bitstream_buffer_count, buffers, sizes); dec->end_frame(dec, vlsurf->video_buffer, &desc.base); diff --git a/src/gallium/state_trackers/vdpau/htab.c b/src/gallium/state_trackers/vdpau/htab.c index 277ea0cfc01..f938a19547e 100644 --- a/src/gallium/state_trackers/vdpau/htab.c +++ b/src/gallium/state_trackers/vdpau/htab.c @@ -38,7 +38,7 @@ boolean vlCreateHTAB(void) /* Make sure handle table handles match VDPAU handles. */ assert(sizeof(unsigned) <= sizeof(vlHandle)); - pipe_mutex_lock(htab_lock); + mtx_lock(&htab_lock); if (!htab) htab = handle_table_create(); ret = htab != NULL; @@ -48,7 +48,7 @@ boolean vlCreateHTAB(void) void vlDestroyHTAB(void) { - pipe_mutex_lock(htab_lock); + mtx_lock(&htab_lock); if (htab && !handle_table_get_first_handle(htab)) { handle_table_destroy(htab); htab = NULL; @@ -61,7 +61,7 @@ vlHandle vlAddDataHTAB(void *data) vlHandle handle = 0; assert(data); - pipe_mutex_lock(htab_lock); + mtx_lock(&htab_lock); if (htab) handle = handle_table_add(htab, data); pipe_mutex_unlock(htab_lock); @@ -73,7 +73,7 @@ void* vlGetDataHTAB(vlHandle handle) void *data = NULL; assert(handle); - pipe_mutex_lock(htab_lock); + mtx_lock(&htab_lock); if (htab) data = handle_table_get(htab, handle); pipe_mutex_unlock(htab_lock); @@ -82,7 +82,7 @@ void* vlGetDataHTAB(vlHandle handle) void vlRemoveDataHTAB(vlHandle handle) { - pipe_mutex_lock(htab_lock); + mtx_lock(&htab_lock); if (htab) handle_table_remove(htab, handle); pipe_mutex_unlock(htab_lock); diff --git a/src/gallium/state_trackers/vdpau/mixer.c b/src/gallium/state_trackers/vdpau/mixer.c index 37a6fcd91ce..a1c0377ec38 100644 --- a/src/gallium/state_trackers/vdpau/mixer.c +++ b/src/gallium/state_trackers/vdpau/mixer.c @@ -63,7 +63,7 @@ vlVdpVideoMixerCreate(VdpDevice device, DeviceReference(&vmixer->device, dev); - pipe_mutex_lock(dev->mutex); + mtx_lock(&dev->mutex); if (!vl_compositor_init_state(&vmixer->cstate, dev->context)) { ret = VDP_STATUS_ERROR; @@ -191,7 +191,7 @@ vlVdpVideoMixerDestroy(VdpVideoMixer mixer) if (!vmixer) return VDP_STATUS_INVALID_HANDLE; - pipe_mutex_lock(vmixer->device->mutex); + mtx_lock(&vmixer->device->mutex); vlRemoveDataHTAB(mixer); @@ -290,7 +290,7 @@ VdpStatus vlVdpVideoMixerRender(VdpVideoMixer mixer, return VDP_STATUS_INVALID_HANDLE; } - pipe_mutex_lock(vmixer->device->mutex); + mtx_lock(&vmixer->device->mutex); vl_compositor_clear_layers(&vmixer->cstate); @@ -658,7 +658,7 @@ vlVdpVideoMixerSetFeatureEnables(VdpVideoMixer mixer, if (!vmixer) return VDP_STATUS_INVALID_HANDLE; - pipe_mutex_lock(vmixer->device->mutex); + mtx_lock(&vmixer->device->mutex); for (i = 0; i < feature_count; ++i) { switch (features[i]) { /* they are valid, but we doesn't support them */ @@ -796,7 +796,7 @@ vlVdpVideoMixerSetAttributeValues(VdpVideoMixer mixer, if (!vmixer) return VDP_STATUS_INVALID_HANDLE; - pipe_mutex_lock(vmixer->device->mutex); + mtx_lock(&vmixer->device->mutex); for (i = 0; i < attribute_count; ++i) { switch (attributes[i]) { case VDP_VIDEO_MIXER_ATTRIBUTE_BACKGROUND_COLOR: @@ -955,7 +955,7 @@ vlVdpVideoMixerGetAttributeValues(VdpVideoMixer mixer, if (!vmixer) return VDP_STATUS_INVALID_HANDLE; - pipe_mutex_lock(vmixer->device->mutex); + mtx_lock(&vmixer->device->mutex); for (i = 0; i < attribute_count; ++i) { switch (attributes[i]) { case VDP_VIDEO_MIXER_ATTRIBUTE_BACKGROUND_COLOR: diff --git a/src/gallium/state_trackers/vdpau/output.c b/src/gallium/state_trackers/vdpau/output.c index 650628014bd..5836395bacc 100644 --- a/src/gallium/state_trackers/vdpau/output.c +++ b/src/gallium/state_trackers/vdpau/output.c @@ -92,7 +92,7 @@ vlVdpOutputSurfaceCreate(VdpDevice device, PIPE_BIND_SHARED | PIPE_BIND_SCANOUT; res_tmpl.usage = PIPE_USAGE_DEFAULT; - pipe_mutex_lock(dev->mutex); + mtx_lock(&dev->mutex); if (!CheckSurfaceParams(pipe->screen, &res_tmpl)) goto err_unlock; @@ -152,7 +152,7 @@ vlVdpOutputSurfaceDestroy(VdpOutputSurface surface) pipe = vlsurface->device->context; - pipe_mutex_lock(vlsurface->device->mutex); + mtx_lock(&vlsurface->device->mutex); pipe_surface_reference(&vlsurface->surface, NULL); pipe_sampler_view_reference(&vlsurface->sampler_view, NULL); @@ -216,7 +216,7 @@ vlVdpOutputSurfaceGetBitsNative(VdpOutputSurface surface, if (!destination_data || !destination_pitches) return VDP_STATUS_INVALID_POINTER; - pipe_mutex_lock(vlsurface->device->mutex); + mtx_lock(&vlsurface->device->mutex); res = vlsurface->sampler_view->texture; box = RectToPipeBox(source_rect, res); @@ -260,7 +260,7 @@ vlVdpOutputSurfacePutBitsNative(VdpOutputSurface surface, if (!source_data || !source_pitches) return VDP_STATUS_INVALID_POINTER; - pipe_mutex_lock(vlsurface->device->mutex); + mtx_lock(&vlsurface->device->mutex); dst_box = RectToPipeBox(destination_rect, vlsurface->sampler_view->texture); @@ -344,7 +344,7 @@ vlVdpOutputSurfacePutBitsIndexed(VdpOutputSurface surface, res_tmpl.usage = PIPE_USAGE_STAGING; res_tmpl.bind = PIPE_BIND_SAMPLER_VIEW; - pipe_mutex_lock(vlsurface->device->mutex); + mtx_lock(&vlsurface->device->mutex); if (!CheckSurfaceParams(context->screen, &res_tmpl)) goto error_resource; @@ -461,7 +461,7 @@ vlVdpOutputSurfacePutBitsYCbCr(VdpOutputSurface surface, if (!source_data || !source_pitches) return VDP_STATUS_INVALID_POINTER; - pipe_mutex_lock(vlsurface->device->mutex); + mtx_lock(&vlsurface->device->mutex); memset(&vtmpl, 0, sizeof(vtmpl)); vtmpl.buffer_format = format; vtmpl.chroma_format = FormatYCBCRToPipeChroma(source_ycbcr_format); @@ -679,7 +679,7 @@ vlVdpOutputSurfaceRenderOutputSurface(VdpOutputSurface destination_surface, src_sv = src_vlsurface->sampler_view; } - pipe_mutex_lock(dst_vlsurface->device->mutex); + mtx_lock(&dst_vlsurface->device->mutex); context = dst_vlsurface->device->context; compositor = &dst_vlsurface->device->compositor; @@ -753,7 +753,7 @@ vlVdpOutputSurfaceRenderBitmapSurface(VdpOutputSurface destination_surface, compositor = &dst_vlsurface->device->compositor; cstate = &dst_vlsurface->cstate; - pipe_mutex_lock(dst_vlsurface->device->mutex); + mtx_lock(&dst_vlsurface->device->mutex); blend = BlenderToPipe(context, blend_state); @@ -780,7 +780,7 @@ struct pipe_resource *vlVdpOutputSurfaceGallium(VdpOutputSurface surface) if (!vlsurface || !vlsurface->surface) return NULL; - pipe_mutex_lock(vlsurface->device->mutex); + mtx_lock(&vlsurface->device->mutex); vlsurface->device->context->flush(vlsurface->device->context, NULL, 0); pipe_mutex_unlock(vlsurface->device->mutex); @@ -801,7 +801,7 @@ VdpStatus vlVdpOutputSurfaceDMABuf(VdpOutputSurface surface, if (!vlsurface || !vlsurface->surface) return VDP_STATUS_INVALID_HANDLE; - pipe_mutex_lock(vlsurface->device->mutex); + mtx_lock(&vlsurface->device->mutex); vlsurface->device->context->flush(vlsurface->device->context, NULL, 0); memset(&whandle, 0, sizeof(struct winsys_handle)); diff --git a/src/gallium/state_trackers/vdpau/presentation.c b/src/gallium/state_trackers/vdpau/presentation.c index 78cafc81afe..ee32bac1361 100644 --- a/src/gallium/state_trackers/vdpau/presentation.c +++ b/src/gallium/state_trackers/vdpau/presentation.c @@ -65,7 +65,7 @@ vlVdpPresentationQueueCreate(VdpDevice device, DeviceReference(&pq->device, dev); pq->drawable = pqt->drawable; - pipe_mutex_lock(dev->mutex); + mtx_lock(&dev->mutex); if (!vl_compositor_init_state(&pq->cstate, dev->context)) { pipe_mutex_unlock(dev->mutex); ret = VDP_STATUS_ERROR; @@ -100,7 +100,7 @@ vlVdpPresentationQueueDestroy(VdpPresentationQueue presentation_queue) if (!pq) return VDP_STATUS_INVALID_HANDLE; - pipe_mutex_lock(pq->device->mutex); + mtx_lock(&pq->device->mutex); vl_compositor_cleanup_state(&pq->cstate); pipe_mutex_unlock(pq->device->mutex); @@ -133,7 +133,7 @@ vlVdpPresentationQueueSetBackgroundColor(VdpPresentationQueue presentation_queue color.f[2] = background_color->blue; color.f[3] = background_color->alpha; - pipe_mutex_lock(pq->device->mutex); + mtx_lock(&pq->device->mutex); vl_compositor_set_clear_color(&pq->cstate, &color); pipe_mutex_unlock(pq->device->mutex); @@ -157,7 +157,7 @@ vlVdpPresentationQueueGetBackgroundColor(VdpPresentationQueue presentation_queue if (!pq) return VDP_STATUS_INVALID_HANDLE; - pipe_mutex_lock(pq->device->mutex); + mtx_lock(&pq->device->mutex); vl_compositor_get_clear_color(&pq->cstate, &color); pipe_mutex_unlock(pq->device->mutex); @@ -185,7 +185,7 @@ vlVdpPresentationQueueGetTime(VdpPresentationQueue presentation_queue, if (!pq) return VDP_STATUS_INVALID_HANDLE; - pipe_mutex_lock(pq->device->mutex); + mtx_lock(&pq->device->mutex); *current_time = pq->device->vscreen->get_timestamp(pq->device->vscreen, (void *)pq->drawable); pipe_mutex_unlock(pq->device->mutex); @@ -230,7 +230,7 @@ vlVdpPresentationQueueDisplay(VdpPresentationQueue presentation_queue, cstate = &pq->cstate; vscreen = pq->device->vscreen; - pipe_mutex_lock(pq->device->mutex); + mtx_lock(&pq->device->mutex); if (vscreen->set_back_texture_from_output && surf->send_to_X) vscreen->set_back_texture_from_output(vscreen, surf->surface->texture, clip_width, clip_height); tex = vscreen->texture_from_drawable(vscreen, (void *)pq->drawable); @@ -321,7 +321,7 @@ vlVdpPresentationQueueBlockUntilSurfaceIdle(VdpPresentationQueue presentation_qu if (!surf) return VDP_STATUS_INVALID_HANDLE; - pipe_mutex_lock(pq->device->mutex); + mtx_lock(&pq->device->mutex); if (surf->fence) { screen = pq->device->vscreen->pscreen; screen->fence_finish(screen, NULL, surf->fence, PIPE_TIMEOUT_INFINITE); @@ -364,7 +364,7 @@ vlVdpPresentationQueueQuerySurfaceStatus(VdpPresentationQueue presentation_queue else *status = VDP_PRESENTATION_QUEUE_STATUS_IDLE; } else { - pipe_mutex_lock(pq->device->mutex); + mtx_lock(&pq->device->mutex); screen = pq->device->vscreen->pscreen; if (screen->fence_finish(screen, NULL, surf->fence, 0)) { screen->fence_reference(screen, &surf->fence, NULL); diff --git a/src/gallium/state_trackers/vdpau/query.c b/src/gallium/state_trackers/vdpau/query.c index 435cafd4041..87011cb7e5e 100644 --- a/src/gallium/state_trackers/vdpau/query.c +++ b/src/gallium/state_trackers/vdpau/query.c @@ -82,7 +82,7 @@ vlVdpVideoSurfaceQueryCapabilities(VdpDevice device, VdpChromaType surface_chrom if (!pscreen) return VDP_STATUS_RESOURCES; - pipe_mutex_lock(dev->mutex); + mtx_lock(&dev->mutex); /* XXX: Current limits */ *is_supported = true; @@ -119,7 +119,7 @@ vlVdpVideoSurfaceQueryGetPutBitsYCbCrCapabilities(VdpDevice device, VdpChromaTyp if (!pscreen) return VDP_STATUS_RESOURCES; - pipe_mutex_lock(dev->mutex); + mtx_lock(&dev->mutex); switch(bits_ycbcr_format) { case VDP_YCBCR_FORMAT_NV12: @@ -196,7 +196,7 @@ vlVdpDecoderQueryCapabilities(VdpDevice device, VdpDecoderProfile profile, return VDP_STATUS_OK; } - pipe_mutex_lock(dev->mutex); + mtx_lock(&dev->mutex); *is_supported = pscreen->get_video_param(pscreen, p_profile, PIPE_VIDEO_ENTRYPOINT_BITSTREAM, PIPE_VIDEO_CAP_SUPPORTED); if (*is_supported) { @@ -244,7 +244,7 @@ vlVdpOutputSurfaceQueryCapabilities(VdpDevice device, VdpRGBAFormat surface_rgba if (!(is_supported && max_width && max_height)) return VDP_STATUS_INVALID_POINTER; - pipe_mutex_lock(dev->mutex); + mtx_lock(&dev->mutex); *is_supported = pscreen->is_format_supported ( pscreen, format, PIPE_TEXTURE_3D, 1, @@ -296,7 +296,7 @@ vlVdpOutputSurfaceQueryGetPutBitsNativeCapabilities(VdpDevice device, VdpRGBAFor if (!is_supported) return VDP_STATUS_INVALID_POINTER; - pipe_mutex_lock(dev->mutex); + mtx_lock(&dev->mutex); *is_supported = pscreen->is_format_supported ( pscreen, format, PIPE_TEXTURE_2D, 1, @@ -345,7 +345,7 @@ vlVdpOutputSurfaceQueryPutBitsIndexedCapabilities(VdpDevice device, if (!is_supported) return VDP_STATUS_INVALID_POINTER; - pipe_mutex_lock(dev->mutex); + mtx_lock(&dev->mutex); *is_supported = pscreen->is_format_supported ( pscreen, rgba_format, PIPE_TEXTURE_2D, 1, @@ -400,7 +400,7 @@ vlVdpOutputSurfaceQueryPutBitsYCbCrCapabilities(VdpDevice device, VdpRGBAFormat if (!is_supported) return VDP_STATUS_INVALID_POINTER; - pipe_mutex_lock(dev->mutex); + mtx_lock(&dev->mutex); *is_supported = pscreen->is_format_supported ( pscreen, rgba_format, PIPE_TEXTURE_2D, 1, @@ -444,7 +444,7 @@ vlVdpBitmapSurfaceQueryCapabilities(VdpDevice device, VdpRGBAFormat surface_rgba if (!(is_supported && max_width && max_height)) return VDP_STATUS_INVALID_POINTER; - pipe_mutex_lock(dev->mutex); + mtx_lock(&dev->mutex); *is_supported = pscreen->is_format_supported ( pscreen, format, PIPE_TEXTURE_3D, 1, @@ -533,7 +533,7 @@ vlVdpVideoMixerQueryParameterValueRange(VdpDevice device, VdpVideoMixerParameter if (!(min_value && max_value)) return VDP_STATUS_INVALID_POINTER; - pipe_mutex_lock(dev->mutex); + mtx_lock(&dev->mutex); screen = dev->vscreen->pscreen; switch (parameter) { case VDP_VIDEO_MIXER_PARAMETER_VIDEO_SURFACE_WIDTH: diff --git a/src/gallium/state_trackers/vdpau/surface.c b/src/gallium/state_trackers/vdpau/surface.c index e0dff4e90cb..39d58490606 100644 --- a/src/gallium/state_trackers/vdpau/surface.c +++ b/src/gallium/state_trackers/vdpau/surface.c @@ -80,7 +80,7 @@ vlVdpVideoSurfaceCreate(VdpDevice device, VdpChromaType chroma_type, DeviceReference(&p_surf->device, dev); pipe = dev->context; - pipe_mutex_lock(dev->mutex); + mtx_lock(&dev->mutex); memset(&p_surf->templat, 0, sizeof(p_surf->templat)); p_surf->templat.buffer_format = pipe->screen->get_video_param ( @@ -138,7 +138,7 @@ vlVdpVideoSurfaceDestroy(VdpVideoSurface surface) if (!p_surf) return VDP_STATUS_INVALID_HANDLE; - pipe_mutex_lock(p_surf->device->mutex); + mtx_lock(&p_surf->device->mutex); if (p_surf->video_buffer) p_surf->video_buffer->destroy(p_surf->video_buffer); pipe_mutex_unlock(p_surf->device->mutex); @@ -238,7 +238,7 @@ vlVdpVideoSurfaceGetBitsYCbCr(VdpVideoSurface surface, return VDP_STATUS_NO_IMPLEMENTATION; } - pipe_mutex_lock(vlsurface->device->mutex); + mtx_lock(&vlsurface->device->mutex); sampler_views = vlsurface->video_buffer->get_sampler_view_planes(vlsurface->video_buffer); if (!sampler_views) { pipe_mutex_unlock(vlsurface->device->mutex); @@ -321,7 +321,7 @@ vlVdpVideoSurfacePutBitsYCbCr(VdpVideoSurface surface, if (!source_data || !source_pitches) return VDP_STATUS_INVALID_POINTER; - pipe_mutex_lock(p_surf->device->mutex); + mtx_lock(&p_surf->device->mutex); if (p_surf->video_buffer == NULL || ((pformat != p_surf->video_buffer->buffer_format))) { @@ -465,7 +465,7 @@ struct pipe_video_buffer *vlVdpVideoSurfaceGallium(VdpVideoSurface surface) if (!p_surf) return NULL; - pipe_mutex_lock(p_surf->device->mutex); + mtx_lock(&p_surf->device->mutex); if (p_surf->video_buffer == NULL) { struct pipe_context *pipe = p_surf->device->context; @@ -500,7 +500,7 @@ VdpStatus vlVdpVideoSurfaceDMABuf(VdpVideoSurface surface, memset(result, 0, sizeof(*result)); result->handle = -1; - pipe_mutex_lock(p_surf->device->mutex); + mtx_lock(&p_surf->device->mutex); if (p_surf->video_buffer == NULL) { struct pipe_context *pipe = p_surf->device->context; |