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>
This commit is contained in:
committed by
Marge Bot
parent
e4884c35d6
commit
4a4adb65ce
@@ -1419,7 +1419,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
|
||||
|
||||
Reference in New Issue
Block a user