panfrost: Flush everything for glMemoryBarrier

This is inefficient but so far I see the DDK doing the same thing. Fixes
KHR-GLES31.core.shader_storage_buffer_object.advanced-usage-sync-vsfs

In the future we should look into cache flush jobs.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11123>
This commit is contained in:
Alyssa Rosenzweig 2021-06-07 18:36:07 -04:00 committed by Marge Bot
parent 29012d96b8
commit 293ea1959c
1 changed files with 3 additions and 1 deletions

View File

@ -247,7 +247,9 @@ panfrost_set_global_binding(struct pipe_context *pctx,
static void
panfrost_memory_barrier(struct pipe_context *pctx, unsigned flags)
{
/* TODO */
/* TODO: Be smart and only flush the minimum needed, maybe emitting a
* cache flush job if that would help */
panfrost_flush_all_batches(pan_context(pctx));
}
void