From 0597c100ccb1658ceb6a38d9af74747a1687f071 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 28 Jun 2023 17:07:18 -0400 Subject: [PATCH] asahi: Ignore spilled render targets for background load Nothing to reload. 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 d24d07c..009ed02 100644 --- a/src/gallium/drivers/asahi/agx_state.c +++ b/src/gallium/drivers/asahi/agx_state.c @@ -2334,6 +2334,9 @@ agx_build_meta(struct agx_batch *batch, bool store, bool partial_render) bool clear = (batch->clear & (PIPE_CLEAR_COLOR0 << rt)); bool load = valid && !clear; + /* Don't read back spilled render targets, they're already in memory */ + load &= !batch->tilebuffer_layout.spilled[rt]; + /* The background program used for partial renders must always load * whatever was stored in the mid-frame end-of-tile program. */ -- 2.7.4