From 503742aa3238a5dd07f0fa1b0b77524128161671 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Sat, 26 Jun 2021 14:05:02 -0400 Subject: [PATCH] asahi: Always flush when setting framebuffer state We don't have batch tracking yet. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/asahi/agx_state.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/asahi/agx_state.c b/src/gallium/drivers/asahi/agx_state.c index 1efd333..7890106 100644 --- a/src/gallium/drivers/asahi/agx_state.c +++ b/src/gallium/drivers/asahi/agx_state.c @@ -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; -- 2.7.4