zink: only reset query on suspend if the query has previously been stopped
if the query has never been stopped, then doing an implicit reset here does
nothing except give the gpu more work
Fixes: 00fc85a011
("zink: reset queries when suspending if >50% of total pool is used")
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10268>
This commit is contained in:

committed by
Marge Bot

parent
42658ab70c
commit
55b2b9b389
@@ -780,7 +780,7 @@ zink_suspend_queries(struct zink_context *ctx, struct zink_batch *batch)
|
||||
}
|
||||
if (query->needs_update)
|
||||
update_qbo(ctx, query);
|
||||
if (query->curr_query > NUM_QUERIES / 2)
|
||||
if (query->last_start && query->curr_query > NUM_QUERIES / 2)
|
||||
reset_pool(ctx, batch, query);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user