Whoops. drawoverhead test 1 score from 496 -> 2377.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20123>
struct agx_context *ctx = agx_context(pctx);
struct agx_batch *batch = agx_get_batch(ctx);
+#ifndef NDEBUG
+ if (unlikely(agx_device(pctx->screen)->debug & AGX_DBG_DIRTY))
+ agx_dirty_all(ctx);
+#endif
+
if (agx_scissor_culls_everything(ctx))
return;
- agx_dirty_all(ctx);
-
/* Dirty track the reduced prim: lines vs points vs triangles */
enum pipe_prim_type reduced_prim = u_reduced_prim(info->mode);
if (reduced_prim != batch->reduced_prim) ctx->dirty |= AGX_DIRTY_PRIM;