mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-25 13:30:38 +02:00
freedreno/a6xx: Combine emit_blit and fd6_blit
Reviewed-by: Rob Clark <robdclark@gmail.com> Signed-off-by: Kristian H. Kristensen <hoegsberg@chromium.org>
This commit is contained in:
parent
6d1a7bdba3
commit
701d30dda8
1 changed files with 5 additions and 12 deletions
|
|
@ -505,11 +505,14 @@ emit_blit_texture(struct fd_ringbuffer *ring, const struct pipe_blit_info *info)
|
|||
}
|
||||
}
|
||||
|
||||
static void
|
||||
emit_blit(struct fd_context *ctx, const struct pipe_blit_info *info)
|
||||
static bool
|
||||
fd6_blit(struct fd_context *ctx, const struct pipe_blit_info *info)
|
||||
{
|
||||
struct fd_batch *batch;
|
||||
|
||||
if (!can_do_blit(info))
|
||||
return false;
|
||||
|
||||
fd_fence_ref(ctx->base.screen, &ctx->last_fence, NULL);
|
||||
|
||||
batch = fd_bc_alloc_batch(&ctx->screen->batch_cache, ctx, true);
|
||||
|
|
@ -547,16 +550,6 @@ emit_blit(struct fd_context *ctx, const struct pipe_blit_info *info)
|
|||
|
||||
fd_batch_flush(batch, false, false);
|
||||
fd_batch_reference(&batch, NULL);
|
||||
}
|
||||
|
||||
static bool
|
||||
fd6_blit(struct fd_context *ctx, const struct pipe_blit_info *info)
|
||||
{
|
||||
if (!can_do_blit(info)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
emit_blit(ctx, info);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue