Call ctx->blit() and let it reject blits it can't do instead of giving
up on stencil blits and blits u_blitter can't do.
Reviewed-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Kristian H. Kristensen <hoegsberg@chromium.org>
if (info.render_condition_enable && !fd_render_condition_check(pctx))
return;
+ if (ctx->blit && ctx->blit(ctx, &info))
+ return;
+
if (info.mask & PIPE_MASK_S) {
DBG("cannot blit stencil, skipping");
info.mask &= ~PIPE_MASK_S;
return;
}
- if (!(ctx->blit && ctx->blit(ctx, &info)))
- fd_blitter_blit(ctx, &info);
+ fd_blitter_blit(ctx, &info);
}
/**