mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 23:10:11 +01:00
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:
parent
8fc373370f
commit
1362ae38d4
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue