asahi: optimize "no changes" case

drawoverhead case 1

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27616>
This commit is contained in:
Alyssa Rosenzweig
2024-01-22 16:29:16 -04:00
committed by Marge Bot
parent 8fc373370f
commit 1362ae38d4

View File

@@ -3563,6 +3563,11 @@ agx_encode_state(struct agx_batch *batch, uint8_t *out, bool is_lines,
bool is_points)
{
struct agx_context *ctx = batch->ctx;
/* If nothing is dirty, encode nothing */
if (!ctx->dirty)
return out;
struct agx_rasterizer *rast = ctx->rast;
unsigned ppp_updates = 0;