mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 23:40:12 +01:00
asahi: Implement memory_barrier
Cargo culted from panfrost. Signed-off-by: Asahi Lina <lina@asahilina.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22971>
This commit is contained in:
parent
435a607909
commit
86d41cb7bd
1 changed files with 8 additions and 0 deletions
|
|
@ -1353,6 +1353,13 @@ agx_invalidate_resource(struct pipe_context *pctx,
|
|||
}
|
||||
}
|
||||
|
||||
static void
|
||||
agx_memory_barrier(struct pipe_context *pctx, unsigned flags)
|
||||
{
|
||||
/* Be conservative for now, we can try to optimize this more later */
|
||||
agx_flush_all(agx_context(pctx), "Memory barrier");
|
||||
}
|
||||
|
||||
static struct pipe_context *
|
||||
agx_create_context(struct pipe_screen *screen, void *priv, unsigned flags)
|
||||
{
|
||||
|
|
@ -1394,6 +1401,7 @@ agx_create_context(struct pipe_screen *screen, void *priv, unsigned flags)
|
|||
pctx->set_debug_callback = u_default_set_debug_callback;
|
||||
pctx->get_sample_position = u_default_get_sample_position;
|
||||
pctx->invalidate_resource = agx_invalidate_resource;
|
||||
pctx->memory_barrier = agx_memory_barrier;
|
||||
|
||||
agx_init_state_functions(pctx);
|
||||
agx_init_query_functions(pctx);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue