freedreno: Promote non-drawing batches to sysmem

Sometimes we can end up with a sequence where we need to flush a batch
with no clears and no draws (for ex, to get a fence).  Promote these to
sysmem.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21747>
This commit is contained in:
Rob Clark 2023-02-26 11:58:21 -08:00 committed by Marge Bot
parent aaed609e57
commit d5376c3feb

View file

@ -716,6 +716,12 @@ fd_gmem_render_tiles(struct fd_batch *batch)
ctx->submit_count++;
/* Sometimes we need to flush a batch just to get a fence, with no
* clears or draws.. in this case promote to nondraw:
*/
if (!(batch->fast_cleared || batch->num_draws))
sysmem = true;
if (!batch->nondraw) {
#if HAVE_PERFETTO
/* For non-draw batches, we don't really have a good place to