Some things trigger batches that only contain a clear (like glmark2
startup). No point to use GMEM for this.
Signed-off-by: Rob Clark <robdclark@gmail.com>
bool sysmem = false;
if (ctx->emit_sysmem_prep) {
- if (batch->cleared || batch->gmem_reason || (batch->num_draws > 5)) {
+ if (batch->num_draws == 0) {
+ sysmem = true;
+ } else if (batch->cleared || batch->gmem_reason || (batch->num_draws > 5)) {
+ // TODO maybe consider # of draws w/ blend enabled, etc?
DBG("GMEM: cleared=%x, gmem_reason=%x, num_draws=%u",
batch->cleared, batch->gmem_reason, batch->num_draws);
} else if (!(fd_mesa_debug & FD_DBG_NOBYPASS)) {