this applies all pending fb clears at the time of flush to handle the scenario
of start -> clear() -> flush() properly
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9726>
struct zink_batch *batch = zink_batch_g(ctx);
struct zink_fence *fence = &batch->state->fence;
+ if (!deferred && ctx->clears_enabled) {
+ /* start rp to do all the clears */
+ zink_begin_render_pass(ctx, batch);
+ }
+
if (deferred)
batch->state->fence.deferred_ctx = pctx;
else if (batch->has_work) {