X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Fdrivers%2Fsvga%2Fsvga_sampler_view.c;h=80a1b926a99721d216aafc6692721f0e333b7505;hb=c24c3b94ed29ecd99b1101c74c6c4606f9b5580e;hp=d43f8ccf2d3dc756e8c6e6d0a4f1be334336b0a4;hpb=e0184b3995fa308c125ae8e090d2bbdffd495b5f;p=mesa.git diff --git a/src/gallium/drivers/svga/svga_sampler_view.c b/src/gallium/drivers/svga/svga_sampler_view.c index d43f8ccf2d3..80a1b926a99 100644 --- a/src/gallium/drivers/svga/svga_sampler_view.c +++ b/src/gallium/drivers/svga/svga_sampler_view.c @@ -91,18 +91,18 @@ svga_get_tex_sampler_view(struct pipe_context *pipe, /* First try the cache */ if (view) { - pipe_mutex_lock(ss->tex_mutex); + mtx_lock(&ss->tex_mutex); if (tex->cached_view && tex->cached_view->min_lod == min_lod && tex->cached_view->max_lod == max_lod) { svga_sampler_view_reference(&sv, tex->cached_view); - pipe_mutex_unlock(ss->tex_mutex); + mtx_unlock(&ss->tex_mutex); SVGA_DBG(DEBUG_VIEWS, "svga: Sampler view: reuse %p, %u %u, last %u\n", pt, min_lod, max_lod, pt->last_level); svga_validate_sampler_view(svga_context(pipe), sv); return sv; } - pipe_mutex_unlock(ss->tex_mutex); + mtx_unlock(&ss->tex_mutex); } sv = CALLOC_STRUCT(svga_sampler_view); @@ -151,7 +151,7 @@ svga_get_tex_sampler_view(struct pipe_context *pipe, flags, format, min_lod, max_lod - min_lod + 1, - -1, 1, -1, + -1, 1, -1, FALSE, &sv->key); if (!sv->handle) { @@ -163,9 +163,9 @@ svga_get_tex_sampler_view(struct pipe_context *pipe, return sv; } - pipe_mutex_lock(ss->tex_mutex); + mtx_lock(&ss->tex_mutex); svga_sampler_view_reference(&tex->cached_view, sv); - pipe_mutex_unlock(ss->tex_mutex); + mtx_unlock(&ss->tex_mutex); debug_reference(&sv->reference, (debug_reference_descriptor)