From b33f0418104a12cd5bd004a01584a395c8832503 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 5 Jul 2022 15:28:27 -0400 Subject: [PATCH] zink: remove format check from clear texture this is going to be a render target no matter what Acked-by: Dave Airlie Part-of: --- src/gallium/drivers/zink/zink_clear.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gallium/drivers/zink/zink_clear.c b/src/gallium/drivers/zink/zink_clear.c index 4b2fbc2d409..baf11a7f23f 100644 --- a/src/gallium/drivers/zink/zink_clear.c +++ b/src/gallium/drivers/zink/zink_clear.c @@ -402,7 +402,6 @@ zink_clear_texture(struct pipe_context *pctx, { struct zink_context *ctx = zink_context(pctx); struct zink_resource *res = zink_resource(pres); - struct pipe_screen *pscreen = pctx->screen; struct u_rect region = zink_rect_from_box(box); bool needs_rp = !zink_blit_region_fills(region, pres->width0, pres->height0) || ctx->render_condition_active; struct pipe_surface *surf = NULL; @@ -412,8 +411,7 @@ zink_clear_texture(struct pipe_context *pctx, util_format_unpack_rgba(pres->format, color.ui, data, 1); - if (pscreen->is_format_supported(pscreen, pres->format, pres->target, 0, 0, - PIPE_BIND_RENDER_TARGET) && !needs_rp) { + if (!needs_rp) { zink_batch_no_rp(ctx); clear_color_no_rp(ctx, res, &color, level, box->z, box->depth); } else {