diff --git a/src/intel/blorp/blorp_clear.c b/src/intel/blorp/blorp_clear.c index 4449555bddc..4b8a44d58a8 100644 --- a/src/intel/blorp/blorp_clear.c +++ b/src/intel/blorp/blorp_clear.c @@ -490,9 +490,6 @@ fast_clear_surf(struct blorp_batch *batch, get_fast_clear_rect(batch->blorp->isl_dev, surf->surf, surf->aux_surf, ¶ms.x0, ¶ms.y0, ¶ms.x1, ¶ms.y1); - if (!blorp_params_get_clear_kernel(batch, ¶ms, true, true, false)) - return; - blorp_surface_info_init(batch, ¶ms.dst, surf, level, start_layer, format, true); @@ -513,6 +510,9 @@ fast_clear_surf(struct blorp_batch *batch, else params.op = BLORP_OP_MCS_COLOR_CLEAR; + if (!blorp_params_get_clear_kernel(batch, ¶ms, true, true, false)) + return; + batch->blorp->exec(batch, ¶ms); }