Lines Matching defs:blit
233 do_blit(struct fd_context *ctx, const struct pipe_blit_info *blit,
242 if (fallback || !fd_blit(pctx, blit)) {
243 /* do blit on cpu: */
244 util_resource_copy_region(pctx, blit->dst.resource, blit->dst.level,
245 blit->dst.box.x, blit->dst.box.y,
246 blit->dst.box.z, blit->src.resource,
247 blit->src.level, &blit->src.box);
337 * Helper to check if the format is something that we can blit/render
339 * to do a staging blit (as it will still end up being a cpu copy)
371 * in its insides. The blit would immediately cause the batch to be flushed,
429 * blit from shadow to new buffer. From here on out, we
433 * we go down cpu blit path, the recursive transfer_map()
466 struct pipe_blit_info blit = {};
467 blit.dst.resource = prsc;
468 blit.dst.format = prsc->format;
469 blit.src.resource = pshadow;
470 blit.src.format = pshadow->format;
471 blit.mask = util_format_get_mask(prsc->format);
472 blit.filter = PIPE_TEX_FILTER_NEAREST;
476 blit.dst.field = (val); \
477 blit.src.field = (val); \
484 /* blit the other levels in their entirety: */
489 /* just blit whole level: */
497 do_blit(ctx, &blit, fallback);
519 do_blit(ctx, &blit, fallback);
526 do_blit(ctx, &blit, fallback);
548 * blit, and swapping the state between shadow and original resource so it
586 if ((ctx->screen->gen < 6) && !ctx->blit &&
622 struct pipe_blit_info blit = {};
624 blit.dst.resource = dst;
625 blit.dst.format = dst->format;
626 blit.dst.level = trans->b.b.level;
627 blit.dst.box = trans->b.b.box;
628 blit.src.resource = trans->staging_prsc;
629 blit.src.format = trans->staging_prsc->format;
630 blit.src.level = 0;
631 blit.src.box = trans->staging_box;
632 blit.mask = util_format_get_mask(trans->staging_prsc->format);
633 blit.filter = PIPE_TEX_FILTER_NEAREST;
635 do_blit(ctx, &blit, false);
643 struct pipe_blit_info blit = {};
645 blit.src.resource = src;
646 blit.src.format = src->format;
647 blit.src.level = trans->b.b.level;
648 blit.src.box = trans->b.b.box;
649 blit.dst.resource = trans->staging_prsc;
650 blit.dst.format = trans->staging_prsc->format;
651 blit.dst.level = 0;
652 blit.dst.box = trans->staging_box;
653 blit.mask = util_format_get_mask(trans->staging_prsc->format);
654 blit.filter = PIPE_TEX_FILTER_NEAREST;
656 do_blit(ctx, &blit, false);
798 * flag. So we need end up needing to do a staging blit instead:
866 * ie. we only *don't* want to go down this path if the blit
1729 pctx->blit = fd_blit_pipe;