mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
panfrost: Mark job_index > 10000 as unlikely
By definition this is happening <= 0.02% of the time. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10869>
This commit is contained in:
parent
24eccad4a7
commit
a9a3f55519
1 changed files with 1 additions and 1 deletions
|
|
@ -694,7 +694,7 @@ panfrost_draw_vbo(struct pipe_context *pipe,
|
||||||
/* Don't add too many jobs to a single batch. Hardware has a hard limit
|
/* Don't add too many jobs to a single batch. Hardware has a hard limit
|
||||||
* of 65536 jobs, but we choose a smaller soft limit (arbitrary) to
|
* of 65536 jobs, but we choose a smaller soft limit (arbitrary) to
|
||||||
* avoid the risk of timeouts. This might not be a good idea. */
|
* avoid the risk of timeouts. This might not be a good idea. */
|
||||||
if (batch->scoreboard.job_index > 10000)
|
if (unlikely(batch->scoreboard.job_index > 10000))
|
||||||
batch = panfrost_get_fresh_batch_for_fbo(ctx);
|
batch = panfrost_get_fresh_batch_for_fbo(ctx);
|
||||||
|
|
||||||
unsigned zs_draws = ctx->depth_stencil->draws;
|
unsigned zs_draws = ctx->depth_stencil->draws;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue