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>
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