diff options
author | Marek Olšák <[email protected]> | 2019-09-26 13:37:45 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-10-07 20:05:07 -0400 |
commit | eec7b0a8659977cdaa59fa91962f543b6f5a9668 (patch) | |
tree | c5b1b55046ab6c321c07b46d96f95bd5f6e6dabb /src/gallium/drivers/radeonsi/si_texture.c | |
parent | 5498a8d23c9e9074ab36d2456e16bba66d7e139a (diff) |
radeonsi: use simple_mtx_t instead of mtx_t
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_texture.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_texture.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gallium/drivers/radeonsi/si_texture.c b/src/gallium/drivers/radeonsi/si_texture.c index 3d35fb41cf0..a74d9c35232 100644 --- a/src/gallium/drivers/radeonsi/si_texture.c +++ b/src/gallium/drivers/radeonsi/si_texture.c @@ -412,7 +412,7 @@ void si_eliminate_fast_color_clear(struct si_context *sctx, struct pipe_context *ctx = &sctx->b; if (ctx == sscreen->aux_context) - mtx_lock(&sscreen->aux_context_lock); + simple_mtx_lock(&sscreen->aux_context_lock); unsigned n = sctx->num_decompress_calls; ctx->flush_resource(ctx, &tex->buffer.b.b); @@ -422,7 +422,7 @@ void si_eliminate_fast_color_clear(struct si_context *sctx, ctx->flush(ctx, NULL, 0); if (ctx == sscreen->aux_context) - mtx_unlock(&sscreen->aux_context_lock); + simple_mtx_unlock(&sscreen->aux_context_lock); } void si_texture_discard_cmask(struct si_screen *sscreen, @@ -515,14 +515,14 @@ bool si_texture_disable_dcc(struct si_context *sctx, return false; if (&sctx->b == sscreen->aux_context) - mtx_lock(&sscreen->aux_context_lock); + simple_mtx_lock(&sscreen->aux_context_lock); /* Decompress DCC. */ si_decompress_dcc(sctx, tex); sctx->b.flush(&sctx->b, NULL, 0); if (&sctx->b == sscreen->aux_context) - mtx_unlock(&sscreen->aux_context_lock); + simple_mtx_unlock(&sscreen->aux_context_lock); return si_texture_discard_dcc(sscreen, tex); } @@ -1486,12 +1486,12 @@ si_texture_create_object(struct pipe_screen *screen, u_box_1d(0, buf->b.b.width0, &box); assert(tex->surface.dcc_retile_map_offset <= UINT_MAX); - mtx_lock(&sscreen->aux_context_lock); + simple_mtx_lock(&sscreen->aux_context_lock); sctx->dma_copy(&sctx->b, &tex->buffer.b.b, 0, tex->surface.dcc_retile_map_offset, 0, 0, &buf->b.b, 0, &box); sscreen->aux_context->flush(sscreen->aux_context, NULL, 0); - mtx_unlock(&sscreen->aux_context_lock); + simple_mtx_unlock(&sscreen->aux_context_lock); si_resource_reference(&buf, NULL); } |