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:

committed by
Marge Bot

parent
8fc373370f
commit
1362ae38d4
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user