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>
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