-/* special case for when we need to create a fence but have no rendering
- * to flush.. just emit a no-op string-marker packet.
- */
-void
-fd_gmem_render_noop(struct fd_batch *batch)
-{
- struct fd_context *ctx = batch->ctx;
- struct pipe_context *pctx = &ctx->base;
-
- pctx->emit_string_marker(pctx, "noop", 4);
- /* emit IB to drawcmds (which contain the string marker): */
- ctx->emit_ib(batch->gmem, batch->draw);
- flush_ring(batch);
-}
-
-/* tile needs restore if it isn't completely contained within the
- * cleared scissor:
- */
-static bool
-skip_restore(struct pipe_scissor_state *scissor, struct fd_tile *tile)
-{
- unsigned minx = tile->xoff;
- unsigned maxx = tile->xoff + tile->bin_w;
- unsigned miny = tile->yoff;
- unsigned maxy = tile->yoff + tile->bin_h;
- return (minx >= scissor->minx) && (maxx <= scissor->maxx) &&
- (miny >= scissor->miny) && (maxy <= scissor->maxy);
-}
-