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:
Mike Blumenkrantz 2022-05-02 11:15:40 -04:00 committed by Dylan Baker
parent d9219c0ee6
commit 9b60b2ecdc
2 changed files with 3 additions and 2 deletions

View file

@ -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
},

View file

@ -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