mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 09:18:04 +02:00
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> (cherry picked from commit55b2b9b389)
This commit is contained in:
parent
95994bc0b1
commit
3234ef8538
2 changed files with 2 additions and 2 deletions
|
|
@ -391,7 +391,7 @@
|
|||
"description": "zink: only reset query on suspend if the query has previously been stopped",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "00fc85a01194e9fc150d4a0ec80826f2f16504ee"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue