asahi: Always flush when setting framebuffer state
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sat, 26 Jun 2021 18:05:02 +0000 (14:05 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 5 Jul 2021 20:56:04 +0000 (20:56 +0000)
We don't have batch tracking yet.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11718>

src/gallium/drivers/asahi/agx_state.c

index 1efd333..7890106 100644 (file)
@@ -623,6 +623,9 @@ agx_set_framebuffer_state(struct pipe_context *pctx,
    if (!state)
       return;
 
+   /* XXX: eliminate this flush with batch tracking logic */
+   pctx->flush(pctx, NULL, 0);
+
    ctx->batch->width = state->width;
    ctx->batch->height = state->height;
    ctx->batch->nr_cbufs = state->nr_cbufs;