mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
freedreno: Convert one last mtx_t -> simple_mtx_t
Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7717>
This commit is contained in:
parent
8651cfbbf0
commit
150a914a78
3 changed files with 5 additions and 5 deletions
|
|
@ -342,7 +342,7 @@ fd_context_destroy(struct pipe_context *pctx)
|
|||
fd_device_del(ctx->dev);
|
||||
fd_pipe_del(ctx->pipe);
|
||||
|
||||
mtx_destroy(&ctx->gmem_lock);
|
||||
simple_mtx_destroy(&ctx->gmem_lock);
|
||||
|
||||
if (fd_mesa_debug & (FD_DBG_BSTAT | FD_DBG_MSGS)) {
|
||||
printf("batch_total=%u, batch_sysmem=%u, batch_gmem=%u, batch_nondraw=%u, batch_restore=%u\n",
|
||||
|
|
@ -506,7 +506,7 @@ fd_context_init(struct fd_context *ctx, struct pipe_screen *pscreen,
|
|||
if (primtypes[i])
|
||||
ctx->primtype_mask |= (1 << i);
|
||||
|
||||
(void) mtx_init(&ctx->gmem_lock, mtx_plain);
|
||||
simple_mtx_init(&ctx->gmem_lock, mtx_plain);
|
||||
|
||||
/* need some sane default in case gallium frontends don't
|
||||
* set some state:
|
||||
|
|
|
|||
|
|
@ -199,7 +199,7 @@ struct fd_context {
|
|||
* case, with batch reordering where a ctxB batch triggers flushing
|
||||
* a ctxA batch
|
||||
*/
|
||||
mtx_t gmem_lock;
|
||||
simple_mtx_t gmem_lock;
|
||||
|
||||
struct fd_device *dev;
|
||||
struct fd_screen *screen;
|
||||
|
|
|
|||
|
|
@ -577,7 +577,7 @@ render_tiles(struct fd_batch *batch, struct fd_gmem_stateobj *gmem)
|
|||
struct fd_context *ctx = batch->ctx;
|
||||
int i;
|
||||
|
||||
mtx_lock(&ctx->gmem_lock);
|
||||
simple_mtx_lock(&ctx->gmem_lock);
|
||||
|
||||
ctx->emit_tile_init(batch);
|
||||
|
||||
|
|
@ -619,7 +619,7 @@ render_tiles(struct fd_batch *batch, struct fd_gmem_stateobj *gmem)
|
|||
if (ctx->emit_tile_fini)
|
||||
ctx->emit_tile_fini(batch);
|
||||
|
||||
mtx_unlock(&ctx->gmem_lock);
|
||||
simple_mtx_unlock(&ctx->gmem_lock);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue