asahi: Ignore spilled render targets for background load

Nothing to reload.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24258>
This commit is contained in:
Alyssa Rosenzweig 2023-06-28 17:07:18 -04:00 committed by Marge Bot
parent ef5a5e170f
commit 0597c100cc

View file

@ -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.
*/