freedreno/a6xx: move ubwc clear to blitter
[mesa.git] / src / gallium / drivers / freedreno / freedreno_batch.c
index 54f8601d49980556506a49e96e7c15b7a674a2cc..f6858bcd292822dc87e18d079c36374476738f1c 100644 (file)
@@ -437,6 +437,8 @@ fd_batch_resource_write(struct fd_batch *batch, struct fd_resource *rsc)
 {
        fd_screen_assert_locked(batch->ctx->screen);
 
+       fd_batch_write_prep(batch, rsc);
+
        if (rsc->stencil)
                fd_batch_resource_write(batch, rsc->stencil);