static void fd_memory_barrier(struct pipe_context *pctx, unsigned flags) { if (!(flags & ~PIPE_BARRIER_UPDATE)) return; fd_context_flush(pctx, NULL, 0); /* TODO do we need to check for persistently mapped buffers and fd_bo_cpu_prep()?? */ }
static void fd_texture_barrier(struct pipe_context *pctx, unsigned flags) { /* On devices that could sample from GMEM we could possibly do better. * Or if we knew that we were doing GMEM bypass we could just emit a * cache flush, perhaps? But we don't know if future draws would cause * us to use GMEM, and a flush in bypass isn't the end of the world. */ fd_context_flush(pctx, NULL, 0); }
static void fd_memory_barrier(struct pipe_context *pctx, unsigned flags) { fd_context_flush(pctx, NULL, 0); /* TODO do we need to check for persistently mapped buffers and fd_bo_cpu_prep()?? */ }