mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
llvmpipe: disable compute statistics queries if queries are disabled
cc: mesa-stable
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16278>
(cherry picked from commit 4a4adb65ce)
This commit is contained in:
parent
d9219c0ee6
commit
9b60b2ecdc
2 changed files with 3 additions and 2 deletions
|
|
@ -175,7 +175,7 @@
|
|||
"description": "llvmpipe: disable compute statistics queries if queries are disabled",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1424,7 +1424,8 @@ static void llvmpipe_launch_grid(struct pipe_context *pipe,
|
|||
|
||||
lp_cs_tpool_wait_for_task(screen->cs_tpool, &task);
|
||||
}
|
||||
llvmpipe->pipeline_statistics.cs_invocations += num_tasks * info->block[0] * info->block[1] * info->block[2];
|
||||
if (!llvmpipe->queries_disabled)
|
||||
llvmpipe->pipeline_statistics.cs_invocations += num_tasks * info->block[0] * info->block[1] * info->block[2];
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue